Forum .LRN Q&A: Problem critical with aolserver

Collapse
Posted by Dario Roig on
Hi!

We have problems with aolserver, the server crash when the process nsd arrive about 2.5GB of memory.

The log of aolserver "error.log" show this message:
"unable to alloc 2100767 bytes"

The parameters more importants of aolserver are:
"config.tcl"
#----------------------------
# Global server parameters
#----------------------------
ns_param maxkeepalive 0

#modules loaded
ns_param nssock ${bindir}/nssock.so
ns_param nslog ${bindir}/nslog.so
ns_param nssha1 ${bindir}/nssha1.so
ns_param nscache ${bindir}/nscache.so
ns_param nsopenssl ${bindir}/nsopenssl.so
# LDAP authentication
ns_param nsldap ${bindir}/nsldap.so
ns_param nsdb ${bindir}/nsdb.so

#Thread library (nsthread) parameters
ns_section ns/threads
ns_param mutexmeter true
ns_param stacksize [expr 256 * 2048]

# Server parameters
ns_section ns/server/${server}
ns_param directoryfile $directoryfile
ns_param pageroot $pageroot
ns_param maxdropped 0
ns_param connsperthread 0
ns_param minthreads 30
ns_param maxthreads 100
ns_param maxconnections 150
ns_param threadtimeout 7200

The system is composed by two PC:

WEB SERVER
Hw:
AMD Opteron 2p
4GB RAM

Sw:
Linux Debian 2.6.3-1-k7-smp #1 SMP i686 GNU/Linux
Aolserver 4.0.10
TCL 8.4.11
.LRN 2.1

DB SERVER
Hw:
AMD Opteron 4P
12GB RAM
Sw:
Linux Debian 2.6.9 #3 SMP x86_64 GNU/Linux
Postgres 7.4.8

Thanks by read this message
----------------------
University of Valencia

Collapse
Posted by Rocael Hernández Rizzardini on
Hello Dario,
we have experimented the same error. It is supposed to be a problem introduced at tcl 8.4.7 and fixed in 8.4.11. Are you sure you're running tcl 8.4.11?, if you do a:
info patchlevel
in the openacs shell you'll see what version are you running.

Anyway, is your system using the whole 4GB of ram when it crash?

Also, be sure to upgrade your drivers: openssl & oracle to the latest version, since there are known memory leaks on them.

I think will be best if you post this at the aolserver list.

Collapse
Posted by Alfred Essa on
Dario, Are you still having problems?
Collapse
Posted by Dario Roig on
Thank you for your quick answer!

I'm sure we are tcl.8.4.11, the last version nspostgres-4.0 and OpenSSL 0.9.8 05 Jul 2005.

We have sent un mail to listserv.aol.com, Dossy Shiobara recommends us put "maxkeepalive 0" but the problem not resolve
http://www.mail-archive.com/aolserver@listserv.aol.com/msg09377.html

We this afternoon Aolserver is compiled for 64 bits
in one 64 bits platform.

Thanks.

Collapse
Posted by Rocael Hernández Rizzardini on
Dario,
please keep us posted through this thread about your progress on this issue.
Collapse
Posted by Andrew Grumet on
If all else fails, you might benefit from restarting the server at regular intervals, ideally when traffic is at it lowest (e.g. overnight).
Collapse
Posted by Dario Roig on
Hi!

The problem with the limit memory of process nsd is solved in the O.S. 64 bits.

$ uname -a
Linux borrador 2.6.8-11-amd64-k8-smp #1 SMP Wed Jun 1 00:01:27 CEST 2005 x86_64 GNU/Linux

Bye.

Collapse
Posted by Dario Roig on
New values in the config.tcl:

#----------------------------
# Global server parameters
#----------------------------
ns_param maxkeepalive 0

#modules loaded
ns_param nssock ${bindir}/nssock.so
ns_param nslog ${bindir}/nslog.so
ns_param nssha1 ${bindir}/nssha1.so
ns_param nscache ${bindir}/nscache.so
ns_param nsopenssl ${bindir}/nsopenssl.so
# LDAP authentication
ns_param nsldap ${bindir}/nsldap.so
ns_param nsdb ${bindir}/nsdb.so

#Thread library (nsthread) parameters
ns_section ns/threads
ns_param mutexmeter true
ns_param stacksize [expr 512 * 2048]

# Server parameters
ns_section ns/server/${server}
ns_param directoryfile $directoryfile
ns_param pageroot $pageroot
ns_param maxdropped 0
ns_param connsperthread 0
ns_param minthreads 35
ns_param maxthreads 40
ns_param maxconnections 100
ns_param threadtimeout 3600