Performance Tuning Parameters

To improve the performance of TIBCO API Exchange Gateway, tune the following parameters:

Procedure

  1. Set the following property in the ASG_CONFIG_HOME/asg.properties file:
    tibco.clientVar.ASG/HttpClient/useSynchHttpClient=true
  2. Increase the number of threads to handle the load of incoming requests, as follows:
    1. Navigate to the ASG_HOME/bin directory.
    2. Edit the asg_core.cdd file in a text editor.
    3. Search the <inference-agent-class id="core-class"> under <agent-classes> element.
    4. For the <inference-agent-class id="core-class">, go to the <shared-queue> node.
    5. Expand the <shared-queue> node to edit the <workers> element value, as follows:
      <shared-queue>
           <size>1024</size>
           <workers>10</workers>
      </shared-queue>
    6. Edit the the value of <workers> element, as required. The default is 10.
    7. Save changes to the asg_core.cdd file.
  3. If you use native HTTP channel, select the Caller’s Thread threading model as follows:
    1. Navigate to the ASG_HOME/bin directory.
    2. Edit the asg_core.cdd file in a text editor.
    3. Search the <destinations id="DefaultImplementationDestinations">/<destination id="FacadeRequest_5449883F"> under <destination-groups> element.
    4. For the <destination id="FacadeRequest_5449883F">, go to the <threading-model> node.
    5. Edit the <threading-model> element value, as follows:
      <threading-model>caller</threading-model>

      Using the Caller’s Thread threading model, by default, 200 threads managed by the underlying HTTP server resource are used to handle the incoming HTTP requests. When the Caller’s Thread is set as threading model for native HTTP channel, the settings for <workers> under <shared-queue> for <inference-agent-class id="core-class"> under <agent-classes> do not apply for native HTTP channel.

    6. Save changes to the file.