Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Perl using 100% CPU

by sundialsvc4 (Abbot)
on Oct 14, 2010 at 01:58 UTC ( [id://865187]=note: print w/replies, xml ) Need Help??


in reply to Perl using 100% CPU

If your program has something for the CPU to do, then it is absolutely delightful to find that the CPU is “100% busy” and that most of the available time is being given to your program.

If your program thinks that it is “idle,” then of course you have a problem.   And, whatever that problem is, it is undoubtedly going to rest in your program.   (Which probably isn’t responding to any inputs right now ...)

If the problem you are seeing is “recent,” ask yourself, “what happened ‘recently?’ ”   One thing that can suck up a lot of CPU time is an “exception-handling loop,” in which something causes an exception, and maybe that same thing causes another exception to occur in the exception handling logic, and (for whatever reason...) the fail-safes that are supposed to prevent that are not working.   It is also entirely possible that the root cause of the problem is actually external to the Perl environment but the wasted time is being, so to speak, billed to it.   This is simply a situation that you need to carefully observe, analyze, and ponder.   (If you can give us more details, perhaps some of us can ponder it with you.   We’ll be happy to try ...)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (2)
As of 2024-04-24 23:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found