PipTigger has asked for the wisdom of the Perl Monks concerning the following question:
Does anymonk know of a module or snippit or system command which can be used to best determine the load on a Linux Apache server through Perl? Most valuable would probably be current CPU load as a percentage of capacity and current memory usage as a percentage of available. I'm looking to have particularly intensive CGI scripts determine whether they should even try to execute according to the available resources. Any advice would be highly appreciated. TTFN.