prog: (Default)
prog ([personal profile] prog) wrote2010-07-17 10:29 am

Unix help plz

Goatfuckers have compromised jmac.org somehow, and I can't do much about it because houseguests. Am trying to hold server together until I can block out six contiguous hours to rebuild everything.

Tell me why this happens, o sages of the internet:

top tells me that I have a perl process that is taking up 98% of CPU. But when I ps that PID, I am told that it's httpd. Er.

What's the correct way to find out what exactly is being perl'd? (I kill -9'd all those processes for now, but trust they'll be running again presently, because they've been doing that.)

[identity profile] radtea.livejournal.com 2010-07-17 02:47 pm (UTC)(link)
pstree might tell you more, as it should say something about what process is spawning which.

"top -c" should give you the full command line for each process, which may help identify the offending Perl script.

Also, try nicing the httpd process rather than killing it:

nice +15

or something that that. That'll keep it from hogging CPU but since it's still running it won't get restarted. Might be a useful stopgap.