Date: Fri, 17 Sep 2004 14:02:44 +0200 (CEST) From: Oliver Fromme <olli@lurza.secnetix.de> To: freebsd-python@FreeBSD.ORG Subject: Re: Help! Error: realloc(): error: allocation failed Message-ID: <200409171202.i8HC2iC8096551@lurza.secnetix.de> In-Reply-To: <a06110417bd6f765e11d9@[10.0.2.2]>
next in thread | previous in thread | raw e-mail | index | archive | help
Michael Dexter <dexter@ambidexter.com> wrote: > I am using a Python script named "RedG-analize" analize.py that calls > the webalizer to anazlize httpd logs and I am getting the error: > > python2.1 in realloc(): error: allocation failed > Abort (core dumped) > > The error began appearing as the logs grew in size and I suspect I am > running out of memory in some way but I am not sure. Yes, the process is running out of memory. That problem is not Python-specific, except that your particular Python program seems to require lots of memory. You might try to increase your process limits. (Depending on your shell, the command is "ulimit" or "limit"; please consult the manual page of your shell.) If you're already at the hard limit, you might have to compile a new kernel with a larger DSIZE. By the way, Python 2.1 is a bit outdated. I recommend up- dating to the latest version of Python (which might also have a more efficient memory-management), unless the script you're using is written in a way that makes it incompatible with newer versions. (In the latter case I would rather fix the script.) Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co KG, Oettingenstr. 2, 80538 München Any opinions expressed in this message may be personal to the author and may not necessarily reflect the opinions of secnetix in any way. I suggested holding a "Python Object Oriented Programming Seminar", but the acronym was unpopular. -- Joseph Strout
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200409171202.i8HC2iC8096551>