Quantcast
Channel: Ignite Realtime : Discussion List - All Communities
Viewing all articles
Browse latest Browse all 10742

Java out of memory

$
0
0

Hi,

 

I am running with serios problem in openfire, please help me to tune it to work fine.

 

I am running Openfire 3.8.2 with ldap backend. I have around 8000 users in ldap database and in that avg 2000 users will be concorrent online users in openfire.

 

Initially I didnt use connection manager to run the server. once in a week or byweek server shows out of memory and I forced to restart the server to work again.Then i decided to use connection manager after going through blogs. After using connection manager, openfire is running good but connection manager running out of memory.

 

I am using jre1.7.0_45

 

memory setting of openfire: OPENFIRE_OPTS="-Xmx4596m"

 

memory setting of connection manager : JVM_SETTINGS="-Xms512m -Xmx3024m"

 

error i am getting in connection manager when its going out of memory

 

2014.03.01 08:58:39 [org.jivesoftware.multiplexer.net.ConnectionHandler.exceptionCaught(ConnectionH andler.java:107)]

java.lang.OutOfMemoryError: Java heap space

        at java.nio.HeapByteBuffer.<init>(Unknown Source)

        at java.nio.ByteBuffer.allocate(Unknown Source)

        at org.apache.mina.filter.support.SSLByteBufferPool.createBuffer(SSLByteBufferPool .java:175)

        at org.apache.mina.filter.support.SSLByteBufferPool.expandBuffer(SSLByteBufferPool .java:144)

        at org.apache.mina.filter.support.SSLHandler.encrypt(SSLHandler.java:359)

        at org.apache.mina.filter.SSLFilter.filterWrite(SSLFilter.java:479)

        at org.apache.mina.common.support.AbstractIoFilterChain.callPreviousFilterWrite(Ab stractIoFilterChain.java:361)

        at org.apache.mina.common.support.AbstractIoFilterChain.access$1300(AbstractIoFilt erChain.java:53)

        at org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.filterWrite(Ab stractIoFilterChain.java:659)

        at org.apache.mina.filter.codec.ProtocolCodecFilter.filterWrite(ProtocolCodecFilte r.java:210)

        at org.apache.mina.common.support.AbstractIoFilterChain.callPreviousFilterWrite(Ab stractIoFilterChain.java:361)

        at org.apache.mina.common.support.AbstractIoFilterChain.access$1300(AbstractIoFilt erChain.java:53)

        at org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.filterWrite(Ab stractIoFilterChain.java:659)

        at org.apache.mina.common.support.AbstractIoFilterChain$TailFilter.filterWrite(Abs tractIoFilterChain.java:587)

        at org.apache.mina.common.support.AbstractIoFilterChain.callPreviousFilterWrite(Ab stractIoFilterChain.java:361)

        at org.apache.mina.common.support.AbstractIoFilterChain.fireFilterWrite(AbstractIo FilterChain.java:355)

        at org.apache.mina.transport.socket.nio.SocketSessionImpl.write0(SocketSessionImpl .java:166)

        at org.apache.mina.common.support.BaseIoSession.write(BaseIoSession.java:177)

        at org.apache.mina.common.support.BaseIoSession.write(BaseIoSession.java:168)

        at org.jivesoftware.multiplexer.net.NIOConnection.deliver(NIOConnection.java:230)

        at org.jivesoftware.multiplexer.ClientSession.deliver(ClientSession.java:254)

        at org.jivesoftware.multiplexer.ServerPacketHandler.processRoute(ServerPacketHandl er.java:153)

        at org.jivesoftware.multiplexer.ServerPacketHandler.handle(ServerPacketHandler.jav a:62)

        at org.jivesoftware.multiplexer.ServerPacketReader$ProcessStanzaTask.run(ServerPac ketReader.java:128)

        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

        at java.lang.Thread.run(Unknown Source)

 

 

 

Please help me!!!


Viewing all articles
Browse latest Browse all 10742

Trending Articles