Ns 2.0 Memory Leak?

GoleXGoleX 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?

Comments

  • coldguycoldguy Join Date: 2003-08-03 Member: 18847Members
    Pings used to go up in the early versions during the course of a game because of all the structures being built during the game. I know they have optimized the server code, but the load will still increase during games due to this. I also heard of a problem where entities weren't completely purged after each game, which made the aforementioned problem get progressively worse, until a crash or reboot. I thought they had fixed that.
  • Rotten_FleshRotten_Flesh Join Date: 2002-11-18 Member: 9203Members
    Change your mp_timelimit cvar to something under 30 min. I have it set at 20 minutes, i find that after one round pings are really high and the server starts to spike.

    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.
  • HKHereticHKHeretic Join Date: 2003-02-23 Member: 13859Members
    I haven't run into this problem. The 1.x used to have serious issues, but in 2.0 I haven't run into any. I used to restart 1.x every night. 2.0 on my server logged 1500 minutes of CPU time on a p4-2.66GHz with memory usage stabilizing around 104MB virtual, 86MB resident before we switched down to HLDS 3.1.1.0--which, btw, now uses 20-40% less CPU time.
  • GoleXGoleX Join Date: 2002-11-07 Member: 7681Members
    edited August 2003
    I do know about the time limit etc, I have my timelimit set to 15 minutes like I have had since 1.01. This is completely new for 2.0, and persists over map changes (during the course of the memory rise they went through 4 different maps).
  • Rotten_FleshRotten_Flesh Join Date: 2002-11-18 Member: 9203Members
    Is another process running that could screw this up?

    Try running another mod to see if it persists.
  • Max1Max1 Join Date: 2002-11-08 Member: 7730Members
    It seems like I have the same problem on my server. It's not just through a map that the pings increase, they've steadily increased since the server has been started. I've been thinking the same thing, Golex, setting up something to restart the server every day.
  • Rotten_FleshRotten_Flesh Join Date: 2002-11-18 Member: 9203Members
    edited August 2003
    I remember of a problem like this a few hlds versions back. Memory leaks; alot of people complained to valve, and valve said they would fix it in the next patch; but never did . . . <!--emo&???--><img src='http://www.unknownworlds.com/forums/html/emoticons/confused.gif' border='0' style='vertical-align:middle' alt='confused.gif'><!--endemo-->
  • GoleXGoleX Join Date: 2002-11-07 Member: 7681Members
    Yeah if you look at my MRTG graphs again, you can see I had to restart it again this morning after it's memory usage peaked to new highs, even when the server was completely empty.
  • cgountaniscgountanis Join Date: 2003-08-10 Member: 19314Members, Reinforced - Gold
Sign In or Register to comment.