Server freezes after a few hours

Hello

I have a server running Centos 5.5, JRE 1.6.29 and Openfire 3.7.1. I have been testing openfire for a few days and the server freezes after running for a few hours. I already increased the size of the Java memory to 512 and that didn’t help. The server information says that less than 5% of the java memory is being used. Right now the log files are empty but I will post them as soon as I get something.

Any suggestions?

a) Enable DEBUG mode in Logs and check

b) Try to increase the idle time-out for sessions

c) remove unwanted plugins …for e.g. ofrrds table size keeps on increasing if u use monitoring plugin

try out these

@Knight Raider

Thank you for your help!!!

a) Enable DEBUG mode in Logs and check

I left the openfire server running all night and it crashed again. I got the debug file and the last entry was at 4 AM. I restarted the server the day before at 5 PM that means that it crashed after 11 hours of being running. This is what is in the degub file:

2011.11.11 03:59:50 org.jivesoftware.openfire.nio.ClientConnectionHandler - [/10.0.0.180:2508] appBuffer: java.nio.DirectByteBuffer[pos=0 lim=1 cap=33330]

2011.11.11 03:59:50 org.jivesoftware.openfire.nio.ClientConnectionHandler - [/10.0.0.180:2508] app data read: HeapBuffer[pos=0 lim=1 cap=1: 20] (20)

2011.11.11 03:59:50 org.apache.mina.filter.executor.ExecutorFilter - Launching thread for /10.0.0.180:2508

2011.11.11 03:59:50 org.apache.mina.filter.executor.ExecutorFilter - Exiting since queue is empty for /10.0.0.180:2508

2011.11.11 04:00:11 org.jivesoftware.openfire.nio.ClientConnectionHandler - [/10.0.0.180:3370] Data Read: org.apache.mina.filter.support.SSLHandler@1137792 (HeapBuffer[pos=0 lim=22 cap=64: 17 03 01 00 11 01 CE 45 EC 33 30 80 57 99 82 8D 71 FE 3F 74 58 53])

2011.11.11 04:00:11 org.jivesoftware.openfire.nio.ClientConnectionHandler - [/10.0.0.180:3370] unwrap()

2011.11.11 04:00:11 org.jivesoftware.openfire.nio.ClientConnectionHandler - [/10.0.0.180:3370] inNetBuffer: java.nio.DirectByteBuffer[pos=0 lim=22 cap=16665]

2011.11.11 04:00:11 org.jivesoftware.openfire.nio.ClientConnectionHandler - [/10.0.0.180:3370] appBuffer: java.nio.DirectByteBuffer[pos=0 lim=33330 cap=33330]

2011.11.11 04:00:11 org.jivesoftware.openfire.nio.ClientConnectionHandler - [/10.0.0.180:3370] Unwrap res:Status = OK HandshakeStatus = NOT_HANDSHAKING

bytesConsumed = 22 bytesProduced = 1

2011.11.11 04:00:11 org.jivesoftware.openfire.nio.ClientConnectionHandler - [/10.0.0.180:3370] inNetBuffer: java.nio.DirectByteBuffer[pos=22 lim=22 cap=16665]

2011.11.11 04:00:11 org.jivesoftware.openfire.nio.ClientConnectionHandler - [/10.0.0.180:3370] appBuffer: java.nio.DirectByteBuffer[pos=1 lim=33330 cap=33330]

2011.11.11 04:00:11 org.jivesoftware.openfire.nio.ClientConnectionHandler - [/10.0.0.180:3370] Unwrap res:Status = BUFFER_UNDERFLOW HandshakeStatus = NOT_HANDSHAKING

bytesConsumed = 0 bytesProduced = 0

2011.11.11 04:00:11 org.jivesoftware.openfire.nio.ClientConnectionHandler - [/10.0.0.180:3370] appBuffer: java.nio.DirectByteBuffer[pos=0 lim=1 cap=33330]

2011.11.11 04:00:11 org.jivesoftware.openfire.nio.ClientConnectionHandler - [/10.0.0.180:3370] app data read: HeapBuffer[pos=0 lim=1 cap=1: 20] (20)

2011.11.11 04:00:11 org.apache.mina.filter.executor.ExecutorFilter - Launching thread for /10.0.0.180:3370

2011.11.11 04:00:11 org.apache.mina.filter.executor.ExecutorFilter - Exiting since queue is empty for /10.0.0.180:3370

