From owner-freebsd-stable Wed Feb 26 4:23:40 2003 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7E7F837B401 for ; Wed, 26 Feb 2003 04:23:37 -0800 (PST) Received: from host185.dolanmedia.com (host185.dolanmedia.com [209.98.197.185]) by mx1.FreeBSD.org (Postfix) with SMTP id 7F45643F3F for ; Wed, 26 Feb 2003 04:23:36 -0800 (PST) (envelope-from greg.panula@dolaninformation.com) Received: (qmail 30143 invoked by uid 0); 26 Feb 2003 12:23:35 -0000 Received: from greg.panula@dolaninformation.com by proxy by uid 82 with qmail-scanner-1.15 ( Clear:. Processed in 1.172045 secs); 26 Feb 2003 12:23:35 -0000 X-Qmail-Scanner-Mail-From: greg.panula@dolaninformation.com via proxy X-Qmail-Scanner-Rcpt-To: david@realityrift.com,stable@FreeBSD.ORG X-Qmail-Scanner: 1.15 (Clear:. Processed in 1.172045 secs) Received: from unknown (HELO mail.dolanmedia.com) (10.1.1.23) by host185.dolanmedia.com with SMTP; 26 Feb 2003 12:23:33 -0000 Received: from dolaninformation.com (10.1.1.135) by mail.dolanmedia.com (Worldmail 1.3.167); 26 Feb 2003 06:23:33 -0600 Message-ID: <3E5CB1C5.4971BD40@dolaninformation.com> Date: Wed, 26 Feb 2003 06:23:33 -0600 From: Greg Panula Reply-To: greg.panula@dolaninformation.com Organization: Dolan Information Center Inc X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: David Holm Cc: stable@FreeBSD.ORG Subject: Re: serious perl issue References: <20030226112821.47bb339c.david@realityrift.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG David Holm wrote: > > Hi, > I installed FreeBSD 4.7 on my SMP machine (2xP3) a couple of weeks ago. > The problem I'm having is that something is spawning alot of perl processes that never die. > After having the machine running for 10 hours almost all of my ram and about 50% of the swap is > filled with perl processes that never seem to die. After about two days the machine is totally > useless and my vnc session dies as soon as I log in to it (I'm assuming it's because there is no > ram and the swap is full). > I have upgraded to the latest world and kernel from RELENG_4 and all installed applications are > up to date. I have tried using both perl 5.6 from ports and the one that comes with 4.7 and I > still have the same problem. > I'm totally stuck here as I have no idea what is causing this, I never had this problem on my > newer P3 with 4.7 on. > This is what top looks like after 9hours (sorted by reserved mem size): > > last pid: 45833; load averages: 0.51, 0.51, 0.42 up 6+01:05:36 11:27:00 > 146 processes: 1 running, 144 sleeping, 1 stopped > CPU states: 7.4% user, 0.0% nice, 11.7% system, 1.9% interrupt, 79.0% idle > Mem: 108M Active, 18M Inact, 53M Wired, 6888K Cache, 29M Buf, 572K Free > Swap: 368M Total, 161M Used, 208M Free, 43% Inuse, 8K In > > PID USERNAME PRI NICE SIZE RES STATE C TIME WCPU CPU COMMAND > 55649 avatar 2 0 26468K 14228K select 1 369:36 12.79% 12.79% Xvnc > 45444 avatar 2 0 32700K 13296K poll 1 0:14 0.00% 0.00% konqueror > 45460 avatar 2 0 19392K 7368K poll 0 0:27 2.00% 2.00% kdeinit > 45458 avatar 2 0 17768K 6512K poll 0 0:00 0.00% 0.00% kdeinit > 45464 avatar 2 0 17300K 6344K poll 0 0:00 0.00% 0.00% kdeinit > 55821 avatar 2 0 13568K 6344K poll 0 6:58 0.00% 0.00% sylpheed-cla > 55724 avatar 2 0 20492K 6028K poll 1 18:57 0.00% 0.00% sim > 45454 avatar 2 0 17268K 5920K poll 0 0:00 0.00% 0.00% kdeinit > 45451 avatar 2 0 17140K 5904K poll 0 0:00 0.00% 0.00% kdeinit > 45801 root 10 0 4096K 3540K nanslp 0 0:00 0.00% 0.00% perl > 45568 root 10 0 4096K 3436K nanslp 0 0:00 0.00% 0.00% perl > 55702 avatar 2 0 6048K 1944K poll 1 7:13 0.00% 0.00% irssi > 45332 root 10 0 4096K 1884K nanslp 1 0:00 0.00% 0.00% perl > 55664 avatar 2 0 15840K 1840K poll 1 301:59 6.45% 6.45% gkrellm > 39600 root 10 0 4096K 1732K nanslp 1 0:03 0.00% 0.00% perl > 39708 root 10 0 4096K 1732K nanslp 0 0:03 0.00% 0.00% perl > 39810 root 10 0 4096K 1732K nanslp 0 0:03 0.00% 0.00% perl > 40015 root 10 0 4096K 1732K nanslp 0 0:03 0.00% 0.00% perl > 40114 root 10 0 4096K 1732K nanslp 0 0:02 0.00% 0.00% perl > 38641 root 10 0 4096K 1728K nanslp 0 0:04 0.00% 0.00% perl > 38695 root 10 0 4096K 1728K nanslp 1 0:04 0.00% 0.00% perl > 38874 root 10 0 4096K 1728K nanslp 1 0:03 0.00% 0.00% perl > 38941 root 10 0 4096K 1728K nanslp 0 0:03 0.00% 0.00% perl > 39013 root 10 0 4096K 1728K nanslp 1 0:03 0.00% 0.00% perl > 41659 root 10 0 4096K 1728K nanslp 0 0:02 0.00% 0.00% perl > 41815 root 10 0 4096K 1728K nanslp 1 0:02 0.00% 0.00% perl > 42493 root 10 0 4096K 1728K nanslp 0 0:01 0.00% 0.00% perl > 43237 root 10 0 4096K 1728K nanslp 1 0:01 0.00% 0.00% perl > 43428 root 10 0 4096K 1728K nanslp 1 0:01 0.00% 0.00% perl > 44062 root 10 0 4096K 1728K nanslp 0 0:01 0.00% 0.00% perl > 44265 root 10 0 4096K 1728K nanslp 0 0:01 0.00% 0.00% perl > 44663 root 10 0 4096K 1728K nanslp 1 0:00 0.00% 0.00% perl > 44893 root 10 0 4096K 1728K nanslp 0 0:00 0.00% 0.00% perl > 45118 root 10 0 4096K 1728K nanslp 1 0:00 0.00% 0.00% perl > 54613 root 10 0 4096K 1724K nanslp 0 0:04 0.00% 0.00% perl > 39246 root 10 0 4096K 1724K nanslp 1 0:03 0.00% 0.00% perl > > //David Holm You need determine what is the spawning the perl processes and then either figure out why the process won't finish cleanly or keep them from spawning in the first place. After a few perl processes have been spawned try the following commands: ps awwx This should give you the complete command line of all running processes. fstat This should give a list of the various open files, what opened it and such. See the man page for more info. Good luck, greg To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message