SRCDS Steam group


Srcds Memory leak?
#1
I currently run a cssdm server on my linux box:
q6600 2.4 ghz
4gb 800mhz ram
500gb sata II
intel motherboard
100mbit dedicated line
cent os 5.2 kernel 2.6.26

There are a few other servers running on this box all but one are pub's. The one in question is the cssdm server it runs metamod(latest) manimodMM-s sourcemod(latest) eventscripts 2.0 Throughout a 24 hour period the server will run fine usually after a about 26 hours of being up the server has reached about 44-56% mem usage (using top) using ps I gathered it uses about 400-450mb of ram. These stats I'm sure are slightly bloated as I have read about top. My server however begins to lagg and bog down considerably during this time and will get progressively worse until a crash forces it to restart the application. The memory usage is this typical of a cssdm server keep in mind its a iceworld only server so the action is fast there is also MySQL running which does website and stats reporting for the servers as well. The log file shows nothing out of the norm and Glancing through console doesn't show much either. I have run out of ideas all my other servers run a similar plugin setup with no issues (MetaMod manimodMM and ES 2.0). Any help would be really appreciated....
*Windows lack of output*
You: Hey, I want to run this program!
Windows: Ok.. It crashed... Now what? Give up?
You:...wtf...
*linux output helpful?*
You: ./My_program
Linux:...Failed!...oo kitties!
You:...wtf...
Reply
#2
try removing all plugins. if the problem is gone, add the plugins one-by-one.
in any case, generally it is a good idea to restart the servers once per day. 400-450mb does not seem very much, esp. if you have 4GB ram. so the problem might actually be something else, maybe some plugin has some lists which get longer and longer, and it takes too much time to maintain them at a certain point. it could well be some ES-plugin.
http://www.fpsmeter.org
http://wiki.fragaholics.de/index.php/EN:Linux_Optimization_Guide (Linux Kernel HOWTO!)
Do not ask technical questions via PM!
Reply
#3
I have Removed the ES plugin completely considering my other servers which have ES using the exact same plugins as the ICeworld server does I have also tried using Different version of DM without using the cssdm from bailopen but still memory increases the same. Considering that my other servers which very in slot number and tickrate do not increase there memory usage at all I thought it might have something to do with heapsize? I have an 18 slot 100tick cssdm FFA server that runs the same setup as iceworld only FFA with cal rotation maps. The memory usage on it stays around 10-15% or roughly 100-200mb even when it has 18 users. The 32 slot 66tick server I have runs more EX plugins but no sourcemod and still the same metamod and maniMM it even when full only uses 15% max. Does anyone know what the default heapsize is if its not designated in the command line parameters?
*Windows lack of output*
You: Hey, I want to run this program!
Windows: Ok.. It crashed... Now what? Give up?
You:...wtf...
*linux output helpful?*
You: ./My_program
Linux:...Failed!...oo kitties!
You:...wtf...
Reply
#4
A good number of Sourcemod plugins have some nasty memory leaks. If you look them up on alliedmodders, its normally quite well documented.
Reply
#5
Yea I checked out all my plugins. The inconsistency comes with this:
free for all deathmatch 18 slots- plugins: cssdm, metamod current version, mani beta S:MM, sourcemod, ES
iceworld Deathmatch 20 slots- plugins: cssdm, metamod current version, mani beta S:MM, sourcemod, ES

notice the same plugins but no memory problems with that server. in fact right now that server is showing only 4.5 %mem usage. the iceworld is currently showing 50% after 2 days without a reboot.

So if it where the plugins then why doesn't my other deathmatch server experience the same issue?
*Windows lack of output*
You: Hey, I want to run this program!
Windows: Ok.. It crashed... Now what? Give up?
You:...wtf...
*linux output helpful?*
You: ./My_program
Linux:...Failed!...oo kitties!
You:...wtf...
Reply
#6
I guess you are just missing some difference. Try making an exact copy of the working server (e.g. using rsync -av) and only change port/ip and map pool.
http://www.fpsmeter.org
http://wiki.fragaholics.de/index.php/EN:Linux_Optimization_Guide (Linux Kernel HOWTO!)
Do not ask technical questions via PM!
Reply
#7
I will try that and see what happens.
*Windows lack of output*
You: Hey, I want to run this program!
Windows: Ok.. It crashed... Now what? Give up?
You:...wtf...
*linux output helpful?*
You: ./My_program
Linux:...Failed!...oo kitties!
You:...wtf...
Reply
#8
add -heapsize to command startup and add a number after it (in kb i think or bytes) also run mani admin through the vdf file (vsp) and see how it runs
[Image: b_350x20_C002748-004880-FFFFFF-000000.png]
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)