I have migrated from jabberd-1.x to Jive Messenger. Everything works great and admin is really easy. One problem however, is the cpu load on my server. Jive have been running for a day or two with 25 online users at this time. Below is the output of the unix ‘‘top’’ command:
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
5382 jive 18 0 334m 132m 18m S 99.9 26.2 236:23.31 java
The server is equipped with a Intel® Pentium® 4 CPU 2.80GHz CPU.
I’'m using jre1.5.0_04 for Linux, running on a 2.6.11 kernel.
So, my question: Is this normal or is something wrong? Is there anyway to improve this?
i don’‘t think it’'s normal. besides JM, do you have other service in your machine?
here i have running in the same machine JM 2.2.0 (with MySQL), Apache2, Resin + JWChat and it’'s CPU share is 30% tops. the machine is an desktop PIII 1.1 with 384 RAM. and there are normally 400 users at the same time. oh yeah, SO is Linux (Slackware 10.1)
I have lots of other stuff running, but without Jive/JM, the cpu load is minimum. Been running the jabberd-1.x on the same box with all the other stuff for many years. I’'m thinking maybe the JRE is wrong or something? Debug is disabled in Jive, but there are some errors and warnings. Could that cause the high load?
Supid question, but was the cpu spiked at this point?
Everything is in a wait state. It doesn’‘t look like anything is processing. You’‘ll typically see a large call stack and the method that is taking time. Also what are the jvm args you’'re using, OS, memory, etc.
So, just to be clear…you start messenger (with messenger.sh) and the cpu spikes to 99%. What happens if you start another java process, do you get the same behavior?
I restarter Jive a couple of hours ago and added the ‘’-server’’ argument to java. The load is normal (99% idle), but I don’‘t know if it’'s because of the extra argument or if the restart just helped.
Anyway, if it doesn’'t go crazy again my problem is solved
Java™ 2 Runtime Environment, Standard Edition (build 1.5.0_03-b07)
Java HotSpot™ Client VM (build 1.5.0_03-b07, mixed mode, sharing)
I’‘m still using 1.5.0_03 though i’‘m going to upgrade it today. As you could see it’'s even in Client mode. Dont remember why i didnt set it to Server. And no additional arguments as i remember.