PDA

View Full Version : Nice


PoleCat
25th June 2007, 16:10
Heya

This is more a general question about apache and virtual directives. Though an answer in the context of ISPC will be beneficial.

I have a client that is using more CPU resources than I would like them to use. Mainly due to ugly CGI code that sucks up resources. Is there a way to limit/renice this specific _site_ to a lower priority without renicing the whole apache process?

till
26th June 2007, 09:44
What kind of CGI scripts are you talking about? perl scripts or php scripts that run currently through mod_php or suphp?

PoleCat
26th June 2007, 10:32
perl scripts.

till
27th June 2007, 10:06
The only idea that I have if you try to replace the perl interpreter with a bash script that runs perl via the nice command.