I've got a Debian webhosting machine with cpu loads around 11. Using top I see that perl is using 99% of the cpu as user www-data. How can I find out more about what perl is actually doing?
Perl process causing high server load, how to find what its doing
apache-2.2perl
Related Topic
- Webalizer causing high CPU load
- Redirect, Change URLs or Redirect HTTP to HTTPS in Apache – Everything You Ever Wanted to Know About mod_rewrite Rules but Were Afraid to Ask
- Redhat – How to tell is apache is configured to use perl
- NRPE and Perl – cannot include ANYTHING or it breaks
- Apache CPU Usage – How to Find Out What High CPU Usage Apache Process is Actually Doing
- Ubuntu – How to see what an IP is doing in the server
Best Answer
strace -p PID
... where PID is the process ID should give you some information. You'll want to google for some simple articles on using it if you've never used it before, though. Depends on how familiar you are with system calls to interpret the information. You'll want to look at the manpage or articles to log it to a text file as the output may be very fast and dump a lot of information very quickly, and there are a number of options to use.