Raised This Month: $51 Target: $400
 12% 

[CS:GO] Finding the source of memory leaks?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
pcmaster
AlliedModders Donor
Join Date: Sep 2009
Old 04-30-2015 , 11:48   [CS:GO] Finding the source of memory leaks?
Reply With Quote #1

Hello,

I am hosting a pretty popular CS:GO server and have noticed that every 1-3 days (varies), the server crashes.
After a look into the stack traces it turned out that it's unable to allocate any more memory (malloc returns NULL) and therefore exits.
This can be confirmed by looking into top before the server crashes - memory usage ~3GB (maximum for 32-bit apps).

Now, I don't know what plugin/extension could be causing this - is there a way to find this out?
I know that VProf exists, but afaik it only measures CPU stats?

Any help would be appreciated.
__________________
Stopped hosting servers as of November 2018, no longer active around here.
pcmaster is offline
Spirit_12
Veteran Member
Join Date: Dec 2012
Location: Toronto, CA
Old 04-30-2015 , 11:56   Re: [CS:GO] Finding the source of memory leaks?
Reply With Quote #2

A good start would be trying to narrow down stuff. Maybe try removing some plugins or extensions?

Also, without knowing what plugins you are running, it's really hard to tell what could be causing the leak.
__________________
Spirit_12 is offline
VPPGamingNetwork.com
BANNED
Join Date: Apr 2015
Old 05-01-2015 , 02:02   Re: [CS:GO] Finding the source of memory leaks?
Reply With Quote #3

is it crashing after tuesday patch?
VPPGamingNetwork.com is offline
Franc1sco
Veteran Member
Join Date: Oct 2010
Location: Spain (Madrid)
Old 05-01-2015 , 04:56   Re: [CS:GO] Finding the source of memory leaks?
Reply With Quote #4

If you post the list of plugins that you use in your server, we can help you better in found the cause of crashes.

Also you can use this for found the cause -> https://forums.alliedmods.net/showthread.php?t=146644

Another option is restart your server one time in the day for keep it fresh. You can do it with plugins like this -> https://forums.alliedmods.net/showthread.php?p=907737
__________________
Veteran Coder -> Activity channel
Coding on CS2 and taking paid and free jobs.

Contact: Steam, Telegram or discord ( franug ).

You like my work? +Rep in my steam profile comments or donate.


Last edited by Franc1sco; 05-01-2015 at 04:58.
Franc1sco is offline
Send a message via MSN to Franc1sco
pcmaster
AlliedModders Donor
Join Date: Sep 2009
Old 05-01-2015 , 08:32   Re: [CS:GO] Finding the source of memory leaks?
Reply With Quote #5

I am actually using Accelerator already, I have found the source of the crash with it.

Anyways, here the usual plugins/exts/version stuff.

sm plugins list
Spoiler


sm exts list
Spoiler


meta list
Spoiler


sm version
Spoiler


I know that my SM version isn't exactly the "freshest" anymore, but I have the same version on my TF2 servers and they run 21+ days (and with even more connections) without any problems.
__________________
Stopped hosting servers as of November 2018, no longer active around here.
pcmaster is offline
Franc1sco
Veteran Member
Join Date: Oct 2010
Location: Spain (Madrid)
Old 05-01-2015 , 23:55   Re: [CS:GO] Finding the source of memory leaks?
Reply With Quote #6

I see that you use some private plugins. Try to disable these plugins and only use public plugins that is know that works well. I think that maybe is possible that the first plugin in your list does not close the menu handles and this cause a memory leak. Also check your log errors for check if some plugins have errors.


Surely the solution is go disabling plugins to find the cause
__________________
Veteran Coder -> Activity channel
Coding on CS2 and taking paid and free jobs.

Contact: Steam, Telegram or discord ( franug ).

You like my work? +Rep in my steam profile comments or donate.


Last edited by Franc1sco; 05-01-2015 at 23:55.
Franc1sco is offline
Send a message via MSN to Franc1sco
pcmaster
AlliedModders Donor
Join Date: Sep 2009
Old 05-03-2015 , 08:24   Re: [CS:GO] Finding the source of memory leaks?
Reply With Quote #7

I have disabled both the knife menu and GV (which produced errors), but to no avail.
Are there really no ways to somehow list the memory usage of each plugin with some sort of SM command/extension?
__________________
Stopped hosting servers as of November 2018, no longer active around here.
pcmaster is offline
Franc1sco
Veteran Member
Join Date: Oct 2010
Location: Spain (Madrid)
Old 05-03-2015 , 20:03   Re: [CS:GO] Finding the source of memory leaks?
Reply With Quote #8

Quote:
Originally Posted by pcmaster View Post
Are there really no ways to somehow list the memory usage of each plugin with some sort of SM command/extension?
Yees. Use sm_dump_handles

https://forums.alliedmods.net/showpo...42&postcount=6 and https://forums.alliedmods.net/showpo...1&postcount=11
__________________
Veteran Coder -> Activity channel
Coding on CS2 and taking paid and free jobs.

Contact: Steam, Telegram or discord ( franug ).

You like my work? +Rep in my steam profile comments or donate.

Franc1sco is offline
Send a message via MSN to Franc1sco
pcmaster
AlliedModders Donor
Join Date: Sep 2009
Old 05-04-2015 , 13:24   Re: [CS:GO] Finding the source of memory leaks?
Reply With Quote #9

Interesting, only ~4.7MB of memory in use by plugins .. seems to be an SM/SRCDS issue itself.
__________________
Stopped hosting servers as of November 2018, no longer active around here.
pcmaster is offline
oalaro
Member
Join Date: Aug 2014
Old 05-06-2015 , 13:21   Re: [CS:GO] Finding the source of memory leaks?
Reply With Quote #10

I have 0 plugins on my server, that has memory leaks. But what it has enabled is GOTV. I run it at 128tick. Only servers with GOTV enabled, and record GOTV demos have massive leaks. Like after one game memory usage is from 1,5GB to 3GB

Last edited by oalaro; 05-06-2015 at 13:21.
oalaro is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:08.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode