Memory usage in B227

endarendar Join Date: 2010-07-27 Member: 73256Members, Squad Five Blue
I've noticed memory usage by server.exe is subsantially higher than previous builds. This could be causing problems for some servers if you were pushing your memory limits in previous builds. I have 8GB in the server, and its getting close.
<img src="http://i.imgur.com/kLmq3.png" border="0" class="linked-image" />

Comments

  • ScardyBobScardyBob ScardyBob Join Date: 2009-11-25 Member: 69528Forum Admins, Forum Moderators, NS2 Playtester, Squad Five Blue, Reinforced - Shadow, WC 2013 - Shadow
    Same here, 4 full 20 player servers peaked at about 6887MB total.
  • WalsaWalsa Join Date: 2011-06-28 Member: 106813Members, Reinforced - Shadow
    edited October 2012
    We suffered the same problem yesterday, on a full server, 16 slots. Played 2 games in summit, followed by veil without problems, reaching exos and engame as normal. On the third map, at middle game, the server was lagging badly, and consuming +2gb of ram :(
  • falcfalc Join Date: 2011-03-18 Member: 87128Members
    edited October 2012
    If a single instance consumes more than 2 gigs (especially with 16 slots) you've probably hit a memory leak issue.

    The increased memory usage is quite noticable, though. My first thought was "oO" as my two server instances filled up with 227 players yesterday while I was watching the resources-monitoring.


    edit: I also noticed an increased workload, the tickrate is a bit lower on my servers than it was with previous builds.
  • endarendar Join Date: 2010-07-27 Member: 73256Members, Squad Five Blue
    That tickrate hit sounds eerily similar to the tickrate we suffered when cysts made their first appearance.
  • ScardyBobScardyBob ScardyBob Join Date: 2009-11-25 Member: 69528Forum Admins, Forum Moderators, NS2 Playtester, Squad Five Blue, Reinforced - Shadow, WC 2013 - Shadow
    <!--quoteo(post=2002497:date=Oct 31 2012, 05:16 AM:name=endar)--><div class='quotetop'>QUOTE (endar @ Oct 31 2012, 05:16 AM) <a href="index.php?act=findpost&pid=2002497"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->That tickrate hit sounds eerily similar to the tickrate we suffered when cysts made their first appearance.<!--QuoteEnd--></div><!--QuoteEEnd-->
    New infestation is the likely culprit.
  • endarendar Join Date: 2010-07-27 Member: 73256Members, Squad Five Blue
    edited November 2012
    Had a different issue in B228. Servers are back to normal memory for the most part, but I did notice one of my servers spiked while people were playing, its currently sitting at about 1.8GB used. Checked through the log, nothing of interest. No idea what caused it, first time ive noticed it this patch.

    edit:
    upon shutting the server down, it threw these at me:
    Error: 23190 memory leaks in 'ServerGame' (634016752 bytes)
    Error: 23190 memory leaks in 'Engine' (634016752 bytes)
    Error: 23190 memory leaks in 'Heap' (634016752 bytes)
  • CoTTonCoTTon Join Date: 2005-02-28 Member: 42773Members
    This game has horrible memory leaks...

    I hosted the server - was at 3 Gb ram used - then server filled up etc - went to ~4-5 Gb -

    server stayed on for about 10 hours - then emptied out - was at 6 GB

    i ended task -

    ram still 6 gigs used - had to fullly restart comp to get it back down :(
  • CoTTonCoTTon Join Date: 2005-02-28 Member: 42773Members
    This game has horrible memory leaks...

    I hosted the server - was at 3 Gb ram used - then server filled up etc - went to ~4-5 Gb -

    server stayed on for about 10 hours - then emptied out - was at 6 GB

    i ended task -

    ram still 6 gigs used - had to fullly restart comp to get it back down :(
  • ScardyBobScardyBob ScardyBob Join Date: 2009-11-25 Member: 69528Forum Admins, Forum Moderators, NS2 Playtester, Squad Five Blue, Reinforced - Shadow, WC 2013 - Shadow
    Working on tracking these leaks down. However, if you do encounter a server using quite a bit of RAM (I count >1.5GB as being suspicious), type 'memory' into the server console and post the server log here.
  • CoTTonCoTTon Join Date: 2005-02-28 Member: 42773Members
    edited November 2012
    Actually -

    turns out it was my AVP -

    ran poolmon - found this

    <!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->Tag  Type     Allocs            Frees               Diff            Bytes                 Per Alloc

    Fwpx Nonp            23498940                  0          23498940     4511796480              192        
    CM31 Paged              58312              30734             27578      125919232             4565        
    CM25 Paged               8746                  0              8746       46919680             5364        
    PcNw Nonp               83158              57863             25295       21198720              838        
    MmSt Paged            2854470            2851804              2666       14330256             5375        
    File Nonp            21594003           21562463             31540       10585696              335        
    MFE0 Nonp           437218883          437176669             42214        9798624              232        
    IoNm Paged           15047745           15017321             30424        8242384              270        
    FMfn Paged           30819243           30802085             17158        7572976              441        
    MFEm Nonp               61968              61935                33        7327008           222030        
    MmRe Paged              67349              66400               949        5901792             6218<!--c2--></div><!--ec2-->


    Gotta love POS Mcafee - just found serveral topics on memory leak and still not fixed yet-

    But i will still monitor the server with the usage and see how much it uses.

    Thanks
  • endarendar Join Date: 2010-07-27 Member: 73256Members, Squad Five Blue
    NS2 will crash when it reaches 2GB, so it can really never go above this value (per server).
  • ScardyBobScardyBob ScardyBob Join Date: 2009-11-25 Member: 69528Forum Admins, Forum Moderators, NS2 Playtester, Squad Five Blue, Reinforced - Shadow, WC 2013 - Shadow
    <!--quoteo(post=2011739:date=Nov 5 2012, 02:52 PM:name=endar)--><div class='quotetop'>QUOTE (endar @ Nov 5 2012, 02:52 PM) <a href="index.php?act=findpost&pid=2011739"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->NS2 will crash when it reaches 2GB, so it can really never go above this value (per server).<!--QuoteEnd--></div><!--QuoteEEnd-->
    I don't think this is true anymore, because I've had servers go well above 2GB and still run. From my experience, 4GB is more likely the limited in which the server will crash, as I've seen server instances freeze at around the 3.7-3.8GB range.
  • endarendar Join Date: 2010-07-27 Member: 73256Members, Squad Five Blue
    OK I lied, it can now use more than 2GB of memory. Just checked the servers, and it seems I broke my auto restart script, and have a server which just got past 24 hours alive. CPU Time is at 17 hours, so i think its had players the whole time. Shouldve restarted also if it reaches 0.

    Currently at 2.5GB

    - Engine 2,185MB
    - ServerGame 1,279MB
    - ServerWorld 48MB
    - PathingScene 26MB
    - Collision Scene 7,961kB
    - EntityQueryManager 636kB
    - ObjectTagQueryManager 0
    - Profile 0
    - Locale 68
    - Locale 56
    - EntitiesToDelete 0
    - Entities 8,188
    - LevelCollisionObjects 20
    - Level 17kB
    - MessageNameToIndex 2,460
    - ClassNameToIndex 7,964
    - ClassIndexToMapName 7,140
    - Classes 1,020
    - MapNameToIndex 7,900
    - Strings 784
    - Cinematics 18kB
    - SoundNames 24kB
    - AnimationGraphs 2,836
    - Models 4,480
    - PredictionData 104
    - InstalledMaps 508
    - InstalledModNames 28
    - InstalledMods 84
    - FileHashes 42kB
    - SnapshotWriter 0
    - AsyncTaskList 28
    - Mods 0
    - Connections 124
    - Physics 83MB
    - PhysX 83MB
    - Resources 822MB
    - Material 132
    - AnimationGraph 200kB
    - Model 822MB
    - Script 44MB


    Anything else I should run or do?
  • CoTTonCoTTon Join Date: 2005-02-28 Member: 42773Members
    Once you fix the auto script please let me know how you did it :P


    Been msging on steam haha
  • CoTTonCoTTon Join Date: 2005-02-28 Member: 42773Members
    edited November 2012
    epic 1.6 hour game today on Ns2_tran

    server was very nice.

    <img src="http://img594.imageshack.us/img594/2381/server1z.jpg" border="0" class="linked-image" />
  • gamester_5gamester_5 Join Date: 2008-04-17 Member: 64094Members
    There still is a memory leak out there. I was watching my server stats and then 2 errors popped up on the CMD screen. I looked at memory usage at that same time and it jumped from 5.10 to over 7.3. It crashed about 2 minutes later.

    I noted the error message but failed to get the logs. I will monitor closer and post the logs when I see it happen again.
  • CoTTonCoTTon Join Date: 2005-02-28 Member: 42773Members
    Well i got 2 servers - the other server has been up for about 2 days now and it's been full for the last 48 hours - hasnt crashed and memory has been good.

    my vancouver server just played a map for 2 hours - the entity count according to HLSW went up to 1.8k and it was fine

    <a href="http://ns2servers.devicenull.org/detail.php?id=8406" target="_blank">http://ns2servers.devicenull.org/detail.php?id=8406</a>

    the tool stopped reporting properly after 1k LOL.
Sign In or Register to comment.