EAP 7 performance issues with StuckThreadDetectionHandler enabled
Environment
- JBoss Enterprise Application Platform (EAP) 7.x
Issue
- We enabled the StuckThreadDetectionHandler and started seeing degraded performance and increased CPU. Thread dumps show blocks like so:
"default I/O-5" #111 prio=5 os_prio=0 tid=0x0000000004cb5000 nid=0x1156 waiting for monitor entry [0x00007f92bf195000]
java.lang.Thread.State: BLOCKED (on object monitor)
at io.undertow.server.handlers.StuckThreadDetectionHandler$1.run(StuckThreadDetectionHandler.java:102)
- waiting to lock <0x000000074fb03710> (a io.undertow.server.handlers.StuckThreadDetectionHandler)
at org.xnio.nio.WorkerThread.safeRun(WorkerThread.java:612)
at org.xnio.nio.WorkerThread.run(WorkerThread.java:479)
Resolution
- Apply 7.1.2 or later updates
Root Cause
- Multiple timer tasks were improperly being registered by the handler for extra processing load
- Content from issues.jboss.org is not included.UNDERTOW-1305
- Content from issues.jboss.org is not included.JBEAP-14384
Components
Category
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.