<ESB_Home>/repository/conf/synapse.properties file contains tuning parameters relating to the mediation engine. These parameters are mainly used when mediators such as
Clone which leverage on internal thread pools are used.
The following table explains the parameters included in the
|Parameter Name||Description||Default Value|
|The initial number of synapse threads in the pool. This parameter is applicable only if the ||20|
|The maximum number of synapse threads in the pool. This parameter is applicable only if the ||100|
|The keep-alive time for extra threads defined in milliseconds. This parameter is applicable only if the ||5|
|The length of the queue that is used to hold the runnable tasks to be executed by the pool. This parameter is applicable only if the ||10|
|The name of the thread group.|
|The prefix of each thread name.|
|The session time-out time for the session aware load balance endpoint given in milliseconds.||600000|
|The maximum number of milliseconds within which a response for the request should be received. A response which arrives after the specified number of seconds cannot be correlated with the request. Hence, a warning all be logged and the request will be dropped. This parameter is also referred to as the time-out handler||120000|
|If this parameter is set to |
|Preserves the namespace declarations in the JSON output in XML to JSON transformations.|
If this parameter is set to
WSO2 EI uses the Saxon Home Edition in implementing XPATH 2.0 functionalities, and thus supports all the functions that are shipped with it. For more information on the supported functions, see Saxon Documentation.
|The back end service to which a request has been sent are repeatedly called back for responses at time intervals specified for this parameter. Any endpoints have timed out are identified during these time intervals, and they are no longer called back. Note that specifying a lower value for this parameter results in a higher overhead on the system.|
Compared to NHTTP properties, it is necessary to have an equal or higher number of threads in the
<ESB_HOME>/repository/conf/synapse.properties file to balance out the load as shown in the example below.
If the NHTTP properties are as follows:
A reasonable setting for synapse properties would be as follows:
For information on tuning performance of WSO2 ESB using these properties, see Performance Tuning.