EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Support::Linux Servers (https://www.eqemulator.org/forums/forumdisplay.php?f=588)
-   -   Zone's mem growing too big (https://www.eqemulator.org/forums/showthread.php?t=28985)

eqwarrior 07-22-2009 12:07 PM

Zone's mem growing too big
 
I'm running the server on Debian and have Anguish as one of our high end raid zones. When I boot up the server for the first time, the process name zone for "./zone anguish zone" starts at 20 megs of memory, but after 2 days, its up to 1 gig of memory being used for that one zone. Is it possible there is a memory leak in one of my quest files for anguish? There are about 17 bosses in there with scripted events.

Yeormom 07-22-2009 04:54 PM

Well you're quest files don't contain the leak but the functions they call could be losing memory. I removed about a dozen leaks in the quest manager class a few months back so I know they do exist. If it is explicitly occurring in the zone with heavy quests, you've already narrowed the memory leak down to that subset.

Derision 07-22-2009 05:06 PM

Quote:

Originally Posted by eqwarrior (Post 174971)
Is it possible there is a memory leak in one of my quest files for anguish? There are about 17 bosses in there with scripted events.

If you are running Linux and suspect a memory leak, install valgrind, move a character to anguish and boot that zone with this script:

Code:

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:.
valgrind --log-file=valglog --leak-check=full --show-reachable=yes ./zone anguish

Then run around triggering your scripts for a while, camp out and then CTRL-C the zone and you should have a text file called valglog.<processid> detailing where the memory leaks are occurring. Post it here or PM it and I'll take a look.

You don't want to do this on a 'live' server as valgrind adds a substantial overhead because of all the checking it does.

trevius 07-23-2009 12:51 AM

Quote:

Originally Posted by Yeormom (Post 174995)
I removed about a dozen leaks in the quest manager class a few months back

Good fixes are always nice to share! This is open source, after-all.


All times are GMT -4. The time now is 01:46 PM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.