Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Feb 2003 06:23:33 -0600
From:      Greg Panula <greg.panula@dolaninformation.com>
To:        David Holm <david@realityrift.com>
Cc:        stable@FreeBSD.ORG
Subject:   Re: serious perl issue
Message-ID:  <3E5CB1C5.4971BD40@dolaninformation.com>
References:  <20030226112821.47bb339c.david@realityrift.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3E5CB1C5.4971BD40>