Jump to content

  •  

Bug Tracker Migration

June 3rd
Good news everyone! The staff has decided that it is time to slowly kill off this Bug Tracker. We will begin the process of slowly migrating from this Bug Tracker over to our Github Issues which can be found here: https://github.com/HerculesWS/Hercules/issues

Over the next couple of days, I will be closing off any opportunity to create new reports. However, I still will keep the opportunity to reply to existing Bug Reports. Doing this will allow us to slowly fix any bug reports we have listed here so that we can easily migrate over to our Issue Tracker.

Update - June 7th 2015: Creating new bug posts has been disabled. Please use our https://github.com/HerculesWS/Hercules/issues tracker to post bugs. Users are still able to reply to existing bug posts.

- Administration

Issue Information

  • #005968

  • 3 - Medium

  • Fixed

Issue Confirmations

  • Yes (12)No (0)
Photo

Map server spikes @ 99% CPU usage randomly

Posted by Hercules Bot on 09 June 2012 - 02:25 AM

Originally posted by jTynne
Using trunk 16195 and Harmony, our map-server_sql keeps spiking randomly at 99% CPU usage even with all of my scripts disabled.

I've been monitoring my server for the past three days straight, modifying/updating all of my scripts in hopes that the issue was my fault. Even had the hosting company look into it and they came up with noticing that map-server_sql keeps spiking at 99% which effectively locks everything up for my players in-game.

This has been happening periodically all day long since I first started my server last Friday afternoon. We have ~40-60 players online average, however, the CPU spikes take place regardless of how many players are online.

If ANYONE can help, I will be forever grateful. Thank you!

Originally posted by MarkZD
Try malufett's tomb system:
http://rathena.org/b...added-features/

Edited by MarkZD, 19 June 2012 - 07:31 PM.


Originally posted by benzanaz
still lag...

T-T

Originally posted by benzanaz
@bumb

follow the update at r16318
the server is still LAG

not reslove.... need to fix again

Originally posted by GreenBox
That wasn't a fix, just an optimization :)
Sincerely I don't know what can cause this on mvp tomb unloading as it only unload the npc.

Originally posted by benzanaz
@Greenbox

i'm still waiting you for fix this problem

now my server temp to turn off this option :D

Originally posted by benzanaz
bumb need to fix...

Originally posted by spiritualkid
Anyone found a solution to this?

From my testings, this only occurs on UNIX (couldn't reproduce on Windows).

Also, the lag spikes were minimal when the player who previously killed the MVP was within the tomb's range (minimal as in barely noticeable), but the lag spikes are much worst (few seconds freeze) when the player isn't in the same map as the tomb.

Originally posted by Ind
this makes no sense at all, the tombs are ordinary npcs with no special handling or anything like that at all.


I've tried to reproduce by killing several mvps that spawn tombs -- doppelganger/baphomet/moon/gtb/maya/others and watched the cpu usage closely, it never gone beyond 1%

Originally posted by jTynne
Perhaps in conjunction with something else besides "just" killing them. Unfortunately, this is still an issue for us. :(

Originally posted by benzanaz
not test/ but i'm thinking about x64 compile (linux)

Originally posted by Raizen
in CentOS 6.2 and 5.8 x64 i cannot reproduce the spike.

Originally posted by Lighta
We had that spike on debian64 bit too, but it was before optimisation I'll try again, but it occur more on tomb deletion than spawning new one.

Originally posted by Ind
I identified the problem and believe I fixed it, check [rev=16460]
Before my fix: cpu spike at 36% when unloading tomb
after my fix: cpu spike at 0.6% when unloading tomb.