From owner-freebsd-questions@FreeBSD.ORG Mon Aug 24 08:02:49 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 46EFC106568B for ; Mon, 24 Aug 2009 08:02:49 +0000 (UTC) (envelope-from cb@lim.nl) Received: from smtpauth.rollernet.us (smtpauth.rollernet.us [208.79.240.5]) by mx1.freebsd.org (Postfix) with ESMTP id 2A43C8FC1C for ; Mon, 24 Aug 2009 08:02:48 +0000 (UTC) Received: from smtpauth.rollernet.us (localhost.localdomain [127.0.0.1]) by smtpauth.rollernet.us (Postfix) with ESMTP id DEEE3594003 for ; Mon, 24 Aug 2009 00:44:04 -0700 (PDT) Received: from [192.168.1.2] (93-125-163-97.dsl.alice.nl [93.125.163.97]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: cb@lim.nl) by smtpauth.rollernet.us (Postfix) with ESMTP for ; Mon, 24 Aug 2009 00:44:02 -0700 (PDT) Message-ID: <4A924601.3000507@lim.nl> Date: Mon, 24 Aug 2009 09:49:21 +0200 From: Colin Brace User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.1) Gecko/20090814 Fedora/3.0-2.6.b3.fc11 Thunderbird/3.0b3 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Rollernet-Abuse: Processed by Roller Network Mail Services. Contact abuse@rollernet.us to report violations. Abuse policy: http://rollernet.us/abuse.php X-Rollernet-Submit: Submit ID 5e55.4a9244c2.2b8a7.0 Subject: what www perl script is running? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Aug 2009 08:02:49 -0000 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