You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

perl overloading CPU for no reason

Very frequently my iMac's fan will start running very hard and loud when I'm not doing anything to require it. In Activity Monitor the process "perl" is shown using up to 70% or 80% of my CPU capacity. If I select perl and quit it the CPU usage (and the fan noise) stops, and perl doesn't appear to restart unless I restart the computer.

I understand (barely) that perl is some kind of meta-programming language on which other applications may depend (?), so my question is this: Is quitting perl going to impair my system in any way? (It hasn't caused any obvious problems that I can see.) Also, if I really don't need it, is there a way to prevent it from starting up when I launch OSX 10.4?

iMac G4 15

Posted on Mar 19, 2008 8:13 PM

Reply
7 replies

Mar 20, 2008 8:07 AM in response to Paul Schleuse

PERL is a hugely popular scripting language that's used primarily for automating processes and for text processing. Common uses: web programming, reporting/managing logs, etc. A lot of the Automator actions and core services use PERL.

Look at the hierarchical view in Activity Monitor for the process and determine what called it. That should give you an idea what it's doing and what will happen when you interrupt it.

Mar 20, 2008 6:31 PM in response to J D McIninch

Thanks for the tip about the hierarchical view. However, PERL is listed directly under launchd, which is (with kernel_task) the top-level process. So nothing seems to be calling it besides launchd itself.

Considering that quitting PERL still isn't causing any obvious problems, do you have any ideas about how to prevent its launching on startup?

Mar 24, 2008 1:15 PM in response to Paul Schleuse

Look at the launchd entries in these directories for one that mentions perl:

/Library/LaunchAgents
/Library/LaunchDaemons
/System/Library/LaunchAgents
/System/Library/LaunchDaemons

... launchd starts the processes it executes based on the XML plist files in those directories. The only wrinkle in that is that the launchd plist file calls a script that uses perl to run it.

Best to leave perl running, then do (in Terminal.app):

*launchctl list*

... and see which label matches the PID given in Activity Monitor. The one with the same ID is the launchd item that started perl.

perl overloading CPU for no reason

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.