Perl. Limit Resources Used By An Script

liunx

Guest
Exist some Perl instructions (or Module) to include into the script to limit the use of resources (memory, cpu)? or active a warning when the script use a lot of resources?<br /><br />This is for avoid high load on server.<br /><br />Alex<!--content-->
Is <a href="http://www.perldoc.com/perl5.6/lib/Apache/Resource.html" target="_blank">this</a> the information you are looking for?<!--content-->
Yes. Apache::Resource can be used in TCH?<br /><br />Thanks,<br /><br />Alex<br /><br /><!--QuoteBegin-TCH-Bruce+Aug 25 2005, 10:02 AM--><div class='quotetop'>QUOTE(TCH-Bruce @ Aug 25 2005, 10:02 AM)</div><div class='quotemain'><!--QuoteEBegin-->Is <a href="http://www.perldoc.com/perl5.6/lib/Apache/Resource.html" target="_blank">this</a> the information you are looking for?<br /><div align="right"><a href="http://www.totalchoicehosting.com/forums/index.php?act=findpost&pid=145996"><img src='http://www.totalchoicehosting.com/forums/style_images/1/post_snapback.gif' alt='*' border='0' /></a></div><!--QuoteEnd--></div><!--QuoteEEnd--><!--content-->
I don't believe you would be able to use Apache::Resource on TCH servers. The directives to implement it have to be placed in the server config file (httpd.conf), which users don't have access to.<br /><br />I'm not well-versed enough in Perl to know if there is a suitable alternative that users could implement within their own accounts. My suggestions would be:<br /><br />1) If you're writing your own script, write it and test it so that it does not use excessive resources.<br /><br />2) If you're using someone else's script and excessive resource usage is an issue with that script, I'd recommend looking for another script.<!--content-->
 
Back
Top