powered by Jive Software

Http-bind produces high server load?

Hi,

We are using Openfire as the backend of our web-based chat, using JSJaC client. We usually have 100 active sessions, reaching peaks of 300.

The server is Intel® Xeon™ CPU 3.00GHz, 2 CPU, 4 GB of RAM and the only demanding process is Openfire, continually using 170% of the CPU, causing a high load… (2-3 load).

We only use it for http-bind connections, we are using MySQL but not storing any roster information or authenticating against it. It seems as if Openfire should NOT be consuming so much CPU, should it? We’ve updgraded from 3.3.3 to 3.4.5 with the same results.

The only log which appears quite frequently is a warning log similar to this one:

2008.03.13 22:32:44 Client provided invalid session: 7b6d38af. http://208.74.29.12

Does anybody know what the problem could be?

Thanks!

Pablo

ps, copy/paste from the server page

Java Version:

1.5.0_11 Sun Microsystems Inc. – Java HotSpot™ Server VM

Appserver:

jetty-6.1.x

OS / Hardware:

Linux / i386

Locale / Timezone:

en / Central Standard Time

(-6 GMT)

Java Memory

|

33.92 MB of 949.50 MB (3.6%) used

|

|

http-bind produces high server load?

HTTP does only allow communication in one direction: The client may send an request and the server answers. But the server can’t send any information, without request of the client. For that reason HTTP-Clients have to send a request every second (or more often), even if the user is not chatting.