Re: Questions regarding limits of processes launched by system, exec, passthru ...
| From: | Daniel Brown | Date: | Thu, 25 Sep 2008 14:58:11 +0000 |
| Subject: | Re: Questions regarding limits of processes launched by system, exec, passthru ... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-280917@lists.php.net to get a copy of this message | ||
On Thu, Sep 25, 2008 at 4:28 AM, Valentin Schmid - ICSurselva AG
<valli@icsurselva.ch> wrote:
> Hello all,
>
> Is there a way to limit the memory consumption and / or the CPU
> consumption of processes launched by the php functions system,
> exec, passthru, proc_open and shell_exec?
Since you're working on a *NIX system, check out PHP's pcntl_*
functions[1] and the *NIX
nice function[2].
1: http://www.php.net/manual/en/ref.pcntl.php
2: http://www.manpagez.com/man/1/nice/
--
</Daniel P. Brown>
More full-root dedicated server packages:
Intel 2.4GHz/60GB/512MB/2TB $49.99/mo.
Intel 3.06GHz/80GB/1GB/2TB $59.99/mo.
Intel 2.4GHz/320/GB/1GB/3TB $74.99/mo.
Dedicated servers, VPS, and hosting from $2.50/mo.