powered by Jive Software

Why does openfired.exe occupy CPU so high?

Hello everybody,

we are using openfire to make a small IM projects, and it has already been running.

but every some days later system becomes very slow and the openfired.exe will occupy CPU more than 70% and exceptions happens, like this:

Exception in thread “pool-8-thread-22” java.lang.NullPointerException
at org.jivesoftware.openfire.net.SASLAuthentication.handle(SASLAuthentication.java :274)
at org.jivesoftware.openfire.SessionPacketRouter.route(SessionPacketRouter.java:58 )
at org.jivesoftware.openfire.http.HttpSession.sendPendingPackets(HttpSession.java: 611)
at org.jivesoftware.openfire.http.HttpSessionManager$HttpPacketSender.run(HttpSess ionManager.java:373)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

and in folder logs of openfire, there is no error in error.log. But the warn.log will show the contents below:

2010.02.25 21:56:51 Client provided invalid session: fc3d12cb. [192.168.2.254]
2010.02.25 21:59:37 Packets could not be found for session 39856fd8 cannotbe delivered to client
2010.02.25 22:00:07 Packets could not be found for session 77b1ded6 cannotbe delivered to client
2010.02.26 00:21:13 Client provided invalid session: 9b6f0786. [192.168.2.254]
2010.02.26 08:59:58 Client provided invalid session: 13764d52. [192.168.2.254]
2010.02.26 09:03:41 Packets could not be found for session 30501611 cannotbe delivered to client
2010.02.26 09:04:11 Packets could not be found for session 583d8240 cannotbe delivered to client
2010.02.26 09:53:11 Client provided invalid session: 5ed1c6ab. [192.168.2.254]
2010.02.26 09:58:41 Client provided invalid session: 1da3f973. [192.168.2.254]
2010.02.26 10:00:41 Packets could not be found for session bf5c970c cannotbe delivered to client
2010.02.26 10:01:11 Packets could not be found for session dcbb653d cannotbe delivered to client
2010.02.26 11:07:48 Client provided invalid session: 385af9. [192.168.2.254]
2010.02.26 11:14:41 Packets could not be found for session 360a5a8d cannotbe delivered to client
2010.02.26 12:35:26 Client provided invalid session: 11fc4f7b. [192.168.2.254]
2010.02.26 13:04:50 Client provided invalid session: 81178070. [192.168.2.254]
2010.02.26 13:05:12 Packets could not be found for session 4d0865d0 cannotbe delivered to client
2010.02.26 13:57:42 Packets could not be found for session 1dda253b cannotbe delivered to client
2010.02.26 13:58:42 Packets could not be found for session 828d7f0d cannotbe delivered to client
2010.02.26 16:03:25 Request 1884380992 > 1884380991, ending session.
2010.02.26 16:07:42 Packets could not be found for session 68c20a3e cannotbe delivered to client
2010.02.26 16:09:12 Packets could not be found for session 9e232c58 cannotbe delivered to client

I’ve no idea why this happens, is there anybody who can help me?

thanks!

Hi,

Openfire may have used all memory, this leads to a high cpu usage. You may be experience http://www.igniterealtime.org/community/thread/40018 which causes high memory usage.

LG