<PRODUCT_HOME>/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
The ESB profile 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.|
|When using externally referenced scripts, this parameter is used to specify the size of the script engine pool to be used per script mediator. The script engines from this pool are used for externally referenced script execution where updates to external scripts on an engine currently in use may otherwise not be thread safe. It is recommended to keep this value at a reasonable size since there will be a pool per externally referenced script.||15|
|The connection time-out in milliseconds when ESB is accessing a WSDL URI.||100000|
This property determines whether to transform an empty XML elements that has a null (
Enables adding processing instructions when performing JSON to XML conversions. For example, you can add processing instructions to identify array elements in JSON payloads with array indices (i.e., marked with "[ ]") and process them to XML.
This property is available for WSO2 EI 6.1.1 via the WUM update 1716 released on the 10th of November 2017.
The parameters of this file may also need to be changed depending on the NHTTP properties as shown in the example below.
If the NHTTP properties are as follows:
A reasonable setting for synapse properties would be as follows: