Configure Smart Search Sessions

Configure Smart Search Sessions

To configure the maximum count of Smart Search sessions, complete the following steps:
  1. Enable Property Replacement in Annotations
    To enable property replacement in annotations, complete the following steps:
    1. Navigate to the following configuration file location:
      \jboss\standalone\configuration\standalone-full.xml
    2. Edit
      standalone-full.xml
      to add the following property to the domain.ee subsystem:
      <annotation-property-replacement>true</annotation-property-replacement>
      For example, after adding the configuration, the subsystem appears similar to the following text:
      <subsystem xmlns="urn:jboss:domain:ee:4.0"> <spec-descriptor-property-replacement>false</spec-descriptor-property-replacement> <annotation-property-replacement>true</annotation-property-replacement> <concurrent> <context-services>
  2. Customize the Count of Smart Search Sessions
    Set the property
    -Dsmartsearch.maxsession
    to customize the count of Smart Search sessions. Default is 15.
    You can use any one of the following options to set the Smart Search property:
    • Set the Property During JBoss Startup
      To set the property during the startup of JBoss, complete the following steps:
      1. Navigate to the following location:
        \jboss\bin
      2. Open a command prompt.
      3. Run the following command appropriate startup command with the -Dsmartsearch.maxsession parameter:
        For Windows:
        standalone.bat -c standalone-full.xml -Dsmartsearch.maxsession=<count of sessions> -Djboss.as.management.blocking.timeout=9999
        For example,
        standalone.bat -c standalone-full.xml -Dsmartsearch.maxsession=100 -Djboss.as.management.blocking.timeout=9999
        For AIX or Linux:
        standalone.sh -c standalone-full.xml -Dsmartsearch.maxsession=<count of sessions> -Djboss.as.management.blocking.timeout=9999
    • Set the Property in
      standalone-full.xml
      Add the following text to
      standalone-full.xml
      :
      <system-properties> <property name="smartsearch.maxsession" value="count of sessions"/> </system-properties>
    • Define the Property in
      standalone.conf
      To set the property in
      standalone.conf
      , complete the following steps:
      1. Navigate to the following location:
        \jboss\bin
      2. For Windows: Edit
        standalone.conf.bat
        For AIX or Linux: Edit
        standalone.conf.sh
      3. Add the following property to
        standalone.conf
        :
        JAVA_OPTS="$JAVA_OPTS -Dsmartsearch.maxsession=<count of sessions>"

0 COMMENTS

We’d like to hear from you!