I am newbie in Elastic Search.
When I create the instance Client for the Elastic Search using java, it creates no of threads(around 16 threads).
How I can put limit on number of threads created by Client?
What will be the pros and cons of changing default settings?
I got some information from this link.
问问题
6092 次
1 回答
3
正如您在源代码中看到的,您为连接到集群而创建的TransportClient使用ThreadPool。
所以看起来这个设置也会影响客户端。
这篇文章可能会让您了解线程池如何影响您的应用程序性能:http: //jontai.me/blog/2013/06/esrejectedexecutionexception-rejected-execution-of-messagechannelhandler-requesthandler/
于 2013-08-19T08:28:49.143 回答