Limiting CPU on some processes on web server
opendaddy at hushmail.com
opendaddy at hushmail.com
Wed Mar 11 15:00:06 UTC 2015
On 11. mars 2015 at 2:03 PM, "Polytropon" <freebsd at edvax.de> wrote:
>
>You can try that "quick & dirty" modification and check if
>the cputime program _works_ for you.
>
Awesome - no more warnings! Unfortunately though, the processes that run inside it doesn't seem to get more than 2% CPU.
As expected, this works just fine on Linux.
>> Is there a CPU time limit equivalent to say 20% or have I
>totally misunderstood?
>
>I'd say it's hard to calculate or estimate absolute CPU time
>from relative resource consumption (load). You will probably
>have to test this with the real application you want to limit.
Basically I run this web app that requires ImageMagick to process photos, but whenever ImageMagick runs, it consumes up to 100% CPU, rendering the actual web app inaccessible (gateway timeout).
Thanks!
O.D.
More information about the freebsd-questions
mailing list