From owner-freebsd-perl@FreeBSD.ORG Thu Jul 8 05:54:27 2004 Return-Path: Delivered-To: freebsd-perl@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1C77016A4CF for ; Thu, 8 Jul 2004 05:54:27 +0000 (GMT) Received: from mail.corrupt.co.nz (222-152-1-143.jetstream.xtra.co.nz [222.152.1.143]) by mx1.FreeBSD.org (Postfix) with SMTP id ADEB843D5E for ; Thu, 8 Jul 2004 05:54:23 +0000 (GMT) (envelope-from drew@corrupt.co.nz) Received: (qmail 8791 invoked by uid 1011); 8 Jul 2004 05:54:22 -0000 Received: from drew@corrupt.co.nz by tweety.lan.corrupt.co.nz by uid 1009 with qmail-scanner-1.22 Clear:RC:0(10.10.69.146):SA:0(0.0/3.8):. Processed in 5.252496 secs); 08 Jul 2004 05:54:22 -0000 X-Spam-Status: No, hits=0.0 required=3.8 Received: from unknown (HELO ?10.10.69.146?) (drew@corrupt.co.nz@10.10.69.146) by mail.corrupt.co.nz with SMTP; 8 Jul 2004 05:54:16 -0000 Message-ID: <40ECE14E.2050905@corrupt.co.nz> Date: Thu, 08 Jul 2004 17:53:18 +1200 From: Drew Broadley User-Agent: Mozilla Thunderbird 0.6 (X11/20040606) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Andrew Nelson References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-current@freebsd.org cc: freebsd-perl@freebsd.org Subject: Re: 5.2.1 using heaps of memory for Perl Process X-BeenThere: freebsd-perl@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: maintainer of a number of perl-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jul 2004 05:54:27 -0000 Andrew Nelson wrote: > Hi, > > I've just upgraded from 4.9 to 5.2.1 and have a perl script > which runs for about 10 minutes roughly 20 times a day. Since > the upgrade, the same process has started crashing with "Out > of Memory".. It keeps building up, eating the swap then crashes. > The swap partition is the same size on the old machine but I don't > think it ever needed it.. (exactly the same hardware too). > > 'top' shows the process alternating between STATES: 'piperd', > 'swread' and 'RUN'. > > All the process does is uncompress some data (using the system > command to flow-tools) and inserts it into a MySQL database. > > it's the same version of perl (installed with default FreeBSD install). > > Can anyone suggest a fix? Probably the best suggestion would be to rebuild perl. 5.1 -> 5.2.1 is a major step and if you are using other then 5.00x then it would probably be a MUST DO. Have you read /usr/src/UPDATING ? - Drew