Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: Perl using 100% CPUby sundialsvc4 (Abbot) |
on Oct 14, 2010 at 01:58 UTC ( [id://865187]=note: print w/replies, xml ) | Need Help?? |
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 ...)
In Section
Seekers of Perl Wisdom
|
|