On Mon, 14 May 2001 09:49:27 -0700, Tom Jackson <[EMAIL PROTECTED]> wrote:
>Brian Jones wrote:
>> Maybe the server truly is
>> out of memory, but top says otherwise. Do you know the situations in
which
>> this error will occur?
>
>You would have to look at top just before this happened, because after
>it happens, most of the memory used by AOLserver will be released. It
>seems like a small amount (less than a meg). Is the amount always the
>same?
>
>--Tom Jackson
Hi,
I am having the same problem as Brian. AOLServer will crash after a few
clicks and the log file registers a ns_realloc error.
I am running AOLServer 3.2+ad12 on HPUX 11 with PostgreSQL 7.0.3 and
pgdriver 1.1 (from openacs.org). I started aolserver under gdb:
****************************
$ gdb bin/nsd
GNU gdb 4.18-hppa-991112
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions. This version of GDB is supported
for customers of Cygnus Solutions. Type "show warranty" for details.
This GDB was configured as "hppa1.1-hp-hpux11.00"...
(gdb) set args -ft test.tcl
(gdb) run
...
[05/Jun/2001:16:23:29][13224.8][-conn1-] Notice: Opening test on localhost
[05/Jun/2001:16:23:29][13224.8][-conn1-] Notice: Ns_PgOpenDb(postgres):
Openned connection to localhost::test.
[05/Jun/2001:16:23:29][13224.10][-conn3-] Notice: dbdrv: opening
database 'postgres:localhost::test'
[05/Jun/2001:16:23:29][13224.10][-conn3-] Notice: Opening test on localhost
[05/Jun/2001:16:23:29][13224.10][-conn3-] Notice: Ns_PgOpenDb(postgres):
Openned connection to localhost::test.
[New thread 11 (system thread 21242)]
[New thread 12 (system thread 21243)]
[New thread 13 (system thread 21244)]
[New thread 14 (system thread 21245)]
[New thread 15 (system thread 21246)]
nsthread(13224) error: ns_realloc: could not allocate 861 bytes
[Switching to process 21246]
Program received signal SIGABRT, Aborted.
[Switched to thread 15 (system thread 21246)]
0x7f7b9b88 in kill () from /usr/lib/libc.2
****************************
And the server crashes. Like Brian, it happens sporadically. Sometimes I
can click away for minutes and sometimes the server will crash after a few
clicks.
I've tried looking at the swapfile size, vmstat, and ulimit. It doesn't
look like I am running out of memory. My data ulimit is at 64Megs.
Do you guys have any ideas on how I can resolve this issue? Thanks.
Gilbert Wong
[EMAIL PROTECTED]