Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^2: Performance issues

by spmlingam (Scribe)
on Nov 29, 2008 at 05:40 UTC ( [id://726733]=note: print w/replies, xml ) Need Help??


in reply to Re: Performance issues
in thread Performance issues

You can use this idea:

First convert your bash script into Perl script, keep the process id of this script in to a file.

Write another perl script with modules Proc::ProcessTable::Process & Sys::Info::Device::CPU

Here you can get the CPU consumption of first script using the process id of the above script.

You can issue stop and continue from this script to the first script based on the CPU load

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://726733]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (5)
As of 2024-04-20 00:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found