Michael Bevilacqua on 25 Sep 2006 17:56:47 -0000


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

[PLUG] Redhat EL3 and ulimit


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?


-- Michael D. Bevilacqua michael@bevilacqua.us ___________________________________________________________________________ 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