Memory Leak

CheesyPetezaCheesyPeteza Join Date: 2002-11-24 Member: 9784Members, NS1 Playtester, Constellation
Is anyone else experiencing a memory leak with NS3b3? Its not actually NS or HL, its either metamod/phpUA/LogMod/AMXMod. I know as I removed metamod and the leak vanished.

Our clan runs 4 servers 3 of which (CS1.6,CS1.6, NS3 combat) all have tiny memory leaks. Like after a week of being up they'll be using 4 times the memory. But the NS3 Classic server is using double the memory in 30 minutes! After one day it uses 3Gb of memory. Thankfully we have way over the top amounts of memory (6Gb).

Anyway I'm going to spend the day removing plugins and trying to find which one is the main culprit. If anyone else is experiencing them and can help me narrow down the problem, please speak up. <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html//emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif' /><!--endemo-->

Comments

  • VadakillVadakill The Almighty BSO Join Date: 2002-04-02 Member: 373Members, NS1 Playtester
    I have noticed memory leak like behavior in the past, I just restart my servers every day. Although I haven't put as much effort into finding the culpret as you are putting into it, I can't help but wonder if the memory "leak" we both see is the HL server just precaching resources from the maps it rotates in order to load them faster next time. Is it supposed to do that? Am I completely off base? I don't know really, there are people a lot smarter then I on the official HLDS admin mailing list working on this problem.
  • CheesyPetezaCheesyPeteza Join Date: 2002-11-24 Member: 9784Members, NS1 Playtester, Constellation
    I found the problem, it was a specific function from an NS module one of my plugins was using. This isn't the one people talk about on the hlds_linux mailing list. I think that one is consideribly harder to find seeing as the memory increases so slowly. With this leak the memory was going up 100k/s so it was kind of obvious when the problem was still there or not. <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html//emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif' /><!--endemo-->
  • VadakillVadakill The Almighty BSO Join Date: 2002-04-02 Member: 373Members, NS1 Playtester
    Can you elaborate what the solution to the problem was, I don't want to use the module in my system if it will cause the problem you are seeing.
  • sawcesawce Join Date: 2002-12-14 Member: 10787Members
    edited April 2004
    It's a problem with the ns2amx module which I overlooked.

    If you use the module and your plugins make use of the "register_msgedit()" command, then you will notice a memory leak. If it's a very very common message which it's catching, then it will be a faster memory leak.

    Very few scripts make use of register_msgedit, however. I'm also working on fixing this up now.

    <b>Edit:</b> However, if no plugins make use of the register_msgedit, then you won't be getting a memory leak from the module.
Sign In or Register to comment.