High CPU in Channels.writeBlocking in JBoss EAP 7.0
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 7.0.x
Issue
We see high CPU usage in calls like the following:
at org.xnio.channels.Channels.writeBlocking(Channels.java:97)
at io.undertow.websockets.jsr.WebSocketSessionRemoteEndpoint$BasicWebSocketSessionRemoteEndpoint.sendText(WebSocketSessionRemoteEndpoint.java:283)
at org.springframework.web.socket.adapter.standard.StandardWebSocketSession.sendTextMessage(StandardWebSocketSession.java:197)
at org.springframework.web.socket.adapter.AbstractWebSocketSession.sendMessage(AbstractWebSocketSession.java:104)
Example of high CPU usage:
PID CPU Mem user
28609 97.8% 12.7% jboss
Resolution
There is a list of known and solved issues, so the resolution is to upgrade to JBoss EAP 7.1.0 or later version.
Root Cause
- Content from issues.jboss.org is not included.UNDERTOW-907
- Content from issues.jboss.org is not included.UNDERTOW-894
- Content from issues.jboss.org is not included.JBEAP-6965
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.