High CPU usage by JDK cryptography when deploying applications in domain mode on EAP 6
Issue
Deployment of application is slow the first time we deployment in our domain. The threads using a lot of CPU on the domain controller is:
[Host Controller] "Host Controller Service Threads - 212" prio=10 tid=0x00007f4f9c183000 nid=0x6259 runnable [0x00007f4f8f6dc000]
[Host Controller] java.lang.Thread.State: RUNNABLE
[Host Controller] at sun.nio.ch.FileDispatcherImpl.write0(Native Method)
[Host Controller] at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:47)
[Host Controller] at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:93)
[Host Controller] at sun.nio.ch.IOUtil.write(IOUtil.java:65)
[Host Controller] at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:487)
[Host Controller] - locked <0x00000000e11a7510> (a java.lang.Object)
[Host Controller] at org.xnio.nio.AbstractNioStreamChannel.write(AbstractNioStreamChannel.java:303)
[Host Controller] at org.xnio.ssl.JsseConnectedSslStreamChannel.doFlush(JsseConnectedSslStreamChannel.java:650)
[Host Controller] at org.xnio.ssl.JsseConnectedSslStreamChannel.flushAction(JsseConnectedSslStreamChannel.java:616)
[Host Controller] - locked <0x00000000e11af1e8> (a java.lang.Object)
[Host Controller] at org.xnio.channels.TranslatingSuspendableChannel.flush(TranslatingSuspendableChannel.java:604)
[Host Controller] at org.xnio.channels.FramedMessageChannel.doFlush(FramedMessageChannel.java:316)
[Host Controller] at org.xnio.channels.FramedMessageChannel.send(FramedMessageChannel.java:243)
[Host Controller] - locked <0x00000000e11af3a0> (a java.lang.Object)
[Host Controller] at org.jboss.remoting3.remote.RemoteConnection$RemoteWriteListener.send(RemoteConnection.java:312)
[Host Controller] - locked <0x00000000e11af260> (a java.util.ArrayDeque)
[Host Controller] at org.jboss.remoting3.remote.RemoteConnection.send(RemoteConnection.java:122)
[Host Controller] at org.jboss.remoting3.remote.OutboundMessage$1.accept(OutboundMessage.java:154)
[Host Controller] at org.xnio.streams.BufferPipeOutputStream.send(BufferPipeOutputStream.java:126)
[Host Controller] at org.xnio.streams.BufferPipeOutputStream.send(BufferPipeOutputStream.java:114)
[Host Controller] at org.xnio.streams.BufferPipeOutputStream.getBuffer(BufferPipeOutputStream.java:78)
[Host Controller] at org.xnio.streams.BufferPipeOutputStream.write(BufferPipeOutputStream.java:96)
[Host Controller] - locked <0x00000000ff030120> (a org.xnio.streams.BufferPipeOutputStream)
[Host Controller] at org.jboss.remoting3.remote.OutboundMessage.write(OutboundMessage.java:272)
[Host Controller] at java.io.DataOutputStream.write(DataOutputStream.java:107)
[Host Controller] - locked <0x00000000ff032148> (a java.io.DataOutputStream)
[Host Controller] at org.jboss.as.protocol.mgmt.FlushableDataOutputImpl.write(FlushableDataOutputImpl.java:49)
[Host Controller] at org.jboss.as.repository.RemoteFileRequestAndHandler.writeFile(RemoteFileRequestAndHandler.java:204)
[Host Controller] at org.jboss.as.repository.RemoteFileRequestAndHandler.writeResponse(RemoteFileRequestAndHandler.java:167)
[Host Controller] at org.jboss.as.repository.RemoteFileRequestAndHandler.access$200(RemoteFileRequestAndHandler.java:52)
[Host Controller] at org.jboss.as.repository.RemoteFileRequestAndHandler$1.execute(RemoteFileRequestAndHandler.java:141)
[Host Controller] at org.jboss.as.protocol.mgmt.AbstractMessageHandler$2$1.doExecute(AbstractMessageHandler.java:298)
[Host Controller] at org.jboss.as.protocol.mgmt.AbstractMessageHandler$AsyncTaskRunner.run(AbstractMessageHandler.java:537)
[Host Controller] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
[Host Controller] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
[Host Controller] at java.lang.Thread.run(Thread.java:745)
[Host Controller] at org.jboss.threads.JBossThread.run(JBossThread.java:122)
Environment
- JBoss Enterprise Application Platform (EAP) 6
- Oracle JDK 7
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
