[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Limiting daemons' RSS



I have a server with very little memory. It's primarily an application
server, but apache and exim are running for very light use.

I'd like to ensure that apache and exim never starve other programs
for memory by limiting their resident set sizes to a total of 6 and 4
megs apiece. I'm fine with these running slowly.

How can I accomplish this?


/etc/security/limits.conf doesn't apply for daemons so far as I can
tell, as these aren't ever run as logon scripts.

bash's inbuilt ulimit command doesn't seem to include an RSS option,
so I'm not sure I can run that before each daemon to force the
resident set size.

Attachment: signature.asc
Description: Digital signature


Reply to: