Thread Pool for WSO2 ESB

In the WSO2 ESB (for TCP / IP requests), I see only 20 TCP worker threads as I increase concurrent requests. Is there a way to increase the number of TCP worker threads?

I see that CPU utilization is below 40%, I think an increase in the number of TCP workers will lead to better processor utilization, as we increase the load. Can anyone suggest where the thread pool configuration for the WSO2-ESB is or how to change it.

Here is a snippet from wso2-esb-service.log

2015-10-20 14:49:52,852 [-] [tcp-Worker-14]  INFO 
2015-10-20 14:49:52,853 [-] [tcp-Worker-19]  INFO 
2015-10-20 14:49:52,854 [-] [tcp-Worker-6]  INFO 
2015-10-20 14:49:52,855 [-] [tcp-Worker-7]  INFO 
2015-10-20 14:49:52,856 [-] [tcp-Worker-9]  INFO 
2015-10-20 14:49:52,857 [-] [tcp-Worker-15]  INFO 
2015-10-20 14:49:52,858 [-] [tcp-Worker-2]  INFO 
+4
source share
2 answers

You can change the file worker_pool_size_coreand worker_pool_size_maxthrough repository/conf/passthru-http.properties.

## Pass-through HTTP transport specific tuning parameters
worker_pool_size_core=400
worker_pool_size_max=500
#worker_thread_keepalive_sec=60
#worker_pool_queue_length=-1
#io_threads_per_reactor=2
io_buffer_size=16384
#http.max.connection.per.host.port=32767

, WSO2 ESB, passthru-http.properties

+1
  • export JAVA_OPTS="-Dsnd_t_core=50"
  • ./bin/wso2server.sh
0

Source: https://habr.com/ru/post/1613719/


All Articles