PDA

View Full Version : SERIOUS memory leak


FireMan
07-07-2004, 07:22 PM
Hi guys!

Take a look @ this:


PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME CPU COMMAND
22032 hldsuser 15 0 291M 177M 9460 R 29.0 20.0 880:31 1 hlds_i686
295 hldsuser 15 0 700M 221M 9460 S 22.3 25.0 2566m 0 hlds_i686
852 hldsuser 15 0 116M 109M 9460 S 19.8 12.4 56:38 1 hlds_i686
506 hldsuser 15 0 589M 167M 9460 S 13.2 18.9 1378m 0 hlds_i686

Any server goes up using about 60mb of memory.
The memory consumption keeps increasing hour after hour. A few days and any of my servers will be consuming more than 1/2 gig, and go on until crash (2 days max.).

Of corse, STEAM and the mod (CS), like my system, are full up to date.

This is ridiculous...

Regards,
FireMan.

counternube
07-07-2004, 07:59 PM
most admins setup a job to restart all the game instances at night. I have noticed things are a little worse now than they used to be.

GameLine.ca
07-07-2004, 10:38 PM
ECC ram anyone? Back when HLTV used to eat up 2gb of ddr pc3200 ram if you let it run for a week we switched over to ECC ram. Its a life saver. Im sure the ram is a few nanoseconds slower but hasent been a problem yet. Make sure your Motherboard supports ECC ram oh and prepare to dig deep in to your pockets for 512mb + chips.


Lithium // GameLine.ca

Morpheus2515
07-08-2004, 05:04 AM
Originally posted by counternube
most admins setup a job to restart all the game instances at night. I have noticed things are a little worse now than they used to be.

Ey wondering how to build that job?

Im a really n00b at linux, but wanna l0rn it :-)

Cheers

Morpheus

nightwishzz
07-08-2004, 11:52 AM
crontabs

swordzkof
07-08-2004, 01:01 PM
killall -9 hlds_i686

JoMama
07-09-2004, 03:03 PM
yep, hlds sux like a 18 year old girl with a self esteem problem

counternube
07-10-2004, 03:53 AM
morpheus-
search for my recent posts. I posted my restart script. Once you have a script to restart for each server just make a new file in /etc/cron.d something like this:

# restart cs server 1 at 3:50AM every day
50 03 * * * csadmin1 /usr/steam/hlds_l/restart_cs1
# restart cs server 2 at 4:00AM every day
00 04 * * * csadmin1 /usr/steam/hlds_l/restart_cs2
# restart cs server 3 at 4:10AM every day
10 04 * * * csadmin1 /usr/steam/hlds_l/restart_cs3

There are other ways to do it.

Morpheus2515
07-12-2004, 03:08 AM
Ok thx i will go look :)

Cheers

Morpheus