Re: Questions regarding limits of processes launchedby system, exec, passthru ...

From: Date: Thu, 25 Sep 2008 12:40:14 +0000
Subject: Re: Questions regarding limits of processes launchedby system, exec, passthru ...
References: 1 2  Groups: php.install 
Request: Send a blank email to php-install+get-19429@lists.php.net to get a copy of this message
Hi Keith,
What OS are you running? Linux (gentoo).
If it's Unix/Linux then you might be able to control these settings with ulimit. Please see the manual page for ulimit for details. man ulimit -> set or report file size limit
How would this help?
info ulimit I think this two resources are the relevant
`RLIMIT_CPU' The maximum amount of CPU time the process can use. If it runs for longer than this, it gets a signal: `SIGXCPU'. The value is measured in seconds. *Note Operation Error Signals::. This will be used by apache (RLimitCPU) in srclib/apr/threadproc/unix/proc.c
`RLIMIT_AS' The maximum size of total memory that this process should get. If the process tries to allocate more memory beyond this amount with, for example, brk', malloc', mmap' or sbrk', the allocation function fails. This will be used by apache (RLimitMEM) in srclib/apr/threadproc/unix/proc.c
As I understand you, the only possibility to solve my problem is to patch the php source. If I search in the php code after RLIMIT_ the only occurences are in ext/posix/posix.c The RLIMIT_* are used there by posix_getrlimit (Rem: there's no posix_setrlimit). Or is there another possibility? Regards valli

« previous php.install (#19429) next »