how much scripts execution time limit ?

I'm setting cpu time limits for any scripts running on apahe using
"RlimitCPU" for perl and "php_value max_execution_time" for php . The default value for perl is not set and for PHP is 30 sec.

I currently set these value to 1 sec to prevent nasty user from eating up valuable resources like sending spam from their own scripts or running poor written script. All users are running their scripts fine in this 1 sec limit because most scripts will not take longer than 0.1-1 sec, but I'm afraid that some clients may sometimes run scripts that take longer time like mailing to their users which I need to support them also. Anybody please suggest how much max CPU time should I really limit ?

if I set this value too HIGH , some users may hog up server's resources anytime. But If I set this value too LOW some clients who want to do specific stuff on webserver may got stuck. how much scripts execution time limit ?

 

 

 

 

Top