Subject: Re: managing process memory limits on the fly?
To: Carl Brewer <carl@bl.echidna.id.au>
From: Simon Burge <simonb@NetBSD.org>
List: netbsd-users
Date: 02/22/2007 14:14:24
Carl Brewer wrote:
> I had a look, zope does the exec/change user thing internally, and
> I really don't want to go mucking in its bowels. So I have
> set a ulimit in the zope process control script as follows (for the
> archive) :
>
> /home/zope/server/bin/zopectl
> #! /bin/sh
>
> # let zope use 356MB
> ulimit -d 393216
In the vein of "there's many ways to skin a cat", if you're
using a normal /etc/rc.d script to control zope, you could add
a "/etc/rc.conf.d/zope" that just contains
# let zope use 356MB
ulimit -d 393216
and that would changes limits for just things started by
/etc/rc.d/zope.
Cheers,
Simon.