Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > Your Distro > Redhat / Fedora Linux Help > CentOS -- Perl Using 95% Of Both My CPUs

Forgot Password?
 Redhat / Fedora Linux Help   Help and discussion related to Redhat and Fedora Linux.

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 10-11-2007   #1 (permalink)
Just Joined!
 
Join Date: Jan 2007
Posts: 28
Exclamation CentOS -- Perl Using 95% Of Both My CPUs

Hello, just recently PERL has been eating all my cpu power. I am running a dual xeon server, and the perl process is going crazy. I tried restarting no luck, still eating cpu. Here is what top is displaying:

Cpu0 : 92.0% us, 8.0% sy, 0.0% ni, 0.0% id, 0.0% wa, 0.0% hi, 0.0% si
Cpu1 : 92.0% us, 8.0% sy, 0.0% ni, 0.0% id, 0.0% wa, 0.0% hi, 0.0% si

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
7266 root 25 0 7172 4212 2744 R 95 0.2 475:51.23 perl
7220 root 25 0 7160 4212 2744 R 51 0.2 487:20.17 perl
7168 root 25 0 7228 4212 2744 R 50 0.2 492:44.44 perl


Any ideas what is going on? Can I see which process is using the perl process? Thanks for the help.
JustinK101 is offline  


Reply With Quote
Old 10-11-2007   #2 (permalink)
Linux Guru
 
anomie's Avatar
 
Join Date: Mar 2005
Location: Texas
Posts: 1,697
I don't have a Linux box handy at the moment, but I believe ps with the -ef options will give you PPID (parent PID).

e.g.
$ ps -ef | egrep 'PID|perl'

By determining the parent process you may be able to get some clues about why it is occurring.

You can also use lsof to look at what files/sockets the PID has open:

# lsof -p <pid_here>
anomie is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 09:52 AM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2