SRCDS Steam group


srcds out of memory error
#1
I guess this is a shot in the dark. When I run srcds as root (I know I shouldn't but this was for testing purposes) everything is fine. When I run it as the user I installed it under it gives me...

CMDLCache:: Out of memoryCMDLCache:: Out of memory

Is there some sort of generic memory limitation on linux users? I'm using CentOS v5.
Reply
#2
i have my user(and group) number 500, and game-run user(and group) 501. i know higher or lower groups have special permissions.
default config should not trick u, but otherway check
/etc/security/limits.conf
Reply
#3
navarra Wrote:i have my user(and group) number 500, and game-run user(and group) 501. i know higher or lower groups have special permissions.
default config should not trick u, but otherway check
/etc/security/limits.conf

You are dead right about the ulimits in limits.conf. However, I have cpanel and limits.conf won't work. Instead I have to edit files...

/etc/profile
/etc/bashrc
/etc/profile.d/limits.sh

Code:
if [ "$LIMITUSER" == "root" ]; then ulimit -n 4096 -u 14335 -m unlimited -d unlimited -s 8192 -c 1000000 -v unlimited 2>/dev/null elif [ "$LIMITUSER" == "someRootLikeUser" ]; then ulimit -n 4096 -u 14335 -m unlimited -d unlimited -s 8192 -c 1000000 -v unlimited 2>/dev/null else ulimit -n 100 -u 20 -m 200000 -d 200000 -s 8192 -c 200000 -v 200000 2>/dev/null fi

Granted, you shouldn't be running web servers on your game server machine unless you have a powerful enough machine to do so.
Reply
#4
I get this same error but as root. How much memory does the server software need?
Reply
#5
blissend Wrote:
Code:
else ulimit -n 100 -u 20 -m 200000 -d 200000 -s 8192 -c 200000 -v 200000 2>/dev/null fi

Granted, you shouldn't be running web servers on your game server machine unless you have a powerful enough machine to do so.

I think the "else" section matches the user you've got.

Here are the rules I've got on my user running CS:S server.

Code:
ulimit -a core file size (blocks, -c) 0 data seg size (kbytes, -d) unlimited max nice (-e) 0 file size (blocks, -f) unlimited pending signals (-i) unlimited max locked memory (kbytes, -l) unlimited max memory size (kbytes, -m) unlimited open files (-n) 1024 pipe size (512 bytes, -p) 8 POSIX message queues (bytes, -q) unlimited max rt priority (-r) 0 stack size (kbytes, -s) 8192 cpu time (seconds, -t) unlimited max user processes (-u) unlimited virtual memory (kbytes, -v) unlimited file locks (-x) unlimited

My guess is "-v unlimited" solves your problem, but making all the other stuff match my setup should make it OK.

Running web server on a game server doesn't matter.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)