On Thu, 13 Sep 2012 22:56:18 -0700 (PDT) jmrhide-p...@yahoo.com wrote: > Where I think we need to focus is, assuming the script runs to its > end every time, why doesn't it release its hold on the server > resources? My hosting service runs Apache version 2.2.22. I can't > tell what version of Perl they run. I had been relying on the idea > that a mannerly Perl interpreter would automatically release > resources when it runs out of statements to execute. Is it possible > that I need to include some sort of END declaration?
No - the interpreter will exit when it's done executing the script. If it isn't exiting, that would suggest it's still executing it - likely stuck within one of those while (1) loops. If your host wanted to be particularly helpful, when they see a process stuck using up CPU time, they could attach with strace and see what syscalls it's making at the time, as that *might* give some kind of clue. Alternatively, you could sprinkle debugging log messages throughout, hoping that will let you see by looking at the logs what's going on. Or, you could see if you can install and use Runops::Recorder which can trace and record the execution flow of your program. -- David Precious ("bigpresh") <dav...@preshweb.co.uk> http://www.preshweb.co.uk/ www.preshweb.co.uk/twitter www.preshweb.co.uk/linkedin www.preshweb.co.uk/facebook www.preshweb.co.uk/cpan www.preshweb.co.uk/github -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/