This section provides AquaLogic Service Bus tuning tips.
config.xml
file when the logging level is set to warning. For more information on logging, see “Log” in
Proxy Services: Actions in the Using the AquaLogic Service Bus Console.<server>
<name>AdminServer</name>
<log>
<file-min-size>5000</file-min-size>
<log-file-severity>Warning</log-file-severity>
<log-file-filter xsi:nil="true"></log-file-filter>
<stdout-severity>Off</stdout-severity>
<stdout-filter xsi:nil="true"></stdout-filter>
<domain-log-broadcast-severity>Error</domain-log-broadcast-severity>
<domain-log-broadcast-filter xsi:nil="true"></domain-log-broadcast-filter>
<memory-buffer-severity>Error</memory-buffer-severity>
<memory-buffer-filter xsi:nil="true"></memory-buffer-filter>
</log>
</server>
config.xml
file after the dedicate work manager is configured. <self-tuning>
<min-threads-constraint>
<name>minThreadsConstraint</name>
<target>AdminServer</target>
<count>20</count>
</min-threads-constraint>
<work-manager>
<name>MQWorkManager</name>
<target>AdminServer</target>
<min-threads-constraint> minThreadsConstraint </min-threads-constraint>
<ignore-stuck-threads>false</ignore-stuck-threads>
</work-manager>
</self-tuning>
The cache introduces a performance trade off between memory consumption and compilation cost. Caching proxy services increases throughput but consume memory otherwise available for data processing.
You can tune the cache by setting its size using the system property com.bea.wli.sb.pipeline.RouterRuntimeCache.size
The default value is 100. This is the number of proxy services in the static portion of the cache.
Approximately every minute, a log message will be printed with the following format:
[RuntimeRouterCache] XX hits received: YY hits to main cache, ZZ hits to soft cache, MM misses
XX
represents the number of times that the cache was accessed since the last log. YY
represents the nummer of times (out of XX
) that the cache contained the proxy service. ZZ
represents the number of times (out of XX
) that the cache contained the proxy service amongst those to be garbaged collected (for example, the cache was able to reclaim the proxy service before the garbage collector did). MM
represents the number of times (out of XX
) that the cache did not contain the proxy service and had to recreate it. You can use these logs to tune the size of the cache. Consider the following guidelines: