directory-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emmanuel Lécharny <elecha...@gmail.com>
Subject Re: OutOfMemoryError when querying from PingFederate using LDAPS and self-signed certificate
Date Mon, 11 Feb 2019 07:04:32 GMT
Hi Johanes,

it seems that the server is trying to read a message which is too big to 
be handled. If we look at the first stack trace, we have :

ap_1  | java.lang.OutOfMemoryError: Java heap space
ap_1  | at java.nio.HeapByteBuffer.<init>(HeapByteBuffer.java:57)
ap_1  | at java.nio.ByteBuffer.allocate(ByteBuffer.java:335)
ap_1  | at
org.apache.mina.core.buffer.SimpleBufferAllocator.allocateNioBuffer(SimpleBufferAllocator.java:42)
ap_1  | at
org.apache.mina.core.buffer.AbstractIoBuffer.capacity(AbstractIoBuffer.java:185)
ap_1  | at
org.apache.mina.filter.ssl.SslHandler.handshake(SslHandler.java:597)
ap_1  | at
org.apache.mina.filter.ssl.SslHandler.messageReceived(SslHandler.java:353)

which means that while processing an incoming message (a Handshake 
message, actually), we try to wrap it into the buffer used by the 
SslEngine in this loop :

                 result = sslEngine.wrap(emptyBuffer.buf(), 
outNetBuffer.buf());

                 while ( result.getStatus() == 
SSLEngineResult.Status.BUFFER_OVERFLOW ) {
                     outNetBuffer.capacity(outNetBuffer.capacity() <<
1);
                     outNetBuffer.limit(outNetBuffer.capacity());

                     result = sslEngine.wrap(emptyBuffer.buf(), 
outNetBuffer.buf());
                 }

This should loop, and at some point, we try to allocate way too much memory.

That is most certainly the reason of your OOM. Now to understand what is 
the root cause.

There must be something really wrong in the received message for 
SslEngine not being able to wrap it properly.

At this point, I would suggest to run the server with 
"*-Djavax.net.debug=all" to see what's going on. It's going to be 
verbose...*

*
*

*Also can you tell us which Java version you are using, and the JVM 
vendor, plus the ApacheDS version you are using.*

*
*

*Thanks !
*