2011.11.11 04:00:20 org.jivesoftware.openfire.nio.ClientConnectionHandler - [/10.0.0.180:2508] Data Read: org.apache.mina.filter.support.SSLHandler@1b561a2 (HeapBuffer[pos=0 lim=22 cap=64: 17 03 01 00 11 24 ED 2C F6 DA 7C 5B 6E 7D CC F9 74 C9 40 5F 66 3A])

2011.11.11 04:00:20 org.jivesoftware.openfire.nio.ClientConnectionHandler - [/10.0.0.180:2508] unwrap()

2011.11.11 04:00:20 org.jivesoftware.openfire.nio.ClientConnectionHandler - [/10.0.0.180:2508] inNetBuffer: java.nio.DirectByteBuffer[pos=0 lim=22 cap=16665]

2011.11.11 04:00:20 org.jivesoftware.openfire.nio.ClientConnectionHandler - [/10.0.0.180:2508] appBuffer: java.nio.DirectByteBuffer[pos=0 lim=33330 cap=33330]

2011.11.11 04:00:20 org.jivesoftware.openfire.nio.ClientConnectionHandler - [/10.0.0.180:2508] Unwrap res:Status = OK HandshakeStatus = NOT_HANDSHAKING

bytesConsumed = 22 bytesProduced = 1

2011.11.11 04:00:20 org.jivesoftware.openfire.nio.ClientConnectionHandler - [/10.0.0.180:2508] inNetBuffer: java.nio.DirectByteBuffer[pos=22 lim=22 cap=16665]

2011.11.11 04:00:20 org.jivesoftware.openfire.nio.ClientConnectionHandler - [/10.0.0.180:2508] appBuffer: java.nio.DirectByteBuffer[pos=1 lim=33330 cap=33330]

2011.11.11 04:00:20 org.jivesoftware.openfire.nio.ClientConnectionHandler - [/10.0.0.180:2508] Unwrap res:Status = BUFFER_UNDERFLOW HandshakeStatus = NOT_HANDSHAKING

bytesConsumed = 0 bytesProduced = 0

2011.11.11 04:00:20 org.jivesoftware.openfire.nio.ClientConnectionHandler - [/10.0.0.180:2508] appBuffer: java.nio.DirectByteBuffer[pos=0 lim=1 cap=33330]

2011.11.11 04:00:20 org.jivesoftware.openfire.nio.ClientConnectionHandler - [/10.0.0.180:2508] app data read: HeapBuffer[pos=0 lim=1 cap=1: 20] (20)

2011.11.11 04:00:20 org.apache.mina.filter.executor.ExecutorFilter - Launching thread for /10.0.0.180:2508

2011.11.11 04:00:20 org.apache.mina.filter.executor.ExecutorFilter - Exiting since queue is empty for /10.0.0.180:2508

I didn’t include the whole file because all of the entries are the same. By the way, the 10.0.0.180 ip address is the machine that I use to connect to the Admin console.

I restarted the server this morning, disabled the iddle time-out and disabled PEP and this is what I am getting in the DEBUG file:

2011.11.11 10:52:00 org.jivesoftware.util.log.util.JettyLog - JettyLog: servlet holder=
2011.11.11 10:52:00 org.jivesoftware.util.log.util.JettyLog - JettyLog: chain=
2011.11.11 10:52:00 org.jivesoftware.util.log.util.JettyLog - JettyLog: servlet holder=
2011.11.11 10:52:00 org.jivesoftware.util.log.util.JettyLog - JettyLog: chain=
2011.11.11 10:52:00 org.jivesoftware.util.log.util.JettyLog - JettyLog: servlet holder=
2011.11.11 10:52:00 org.jivesoftware.util.log.util.JettyLog - JettyLog: chain=
2011.11.11 10:52:00 org.jivesoftware.util.log.util.JettyLog - JettyLog: servlet holder=
2011.11.11 10:52:00 org.jivesoftware.util.log.util.JettyLog - JettyLog: chain=

b) Try to increase the idle time-out for sessions

I disabled it: xmpp.client.iddle -1

c) remove unwanted plugins …for e.g. ofrrds table size keeps on increasing if u use monitoring plugin

This is the only installed plugin: Provides support for Jabber Search (XEP-0055)

Do you see anything wrong?

Regards