[infinispan-issues] [JBoss JIRA] (ISPN-10174) Adjusting thread pools for container environments
Galder Zamarreño (Jira)
issues at jboss.org
Fri May 10 08:41:00 EDT 2019
[ https://issues.jboss.org/browse/ISPN-10174?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13731934#comment-13731934 ]
Galder Zamarreño commented on ISPN-10174:
-----------------------------------------
Even after reducing thread pools and removing off-heap caches, I've tried to see if the pod would run with 256mb of container memory, but that didn't work. Pods would be OOMKilled.
> Adjusting thread pools for container environments
> -------------------------------------------------
>
> Key: ISPN-10174
> URL: https://issues.jboss.org/browse/ISPN-10174
> Project: Infinispan
> Issue Type: Enhancement
> Components: Cloud
> Affects Versions: 10.0.0.Beta3, 9.4.13.Final
> Reporter: Galder Zamarreño
> Priority: Major
> Labels: rhdemo-2019
>
> Default thread pool values in Infinispan Server cloud.xml can make containers be killed if all of them are in use. The main defaults are:
> * HotRod-hotrod-internal-ServerHandler: core=160 max=160
> * remote-thread: core=25 max=25
> * transport-thread: core=25 max=25
> * async-thread: core=25 max=25
> * jgroups: core=0 max=200
> * jgroups-int: core=0 max=16
> * stateTransferExecutor-thread: core=1 max=60
> * add-listener-thread: core=0 max=10
> * REST-rest-ServerHandler: core=1 max=1
> * DefaultExecutorService: core=1 max=1
> * notification-thread: core=1 max=1
> The total number of core threads is 239, and if the system is under load, the threads alone can take ~239mb of native memory. That's before the heap and other parameters are counted. Our defaults are 0.5 CPU and 512mb.
> This thread pools should be trimmed, since if used at full capacity, 0.5 CPU won't be able to do much with ~200+ threads.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
More information about the infinispan-issues
mailing list