|
|||||||||||
|
"ulimit -v" for a daemon and all it's child threads and libraries?
From: Christian Hammers <ch(at)debian.org>
Date: Tue Nov 27 2007 - 11:33:32 EST
I'm looking for a way to limit the memory of a detached daemon and all of its child threads/processes including the memory usage of all linked libraries to avoid server unreachability if all memory gets eaten up. E.g. an "ulimit -v 5000000" in /etc/apache2/envvars, which is sourced in /usr/sbin/apache2ctl, seems to define the limit for each thread separately. (I can start two threads with PHP scripts and both die when reaching the specified memory amount) In my example I cannot use Apaches "RLimitMem" because it does not limit programs executed with PHPs system() nor PHPs "memory_limit" because it seems not to limit the memory that is used within e.g. libmysqlclient.so. pam_limits seems unusable, too, as it only works for login shells. Further ideas? bye, -christian- -- To UNSUBSCRIBE, email to debian-isp-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.orgReceived on Tue Nov 27 15:17:56 2007 This archive was generated by hypermail 2.1.8 : Wed Mar 19 2008 - 06:51:29 EDT |
||||||||||
|
|||||||||||