tcp – WSO2 ESB的线程池

在WSO2 ESB(对于TCP / IP请求)中,我看到只使用了20个TCP工作线程,因为我增加了并发请求.有没有办法增加TCP工作线程的数量?

我认为CPU利用率低于40%,我认为增加TCP工作人员数将导致更好的CPU利用率,因为我们增加了负载.有人可以建议,线程池配置适用于WSO2-ESB或如何更改它.

以下是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 

最佳答案 您可以通过repository / conf / passthru-http.properties文件更改worker_pool_size_core和worker_pool_size_max的值.

## 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

此外,您可以查看Performance Tuning WSO2 ESB,特别是Configuring passthru-http.properties

点赞