One more question @guus : what does the following warning stands for?
[socket_c2s-thread-2]: org.jivesoftware.openfire.nio.ConnectionHandler - Closing connection due to exception in session: (0x0000F4E3: nio socket, server, /172.254.1.38:63221 => /172.31.22.80:5222)
java.io.IOException: Closing session that seems to be stalled. Preventing OOM
That message occurs when Openfire has queued up to a configurable limit (5MB by default) of data to be read by a client, without the client reading that data. If that happens a lot, then it suggests that clients connections disappear from Openfire, without Openfire realizing it (until this limit kicks in, that is).
btw. i have noticed that i am not able to force close “invalid session/connection” or “detached” connections on the admin console “sessions-summary.jsp” tab
furthermore i have noticed that OF will close detached session itself but invalid session will stay although this session is marked as offline and status is closed
I have debugged around and found out that if the (mina) Connection object in LocalSession is somehow corrupted (network errors or other …) a sess.getHostAddress() in session-row.jspf will fail and results in Invalid session/connection
A click on “Close connection” on admin console (session-summary.jsp) allways fails on detached or invalid session because the call of sess.close(); (in session-summary.jsp) fails. It should call the close method of the Session object, but if this is corrupt or null it wont call the closing event with further clean up tasks, so the session wont be deleted. The problem is that new sessions will not be correctly initialized then too but i dont now exactly why.
I had an issue with 4.6.4 as well in our environment. The XMPP service on 5222 just stops accepting new connections. Existing connections continue functioning properly. The port stays open and you can connect to it, but the server never responds. Rolling back to 4.6.3 also fixed our issue.
I am only able to reproduce the issue in our production environment, the dev environment has been stable on 4.6.4, but it also does not receive near the amount of traffic the prod systems do.
@RuiSimoes as this thread is set to solved by me and I am not able to reopen it for you, you should open and new one including openfire logfiles as attachments