Date: Mon, 24 Aug 2009 09:49:21 +0200 From: Colin Brace <cb@lim.nl> To: freebsd-questions@freebsd.org Subject: what www perl script is running? Message-ID: <4A924601.3000507@lim.nl>
next in thread | raw e-mail | index | archive | help
Hi all, I noticed this morning that a perl script was using a lot of CPU time on my FreeBSD webserver. By the time I killed it, it had run up 400 mins of system time according to top. However, simply killing 'perl5.8.9' didn't accomplish much, it was back running again moments later. I then rebooted. Once again it is running. According to top, the owner of the process is 'www', which would be lighttpd. So, it appears that lightthp is persistently spawning a perl script.But which one? I don't use perl much, but I do have it enabled in lighttp: [...] ) server.modules = ( "mod_access", "mod_simple_vhost", "mod_accesslog", "mod_cgi", "mod_rewrite", "mod_auth", "mod_fastcgi", "mod_redirect" ) static-file.exclude-extensions = ( ".fcgi", ".php", ".rb", "~", ".inc" ) cgi.assign = ( ".pl" => "/usr/bin/perl", ".cgi" => "/usr/local/bin/python", ".py" => "/usr/local/bin/python", ".sh" => "/usr/local/bin/bash" ) [...] Is there a command like fuser or lsof which can be used to determine what files this perl instance is using? Any other ideas on how to figure out what is going on here? Thanks. uname: FreeBSD 7.0-STABLE i386 -- Colin Brace Amsterdam http://www.lim.nl
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4A924601.3000507>