Ns 2.0 Memory Leak?
GoleX
Join Date: 2002-11-07 Member: 7681Members
<div class="IPBDescription">Pings slowly going up...</div> My NS 2.0 server had been up for 5 days straight, and today and yesterday I had started to receive some complaints about pings... everyone's was hovering in the 100-200 region consistently when they used to be all below 100. It only kept getting worse till today when I saw them all hit 300 on a long game of ns_bast.
It seems like I have tracked down the problem to a memory leak of some sort. The MRTG graphs I am running show it pretty clearly:
<a href='http://twilight-eclipse.com/mrtg/swap.html' target='_blank'>http://twilight-eclipse.com/mrtg/swap.html</a>
As you can see it has been growing steadily since the server started, but suddenly started climbing yesterday as the logs show. I decided to restart it today (to also install the patch) at about 7:50 and you can see the huge drop in memory usage.
I am inclined to think that this is some type of memory leak, although it is strange how the memory usage suddenly jumps and keeps climbing yesterday. Either way, restarting the server helped fix all the ping problems. I might have to setup a crontab to restart the server a few times a week if it keeps up like this.
Has anyone else had any problems like this?
It seems like I have tracked down the problem to a memory leak of some sort. The MRTG graphs I am running show it pretty clearly:
<a href='http://twilight-eclipse.com/mrtg/swap.html' target='_blank'>http://twilight-eclipse.com/mrtg/swap.html</a>
As you can see it has been growing steadily since the server started, but suddenly started climbing yesterday as the logs show. I decided to restart it today (to also install the patch) at about 7:50 and you can see the huge drop in memory usage.
I am inclined to think that this is some type of memory leak, although it is strange how the memory usage suddenly jumps and keeps climbing yesterday. Either way, restarting the server helped fix all the ping problems. I might have to setup a crontab to restart the server a few times a week if it keeps up like this.
Has anyone else had any problems like this?
Comments
If you want multiple rounds to be played on a map, but also want a low timelimit; change your mapcycle.txt file to have a few of the same map.
Ex.
<!--c1--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>CODE</b> </td></tr><tr><td id='CODE'><!--ec1-->
ns_caged
ns_caged
ns_eclipse
ns_eclipse
ns_hera
ns_hera
ns_lost
ns_lost
ns_nothing
ns_nothing
ns_mineshaft
ns_mineshaft
ns_origin
ns_origin
ns_tanith
ns_tanith
ns_veil
ns_veil
ns_bast
ns_bast
<!--c2--></td></tr></table><span class='postcolor'><!--ec2-->
At the end of every round the map will change to the same thing and wipe all the ents.
Try running another mod to see if it persists.