SRCDS Steam group

Huge Memory Problem
Hey there!

First of all my system specifications:

Im running a Virtual Machine (RootDS) with Debian GNU/Linux 4.0
CPU 2 GHZ / RAM 1 GB / Disk 70GB
Kernel: 2.6.9-023stab046.2-smp
gcc (GCC) 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)
ldd (GNU libc) 2.3.6

Hosting a CS:S 16 Slot Server Tick 100
Eventscripts, Metamod, Sourcemod, zBlock, HLStatsX

First loaded under 'top' the amount of RAM used by srcds is 250m
Once people connecting it starts raising up to 700m (where it crashes)
The cache seems always to be full, no matter if theres a mapchange or even people playing...

The Reason why it crashes is my Virtual Machine is limited with 1GB Ram..
When a Process using to much RAM it will get killed (out of memory)
Mysql+Apache using 200m and other things around 100m..
So once srcds is up to 700m it has no more free RAm to execute and crashes..

So why does srcds use so many RAM (even if its cached) and how can i reduce that.. My srcds is allowed to use about 500-600m but not more..

Any Ideas plz ?!
try running it w/o any plugins. maybe one of your plugins has a memory leak... my servers also have 200~300 MB if empty, but memory usage does not really go up when they fill.

a note on the cache: on linux, the cache fills always as much memory as available. this is completely normal and should not bother you. when an application needs memory, linux will shrink the cache.

a second note: virtual servers are really not the ideal environment for running a game server... (Linux Kernel HOWTO!)
Do not ask technical questions via PM!
hey, thx for ya replie!

i also thought about a memory leak, but how could i find it ?!
i tried debugging with valgrind, but it seems not to output any leaks...
any idea how i could localize the leak better ?! (others then 1by1 disable scripts)

and yea my virtual box may not be the best enviroment, but.. it must be possible Big Grin

maybe any other ideas about common problems with VRS/RDS and srcds ?!
like he said, pull out the mods one by one.
allready found the leaker Smile

it was a sourcemod extension called Sockets..
for anyone having the same problem, here is a temp-fix ->

yeah sockets is a little buggy

Forum Jump:

Users browsing this thread: 1 Guest(s)