[cod] Limiting Server RAM Usage
admin at teamhost.co.uk
admin at teamhost.co.uk
Wed Dec 12 22:40:06 EST 2007
Brandon,
Thank you for your reply. I will try that however I'm not sure if this will
affect the cod4 process if it needs ram.
I may cause more problems than fix.
Dan
-----Original Message-----
From: Brandon Ewing [mailto:nicotine at warningg.com]
Sent: 13 December 2007 03:30
To: cod at icculus.org
Subject: Re: [cod] Limiting Server RAM Usage
On Thu, Dec 13, 2007 at 01:13:02AM -0000, admin at teamhost.co.uk wrote:
> Hi,
>
> Is there anyway to limit the amount of ram cod4 Linux uses? For me its
> around 200meg+ per server process
>
> Dan
You can use ulimit prior to starting the server to limit the amount of
memory available to yourself.
ulimit -m 204800
will set a limit of 200MB of physical memory for the current shell and any
processes it launches.
-m == physical memory
-v == virtual memory (swap)
-s == stack (physical and virtual, I believe)
The actual limit is set in kilobytes.
--
Brandon Ewing (nicotine at warningg.com)
More information about the Cod
mailing list