Lee Marzke on 25 Sep 2006 19:53:51 -0000


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

Re: [PLUG] Redhat EL3 and ulimit


Michael Bevilacqua wrote:
Zope on my RHEL3 server likes to use as much memory as possible. I
would like to limit the amount of memory it uses to 32M. So within
/etc/security/limits.conf I added the following:

zope            hard    rss             32000
@zope           hard    rss             32000

and tested it:

[root@server1 root]# su -l zope
-bash-2.05b$ ulimit -a | grep "max memory"
max memory size       (kbytes, -m) 32000

But then according to top(1) some time later, it shows that it went
over the limit I set:

[root@server1 root]# top -b -n 1 | grep zope
2917 zope 15 0 62352 58M 2344 S 0.0 3.9 0:58 0 python2.3
2928 zope 15 0 31712 30M 2148 S 0.0 2.0 0:14 0 python2.3



Did I miss something when setting up ulimit's hard max memory limit?



Not sure you can do much with Zope and 32M. I have 1 medium sized site, and 2 or 3 very small ones under Zope and it's using 181M resident ( I have both Zeo and Zope running as well as Cache-Fu which speeds up page requests by 20x or so. )

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
2599 zope 16 0 232m 181m 8352 S 0.0 38.3 4:50.51 python2.3


You can always run ZEO on your main server,  and use a separate disk-less or
minimally installed machine for serving Zope that has a fast CPU and RAM to
move the RAM requirement elsewhere.   I'm running ZEO and Zope on the
same box for testing,  and possible expansion to separate boxes later.

Lee Marzke






begin:vcard
fn:Lee Marzke
n:Marzke;Lee
email;internet:lee@marzke.net
tel;work:800 393 5217
tel;home:610 454 9354
version:2.1
end:vcard

___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug