2015-09-14 14:45 GMT+02:00 jean-frederic clere <jfcl...@gmail.com>: > Somehow that didn't help: > +++ > 745 Exception in thread "https-nio-8003-exec-95" Exception in thread > "https-nio-8003-exec-56" Exception in thread "https-nio-8003-exec-66" > Exception in threa d "https-nio-8003-exec-58" Exception in thread > "https-nio-8003-Acceptor-0" java.lang.OutOfMemoryError: Direct buffer memory > 746 at java.nio.Bits.reserveMemory(Bits.java:658) > 747 at > java.nio.DirectByteBuffer.<init>(DirectByteBuffer.java:123) > 748 at java.nio.ByteBuffer.allocateDirect(ByteBuffer.java:311) > 749 at org.apache.tomcat.util.net > .SocketBufferHandler.<init>(SocketBufferHandler.java:38) > 750 at org.apache.tomcat.util.net > .NioEndpoint.setSocketOptions(NioEndpoint.java:405) > 751 at org.apache.tomcat.util.net > .NioEndpoint$Acceptor.run(NioEndpoint.java:531) > 752 at java.lang.Thread.run(Thread.java:745) > 753 java.lang.OutOfMemoryError: Direct buffer memory > 754 at java.nio.Bits.reserveMemory(Bits.java:658) > 755 at > java.nio.DirectByteBuffer.<init>(DirectByteBuffer.java:123) > 756 at java.nio.ByteBuffer.allocateDirect(ByteBuffer.java:311) > 757 at > org.apache.tomcat.util.buf.ByteBufferUtils.expand(ByteBufferUtils.java:80) > 758 at org.apache.tomcat.util.net > .SecureNioChannel.processSNI(SecureNioChannel.java:311) > 759 at org.apache.tomcat.util.net > .SecureNioChannel.handshake(SecureNioChannel.java:169) > 760 at org.apache.tomcat.util.net > .NioEndpoint$SocketProcessor.run(NioEndpoint.java:1498) > 761 at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) > 762 at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) > 763 at > org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) > 764 at java.lang.Thread.run(Thread.java:745) > +++ > > By default -XX:MaxDirectMemorySize=0 (automatic, what is automatic here?) > > Any hints? > > I don't think everything is going through the buffer deallocation code, but it's a bit hairy with NIO. And it shouldn't happen unless there are already problems.
Rémy