Server 60-90% CPU Usage??

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
DjSt3rios
Posts: 30
Joined: Thu Sep 16, 2010 7:00 pm

Server 60-90% CPU Usage??

Post by DjSt3rios »

L2J Revision Number: 5937M
L2JDP Revision Number: 9641M

Hello, I have a problem with my server. I haven't done many modifications (just added a faction system), and my server consumes from 50% or 60% up to 95% CPU usage... is that normal? I have 6 Core CPU(AMD Phenom II X6) @ 2.8GHz. With interlude servers i never had that much, maybe like 2% CPU Usage? Although I recently formatted and installed 64 bit Windows 7 (Previously 32 bit), I am thinking, could it a java issue? does everyone have that kind of "problem" ?
User avatar
nonom
L2j Veteran
L2j Veteran
Posts: 649
Joined: Wed Mar 11, 2009 10:34 pm
Location: Magmeld

Re: Server 60-90% CPU Usage??

Post by nonom »

The main proccess by default is consuming around 1.192.860KB~ with fresh working copy that I deployed today from svn. It depends much things, in my case it's not critical for the system but I'm not using any geodata or custom mods, it's just to development.

Install a live server is not an easy task. The machine needs several tunnings depending the how many services are running. So could start searching a bit in our forums, we discussed long time that topic in the past.

Remember that setting high values doesn't mean it goes better.
Image
"There are three kinds of people in this world, those who can count and those who can't"
DjSt3rios
Posts: 30
Joined: Thu Sep 16, 2010 7:00 pm

Re: Server 60-90% CPU Usage??

Post by DjSt3rios »

but the server is almost the same as the svn.. the L2J interlude version consumes maximum 5% CPU usage, it just looks to weird.. the thing is I opened a lineage client to test the server, and after typing a few commands the whole server froze... the only thing I changed to the source is add 1 more boolean value to the L2PcInstance, slightly tweak some packets, add some checks for the faction system, and that's pretty much it. seeing 80% CPU usage just for a lineage server its just crazy. I tested it in my own computer, its not a dedicated server.. and my computer speed slowed down too because of that.. anyway if anyone else has experienced something similar and found a fix please post. In the meanwhile I will try to install 32 bit java too, see if it has any difference. This could be a loop that does not work correctly and repeat itself or something.


EDIT: Seems like it is a java issue. I uninstalled the 64 bit version of java, and I installed the 32 bit one. Now the CPU usage does not go more than 20%. Thanks for the all tips and help.
User avatar
UnAfraid
L2j Veteran
L2j Veteran
Posts: 4199
Joined: Mon Jul 23, 2007 4:25 pm
Location: Bulgaria
Contact:

Re: Server 60-90% CPU Usage??

Post by UnAfraid »

Try to debug it and check what's causing the performance drop.
Image
Post Reply