On 11/02/2019 03:03, Johanes Soetanto wrote:
> Hi all,
>
> We are currently exploring to use ApacheDS and PingFederate to provide
> single sign on however encounter problem OutOfMemoryError: Java heap space
> when trying to query a user from PingFederate using LDAPS and self-signed
> certificate.
>
> What works:
> - I have setup ApacheDS using self-signed and confirm it works when
> connecting using Directory Studio on port 10389 on a docker container with
> port forwarding on host machine both for querying/importing LDIF
> - I have setup PingFederate to use ApachedDS without LDAPS and it works fine
> - At this stage the directory only contain 1 test user under JDBM
> partition. e.g. uid=1,ou=external,o=my.org
>
> What fail:
> - Once I import the self-signed certificate from ApacheDS into PingFederate
> and set it up using LDAPS on port 10636, ApacheDS spit out OOME (while
> PingFederate still works fine)
>
> I tried to lookup for similar issue and increase the memory of the instance
> by providing JAVA_OPTS=-Xmx1g and still no luck.
>
> If anyone have any pointer on troubleshoot would be great. Exception stack
> below
>
> ap_1  | [01:41:04] WARN
> [org.apache.directory.server.ldap.LdapProtocolHandler] - Unexpected
> exception forcing session to close: sending disconnect notice to client.
> ap_1  | java.lang.OutOfMemoryError: Java heap space
> ap_1  | at java.nio.HeapByteBuffer.<init>(HeapByteBuffer.java:57)
> ap_1  | at java.nio.ByteBuffer.allocate(ByteBuffer.java:335)
> ap_1  | at
> org.apache.mina.core.buffer.SimpleBufferAllocator.allocateNioBuffer(SimpleBufferAllocator.java:42)
> ap_1  | at
> org.apache.mina.core.buffer.AbstractIoBuffer.capacity(AbstractIoBuffer.java:185)
> ap_1  | at
> org.apache.mina.filter.ssl.SslHandler.handshake(SslHandler.java:597)
> ap_1  | at
> org.apache.mina.filter.ssl.SslHandler.messageReceived(SslHandler.java:353)
> ap_1  | at
> org.apache.mina.filter.ssl.SslFilter.messageReceived(SslFilter.java:516)
> ap_1  | at
> org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:650)
> ap_1  | at
> org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1300(DefaultIoFilterChain.java:49)
> ap_1  | at
> org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:1141)
> ap_1  | at
> org.apache.mina.core.filterchain.IoFilterAdapter.messageReceived(IoFilterAdapter.java:122)
> ap_1  | at
> org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:650)
> ap_1  | at
> org.apache.mina.core.filterchain.DefaultIoFilterChain.fireMessageReceived(DefaultIoFilterChain.java:643)
> ap_1  | at
> org.apache.mina.core.polling.AbstractPollingIoProcessor.read(AbstractPollingIoProcessor.java:539)
> ap_1  | at
> org.apache.mina.core.polling.AbstractPollingIoProcessor.access$1200(AbstractPollingIoProcessor.java:68)
> ap_1  | at
> org.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.process(AbstractPollingIoProcessor.java:1242)
> ap_1  | at
> org.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.process(AbstractPollingIoProcessor.java:1231)
> ap_1  | at
> org.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.run(AbstractPollingIoProcessor.java:683)
> ap_1  | at
> org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:64)
> ap_1  | at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
> ap_1  | at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
> ap_1  | at java.lang.Thread.run(Thread.java:748)
> ap_1  | [01:41:04] WARN
> [org.apache.directory.server.ldap.LdapProtocolHandler] - Unexpected
> exception forcing session to close: sending disconnect notice to client.
> ap_1  | java.lang.OutOfMemoryError: Java heap space
> ap_1  | at java.nio.HeapByteBuffer.<init>(HeapByteBuffer.java:57)
> ap_1  | at java.nio.ByteBuffer.allocate(ByteBuffer.java:335)
> ap_1  | at
> org.apache.mina.core.buffer.SimpleBufferAllocator.allocateNioBuffer(SimpleBufferAllocator.java:42)
> ap_1  | at
> org.apache.mina.core.buffer.AbstractIoBuffer.capacity(AbstractIoBuffer.java:185)
> ap_1  | at
> org.apache.mina.filter.ssl.SslHandler.closeOutbound(SslHandler.java:487)
> ap_1  | at
> org.apache.mina.filter.ssl.SslFilter.initiateClosure(SslFilter.java:760)
> ap_1  | at
> org.apache.mina.filter.ssl.SslFilter.filterClose(SslFilter.java:693)
> ap_1  | at
> org.apache.mina.core.filterchain.DefaultIoFilterChain.callPreviousFilterClose(DefaultIoFilterChain.java:776)
> ap_1  | at
> org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1600(DefaultIoFilterChain.java:49)
> ap_1  | at
> org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.filterClose(DefaultIoFilterChain.java:1168)
> ap_1  | at
> org.apache.mina.core.filterchain.IoFilterAdapter.filterClose(IoFilterAdapter.java:146)
> ap_1  | at
> org.apache.mina.core.filterchain.DefaultIoFilterChain.callPreviousFilterClose(DefaultIoFilterChain.java:776)
> ap_1  | at
> org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1600(DefaultIoFilterChain.java:49)
> ap_1  | at
> org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.filterClose(DefaultIoFilterChain.java:1168)
> ap_1  | at
> org.apache.mina.filter.executor.ExecutorFilter.filterClose(ExecutorFilter.java:622)
> ap_1  | at
> org.apache.mina.core.filterchain.DefaultIoFilterChain.callPreviousFilterClose(DefaultIoFilterChain.java:776)
> ap_1  | at
> org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1600(DefaultIoFilterChain.java:49)
> ap_1  | at
> org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.filterClose(DefaultIoFilterChain.java:1168)
> ap_1  | at
> org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.filterClose(DefaultIoFilterChain.java:1047)
> ap_1  | at
> org.apache.mina.core.filterchain.DefaultIoFilterChain.callPreviousFilterClose(DefaultIoFilterChain.java:776)
> ap_1  | at
> org.apache.mina.core.filterchain.DefaultIoFilterChain.fireFilterClose(DefaultIoFilterChain.java:769)
> ap_1  | at
> org.apache.mina.core.session.AbstractIoSession.closeNow(AbstractIoSession.java:353)
> ap_1  | at
> org.apache.directory.server.ldap.LdapProtocolHandler.cleanUpSession(LdapProtocolHandler.java:138)
> ap_1  | at
> org.apache.directory.server.ldap.LdapProtocolHandler.exceptionCaught(LdapProtocolHandler.java:247)
> ap_1  | at
> org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.exceptionCaught(DefaultIoFilterChain.java:991)
> ap_1  | at
> org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextExceptionCaught(DefaultIoFilterChain.java:706)
> ap_1  | at
> org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1100(DefaultIoFilterChain.java:49)
> ap_1  | at
> org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.exceptionCaught(DefaultIoFilterChain.java:1123)
> ap_1  | at
> org.apache.mina.filter.executor.ExecutorFilter.exceptionCaught(ExecutorFilter.java:570)
> ap_1  | at
> org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextExceptionCaught(DefaultIoFilterChain.java:706)
> ap_1  | at
> org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1100(DefaultIoFilterChain.java:49)
> ap_1  | at
> org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.exceptionCaught(DefaultIoFilterChain.java:1123)
> ap_1  | [01:41:04] WARN
> [org.apache.directory.server.ldap.LdapProtocolHandler] - Unexpected
> exception forcing session to close: sending disconnect notice to client.
> ap_1  | java.lang.OutOfMemoryError: Java heap space
> ap_1  | at java.nio.HeapByteBuffer.<init>(HeapByteBuffer.java:57)
> ap_1  | at java.nio.ByteBuffer.allocate(ByteBuffer.java:335)
> ap_1  | at
> org.apache.mina.core.buffer.SimpleBufferAllocator.allocateNioBuffer(SimpleBufferAllocator.java:42)
> ap_1  | at
> org.apache.mina.core.buffer.AbstractIoBuffer.capacity(AbstractIoBuffer.java:185)
> ap_1  | at
> org.apache.mina.filter.ssl.SslHandler.closeOutbound(SslHandler.java:487)
> ap_1  | at
> org.apache.mina.filter.ssl.SslFilter.initiateClosure(SslFilter.java:760)
> ap_1  | at
> org.apache.mina.filter.ssl.SslFilter.filterClose(SslFilter.java:693)
> ap_1  | at
> org.apache.mina.core.filterchain.DefaultIoFilterChain.callPreviousFilterClose(DefaultIoFilterChain.java:776)
> ap_1  | at
> org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1600(DefaultIoFilterChain.java:49)
> ap_1  | at
> org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.filterClose(DefaultIoFilterChain.java:1168)
> ap_1  | at
> org.apache.mina.core.filterchain.IoFilterAdapter.filterClose(IoFilterAdapter.java:146)
> ap_1  | at
> org.apache.mina.core.filterchain.DefaultIoFilterChain.callPreviousFilterClose(DefaultIoFilterChain.java:776)
> ap_1  | at
> org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1600(DefaultIoFilterChain.java:49)
> ap_1  | at
> org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.filterClose(DefaultIoFilterChain.java:1168)
> ap_1  | at
> org.apache.mina.filter.executor.ExecutorFilter.filterClose(ExecutorFilter.java:622)
> ap_1  | at
> org.apache.mina.core.filterchain.DefaultIoFilterChain.callPreviousFilterClose(DefaultIoFilterChain.java:776)
> ap_1  | at
> org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1600(DefaultIoFilterChain.java:49)
> ap_1  | at
> org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.filterClose(DefaultIoFilterChain.java:1168)
> ap_1  | at
> org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.filterClose(DefaultIoFilterChain.java:1047)
> ap_1  | at
> org.apache.mina.core.filterchain.DefaultIoFilterChain.callPreviousFilterClose(DefaultIoFilterChain.java:776)
> ap_1  | at
> org.apache.mina.core.filterchain.DefaultIoFilterChain.fireFilterClose(DefaultIoFilterChain.java:769)
> ap_1  | at
> org.apache.mina.core.session.AbstractIoSession.closeNow(AbstractIoSession.java:353)
> ap_1  | at
> org.apache.directory.server.ldap.LdapProtocolHandler.cleanUpSession(LdapProtocolHandler.java:138)
> ap_1  | at
> org.apache.directory.server.ldap.LdapProtocolHandler.exceptionCaught(LdapProtocolHandler.java:247)
> ap_1  | at
> org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.exceptionCaught(DefaultIoFilterChain.java:991)
> ap_1  | at
> org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextExceptionCaught(DefaultIoFilterChain.java:706)
> ap_1  | at
> org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1100(DefaultIoFilterChain.java:49)
> ap_1  | at
> org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.exceptionCaught(DefaultIoFilterChain.java:1123)
> ap_1  | at
> org.apache.mina.filter.executor.ExecutorFilter.exceptionCaught(ExecutorFilter.java:570)
> ap_1  | at
> org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextExceptionCaught(DefaultIoFilterChain.java:706)
> ap_1  | at
> org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1100(DefaultIoFilterChain.java:49)
> ap_1  | at
> org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.exceptionCaught(DefaultIoFilterChain.java:1123)
> ap_1  | [01:41:04] WARN
> [org.apache.directory.server.ldap.LdapProtocolHandler] - Unexpected
> exception forcing session to close: sending disconnect notice to client.
> ap_1  | java.lang.OutOfMemoryError: Java heap space
> ap_1  | at java.nio.HeapByteBuffer.<init>(HeapByteBuffer.java:57)
> ap_1  | at java.nio.ByteBuffer.allocate(ByteBuffer.java:335)
> ap_1  | at
> org.apache.mina.core.buffer.SimpleBufferAllocator.allocateNioBuffer(SimpleBufferAllocator.java:42)
> ap_1  | at
> org.apache.mina.core.buffer.AbstractIoBuffer.capacity(AbstractIoBuffer.java:185)
> ap_1  | at
> org.apache.mina.filter.ssl.SslHandler.closeOutbound(SslHandler.java:487)
> ap_1  | at
> org.apache.mina.filter.ssl.SslFilter.initiateClosure(SslFilter.java:760)
> ap_1  | at
> org.apache.mina.filter.ssl.SslFilter.filterClose(SslFilter.java:693)
> ap_1  | at
> org.apache.mina.core.filterchain.DefaultIoFilterChain.callPreviousFilterClose(DefaultIoFilterChain.java:776)
> ap_1  | at
> org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1600(DefaultIoFilterChain.java:49)
> ap_1  | at
> org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.filterClose(DefaultIoFilterChain.java:1168)
> ap_1  | at
> org.apache.mina.core.filterchain.IoFilterAdapter.filterClose(IoFilterAdapter.java:146)
> ap_1  | at
> org.apache.mina.core.filterchain.DefaultIoFilterChain.callPreviousFilterClose(DefaultIoFilterChain.java:776)
> ap_1  | at
> org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1600(DefaultIoFilterChain.java:49)
> ap_1  | at
> org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.filterClose(DefaultIoFilterChain.java:1168)
> ap_1  | at
> org.apache.mina.filter.executor.ExecutorFilter.filterClose(ExecutorFilter.java:622)
> ap_1  | at
> org.apache.mina.core.filterchain.DefaultIoFilterChain.callPreviousFilterClose(DefaultIoFilterChain.java:776)
> ap_1  | at
> org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1600(DefaultIoFilterChain.java:49)
> ap_1  | at
> org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.filterClose(DefaultIoFilterChain.java:1168)
> ap_1  | at
> org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.filterClose(DefaultIoFilterChain.java:1047)
> ap_1  | at
> org.apache.mina.core.filterchain.DefaultIoFilterChain.callPreviousFilterClose(DefaultIoFilterChain.java:776)
> ap_1  | at
> org.apache.mina.core.filterchain.DefaultIoFilterChain.fireFilterClose(DefaultIoFilterChain.java:769)
> ap_1  | at
> org.apache.mina.core.session.AbstractIoSession.closeNow(AbstractIoSession.java:353)
> ap_1  | at
> org.apache.directory.server.ldap.LdapProtocolHandler.cleanUpSession(LdapProtocolHandler.java:138)
> ap_1  | at
> org.apache.directory.server.ldap.LdapProtocolHandler.exceptionCaught(LdapProtocolHandler.java:247)
> ap_1  | at
> org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.exceptionCaught(DefaultIoFilterChain.java:991)
> ap_1  | at
> org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextExceptionCaught(DefaultIoFilterChain.java:706)
> ap_1  | at
> org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1100(DefaultIoFilterChain.java:49)
> ap_1  | at
> org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.exceptionCaught(DefaultIoFilterChain.java:1123)
> ap_1  | at
> org.apache.mina.filter.executor.ExecutorFilter.exceptionCaught(ExecutorFilter.java:570)
> ap_1  | at
> org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextExceptionCaught(DefaultIoFilterChain.java:706)
> ap_1  | at
> org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1100(DefaultIoFilterChain.java:49)
> ap_1  | at
> org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.exceptionCaught(DefaultIoFilterChain.java:1123)
> ap_1  | [01:41:04] WARN
> [org.apache.directory.server.ldap.LdapProtocolHandler] - Unexpected
> exception forcing session to close: sending disconnect notice to client.
> ap_1  | java.lang.OutOfMemoryError: Java heap space
> ap_1  | at java.nio.HeapByteBuffer.<init>(HeapByteBuffer.java:57)
> ap_1  | at java.nio.ByteBuffer.allocate(ByteBuffer.java:335)
> ap_1  | at
> org.apache.mina.core.buffer.SimpleBufferAllocator.allocateNioBuffer(SimpleBufferAllocator.java:42)
> ap_1  | at
> org.apache.mina.core.buffer.AbstractIoBuffer.capacity(AbstractIoBuffer.java:185)
> ap_1  | at
> org.apache.mina.filter.ssl.SslHandler.closeOutbound(SslHandler.java:487)
> ap_1  | at
> org.apache.mina.filter.ssl.SslFilter.initiateClosure(SslFilter.java:760)
> ap_1  | at
> org.apache.mina.filter.ssl.SslFilter.filterClose(SslFilter.java:693)
> ap_1  | at
> org.apache.mina.core.filterchain.DefaultIoFilterChain.callPreviousFilterClose(DefaultIoFilterChain.java:776)
> ap_1  | at
> org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1600(DefaultIoFilterChain.java:49)
> ap_1  | at
> org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.filterClose(DefaultIoFilterChain.java:1168)
> ap_1  | at
> org.apache.mina.core.filterchain.IoFilterAdapter.filterClose(IoFilterAdapter.java:146)
> ap_1  | at
> org.apache.mina.core.filterchain.DefaultIoFilterChain.callPreviousFilterClose(DefaultIoFilterChain.java:776)
> ap_1  | at
> org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1600(DefaultIoFilterChain.java:49)
> ap_1  | at
> org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.filterClose(DefaultIoFilterChain.java:1168)
> ap_1  | at
> org.apache.mina.filter.executor.ExecutorFilter.filterClose(ExecutorFilter.java:622)
> ap_1  | at
> org.apache.mina.core.filterchain.DefaultIoFilterChain.callPreviousFilterClose(DefaultIoFilterChain.java:776)
> ap_1  | at
> org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1600(DefaultIoFilterChain.java:49)
> ap_1  | at
> org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.filterClose(DefaultIoFilterChain.java:1168)
> ap_1  | at
> org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.filterClose(DefaultIoFilterChain.java:1047)
> ap_1  | at
> org.apache.mina.core.filterchain.DefaultIoFilterChain.callPreviousFilterClose(DefaultIoFilterChain.java:776)
> ap_1  | at
> org.apache.mina.core.filterchain.DefaultIoFilterChain.fireFilterClose(DefaultIoFilterChain.java:769)
> ap_1  | at
> org.apache.mina.core.session.AbstractIoSession.closeNow(AbstractIoSession.java:353)
> ap_1  | at
> org.apache.directory.server.ldap.LdapProtocolHandler.cleanUpSession(LdapProtocolHandler.java:138)
> ap_1  | at
> org.apache.directory.server.ldap.LdapProtocolHandler.exceptionCaught(LdapProtocolHandler.java:247)
> ap_1  | at
> org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.exceptionCaught(DefaultIoFilterChain.java:991)
> ap_1  | at
> org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextExceptionCaught(DefaultIoFilterChain.java:706)
> ap_1  | at
> org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1100(DefaultIoFilterChain.java:49)
> ap_1  | at
> org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.exceptionCaught(DefaultIoFilterChain.java:1123)
> ap_1  | at
> org.apache.mina.filter.executor.ExecutorFilter.exceptionCaught(ExecutorFilter.java:570)
> ap_1  | at
> org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextExceptionCaught(DefaultIoFilterChain.java:706)
> ap_1  | at
> org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1100(DefaultIoFilterChain.java:49)
> ap_1  | at
> org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.exceptionCaught(DefaultIoFilterChain.java:1123)
> ap_1  | [01:41:04] WARN
> [org.apache.directory.server.ldap.LdapProtocolHandler] - Failed to close
> IoSession for LdapSession.
> ap_1  | [01:41:04] WARN
> [org.apache.directory.server.ldap.LdapProtocolHandler] - Unexpected
> exception forcing session to close: sending disconnect notice to client.
> ap_1  | java.lang.OutOfMemoryError: Java heap space
> ap_1  | at java.nio.HeapByteBuffer.<init>(HeapByteBuffer.java:57)
> ap_1  | at java.nio.ByteBuffer.allocate(ByteBuffer.java:335)
> ap_1  | at
> org.apache.mina.core.buffer.SimpleBufferAllocator.allocateNioBuffer(SimpleBufferAllocator.java:42)
> ap_1  | at
> org.apache.mina.core.buffer.AbstractIoBuffer.capacity(AbstractIoBuffer.java:185)
> ap_1  | at
> org.apache.mina.filter.ssl.SslHandler.handshake(SslHandler.java:597)
> ap_1  | at
> org.apache.mina.filter.ssl.SslHandler.messageReceived(SslHandler.java:353)
> ap_1  | at
> org.apache.mina.filter.ssl.SslFilter.messageReceived(SslFilter.java:516)
> ap_1  | at
> org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:650)
> ap_1  | at
> org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1300(DefaultIoFilterChain.java:49)
> ap_1  | at
> org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:1141)
> ap_1  | at
> org.apache.mina.core.filterchain.IoFilterAdapter.messageReceived(IoFilterAdapter.java:122)
> ap_1  | at
> org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:650)
> ap_1  | at
> org.apache.mina.core.filterchain.DefaultIoFilterChain.fireMessageReceived(DefaultIoFilterChain.java:643)
> ap_1  | at
> org.apache.mina.core.polling.AbstractPollingIoProcessor.read(AbstractPollingIoProcessor.java:539)
> ap_1  | at
> org.apache.mina.core.polling.AbstractPollingIoProcessor.access$1200(AbstractPollingIoProcessor.java:68)
> ap_1  | at
> org.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.process(AbstractPollingIoProcessor.java:1242)
> ap_1  | at
> org.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.process(AbstractPollingIoProcessor.java:1231)
> ap_1  | at
> org.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.run(AbstractPollingIoProcessor.java:683)
> ap_1  | at
> org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:64)
> ap_1  | at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
> ap_1  | at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
> ap_1  | at java.lang.Thread.run(Thread.java:748)
> ap_1  | Exception in thread "pool-2-thread-2" java.lang.OutOfMemoryError:
> Java heap space
> ap_1  | at java.nio.HeapByteBuffer.<init>(HeapByteBuffer.java:57)
> ap_1  | at java.nio.ByteBuffer.allocate(ByteBuffer.java:335)
> ap_1  | at
> org.apache.mina.core.buffer.SimpleBufferAllocator.allocateNioBuffer(SimpleBufferAllocator.java:42)
> ap_1  | at
> org.apache.mina.core.buffer.AbstractIoBuffer.capacity(AbstractIoBuffer.java:185)
> ap_1  | at
> org.apache.mina.filter.ssl.SslHandler.handshake(SslHandler.java:597)
> ap_1  | at
> org.apache.mina.filter.ssl.SslHandler.messageReceived(SslHandler.java:353)
> ap_1  | at
> org.apache.mina.filter.ssl.SslFilter.messageReceived(SslFilter.java:516)
> ap_1  | at
> org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:650)
> ap_1  | at
> org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1300(DefaultIoFilterChain.java:49)
> ap_1  | at
> org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:1141)
> ap_1  | at
> org.apache.mina.core.filterchain.IoFilterAdapter.messageReceived(IoFilterAdapter.java:122)
> ap_1  | at
> org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:650)
> ap_1  | at
> org.apache.mina.core.filterchain.DefaultIoFilterChain.fireMessageReceived(DefaultIoFilterChain.java:643)
> ap_1  | at
> org.apache.mina.core.polling.AbstractPollingIoProcessor.read(AbstractPollingIoProcessor.java:539)
> ap_1  | at
> org.apache.mina.core.polling.AbstractPollingIoProcessor.access$1200(AbstractPollingIoProcessor.java:68)
> ap_1  | at
> org.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.process(AbstractPollingIoProcessor.java:1242)
> ap_1  | at
> org.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.process(AbstractPollingIoProcessor.java:1231)
> ap_1  | at
> org.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.run(AbstractPollingIoProcessor.java:683)
> ap_1  | at
> org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:64)
> ap_1  | at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
> ap_1  | at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
> ap_1  | at java.lang.Thread.run(Thread.java:748)
>
>
> Regards,
>
> Johanes
>

Mime
View raw message