Why does select() consume so much CPU time in my program?

后端 未结 4 1307
南旧
南旧 2020-12-08 07:08

I have several Java applications that use MINA, and all of them use 20 MINA threads. One application serves around 10,000 concurrent connections, that are usually idle but r

4条回答
  •  被撕碎了的回忆
    2020-12-08 07:51

    Like the answer from the linked question referred to, the common problem is older JDK bugs. Since you are now on an updated version, I think the this might actually be a hardware bottleneck.

    Here is a link to a glassfish issue describing where they discuss the possibility of hardware (network and servers) being the source of the problem.

    https://www.java.net//forum/topic/glassfish/glassfish/glassfish-31-deadlock-epollarraywrapperepollwait-how-handle

    Also, here is another similar question with no answer yet: SelectorImpl is BLOCKED

提交回复
热议问题