From owner-freebsd-questions@FreeBSD.ORG Wed Dec 6 10:49:40 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 317A016A4FB for ; Wed, 6 Dec 2006 10:49:40 +0000 (UTC) (envelope-from a.sveshnikov@mail.ru) Received: from f41.mail.ru (f41.mail.ru [194.67.57.79]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7B1E043EE6 for ; Wed, 6 Dec 2006 10:36:18 +0000 (GMT) (envelope-from a.sveshnikov@mail.ru) Received: from mail by f41.mail.ru with local id 1Gru97-0003cW-00 for freebsd-questions@freebsd.org; Wed, 06 Dec 2006 13:37:01 +0300 Received: from [80.68.242.241] by koi.mail.ru with HTTP; Wed, 06 Dec 2006 13:37:01 +0300 From: Alexey Sveshnikov To: freebsd-questions@freebsd.org Mime-Version: 1.0 X-Mailer: mPOP Web-Mail 2.19 X-Originating-IP: 127.0.0.1 via proxy [80.68.242.241] Date: Wed, 06 Dec 2006 13:37:01 +0300 In-Reply-To: =?koi8-r?Q?<20061206002422.00EE716A585=40hub.freebsd.org>?= Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 8bit Message-Id: Subject: memory limit in cron X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Alexey Sveshnikov List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Dec 2006 10:49:40 -0000 Hi!! I have some problems with running perl script from cron. My script works with huge log files and it's size grows up to 300-1500Mb. It's necessity and can't be done in other ways than collecting data into hashes. When memory usage reaches 256Mb, error happens: Out of memory during request for 4084 bytes, total sbrk() is 264271872 bytes! Callback called exit, line 5635900. END failed--call queue aborted, line 5635900. Same script with same data works fine when running from console, and it's size grows up to 290Mb. Also, very same script successfully works in cron on another server, it processes 4Gb files. IMHO, one thing that can be reason, is the version of FreeBSD. Script fails on FreeBSD 6.x and works fine on FreeBSD 4.x How can I make it work on FreeBSD 6.2? Hardware (almost same on every servers) CPU: Intel(R) Xeon(TM) CPU 2.80GHz (2793.01-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0xf41 Stepping = 1 Features=0xbfebfbff Hyperthreading: 2 logical CPUs real memory = 2147352576 (2097024K bytes) avail memory = 2087211008 (2038292K bytes) OS: FreeBSD 4.11-RELEASE, FreeBSD 6.2-PRERELEASE #ulimit unlimited Thanks for your attention :)