[ LUGOS ] nice-renice na apache servisu
Stojan Rancic
stojan na bofh.cx
Sre Jan 10 13:33:10 CET 2001
On Tue, 9 Jan 2001 14:25:38 +0100 (CET), Rok Krulec wrote:
>Dear friends,
>
>Rad bi, da bi moj Apache pojedel samo 90% vseh resourceov racunalnika oz.
>se hujse, ko je racunalnik na 91%, se zacne apache tako dolgo pobijat, da
>pride sistem spet na 90%.
Zdajle sem malo brskal po Apache.org in nasel naslednje :
RLimitCPU directive
Syntax: RLimitCPU number|max [number|max]
Default: Unset; uses operating system defaults
Context: server config, virtual host
Status: core
Compatibility: RLimitCPU is only available in Apache 1.2 and later
Takes 1 or 2 parameters. The first parameter sets the soft resource
limit for all processes and the second parameter sets the maximum
resource limit.
Either parameter can be a number, or max to indicate to the server that
the limit should be set to the maximum allowed by the operating system
configuration. Raising the maximum resource limit requires that the
server is running as root, or in the initial startup phase.
This applies to processes forked off from Apache children servicing
requests, not the Apache children themselves. This includes CGI scripts
and SSI
exec commands, but not any processes forked off from the Apache parent
such as piped logs.
CPU resource limits are expressed in seconds per process.
See also RLimitMEM or RLimitNPROC.
URL : http://httpd.apache.org/docs/mod/core.html#rlimitcpu
Dodatne informacije o seznamu Starilist