Re: [AOLSERVER] Install problem

2008-03-03 Thread SUBSCRIBE AOLSERVER Nima Mazloumi
Isn't
export CPPFLAGS=-nostartfiles
enough?
It works for me.


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> 
with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: 
field of your email blank.


Re: [AOLSERVER] Not sure if aolserver compile correclty

2008-02-28 Thread SUBSCRIBE AOLSERVER Nima Mazloumi
Memory is increasing constantly. This might be an oacs problem but flushing 
the util_memoize cache increase the memory consumption between 1-2 percent. 
After 14 hours memory usage is 41.7% (4897288 according to ps).


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> 
with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: 
field of your email blank.


Re: [AOLSERVER] Not sure if aolserver compile correclty

2008-02-26 Thread SUBSCRIBE AOLSERVER Nima Mazloumi
/usr/local/aolserver/bin/nsd: ELF 64-bit LSB executable, x86-64, version 1 
(SYSV), for GNU/Linux 2.6.4, dynamically linked (uses shared libs), not 
stripped

I thought 4.5 memory leak is a common issue. I will create a cron job for 
monitoring.


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> 
with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: 
field of your email blank.


Re: [AOLSERVER] Not sure if aolserver compile correclty

2008-02-25 Thread SUBSCRIBE AOLSERVER Nima Mazloumi
Thank you


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> 
with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: 
field of your email blank.


Re: [AOLSERVER] Not sure if aolserver compile correclty

2008-02-24 Thread SUBSCRIBE AOLSERVER Nima Mazloumi
Juan José the symbols could be due to the german language settings of the 
suse 10.3 installation here.

I've been using aolserver 64bit now for 2 weeks. After 5 days it crashes 
because all memory was consumed. therefore I restart the server every night.


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> 
with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: 
field of your email blank.


[AOLSERVER] tdom compilation

2008-02-24 Thread SUBSCRIBE AOLSERVER Nima Mazloumi
Hi all,

I compiled and maked tdom from cvs with several warnings. Does this output 
look correct to you?

Thank you,
Nima

mail-v81:/home/unima2/installer/tdom # ./configure --enable-threads --
disable-tdomalloc --prefix=/usr/local/aol45 --exec-prefix=/usr/local/aol45 -
-with-aolserver=/usr/local/aol45 --with-tcl=../tcl8.4.17/unix
checking for correct TEA configuration... ok (TEA 3.6)
checking for Tcl configuration... 
found /home/unima2/installer/tcl8.4.17/unix/tclConfig.sh
checking for existence 
of /home/unima2/installer/tcl8.4.17/unix/tclConfig.sh... loading
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... gcc -E
checking for a BSD-compatible install... /usr/bin/install -c
checking whether make sets $(MAKE)... yes
checking for ranlib... ranlib
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking if the compiler understands -pipe... yes
checking whether byte ordering is bigendian... no
checking for sin... no
checking for main in -lieee... yes
checking for main in -linet... no
checking net/errno.h usability... no
checking net/errno.h presence... no
checking for net/errno.h... no
checking for connect... yes
checking for gethostbyname... yes
checking dirent.h... yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking float.h usability... yes
checking float.h presence... yes
checking for float.h... yes
checking values.h usability... yes
checking values.h presence... yes
checking for values.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/wait.h usability... yes
checking sys/wait.h presence... yes
checking for sys/wait.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking for memmove... yes
checking for bcopy... yes
checking for AOLserver configuration... found AOLserver in /usr/local/aol45
checking for Tcl public headers... /home/unima2/installer/tcl8.4.17/generic
checking for pthread_mutex_init in -lpthread... yes
checking for building with threads... yes (default)
checking how to build libraries... shared
checking if 64bit support is requested... no
checking if 64bit Sparc VIS support is requested... no
checking system version... Linux-2.6.22.17-0.1-default
checking for dlopen in -ldl... yes
checking for ar... ar
checking for required early compiler flags...  _LARGEFILE64_SOURCE
checking for 64-bit integer type... using long
checking for build with symbols... no
checking for tclsh... /home/unima2/installer/tcl8.4.17/unix/tclsh
checking whether to enable dtd support... yes
checking whether to enable namespace support... yes
checking whether to enable built-in unknown command... no
checking whether to enable tDOMs block allocator... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating tdomConfig.sh
mail-v81:/home/unima2/installer/tdom # make install
gcc -DPACKAGE_NAME=\"tdom\" -DPACKAGE_TARNAME=\"tdom\" -
DPACKAGE_VERSION=\"0.8.3\" -DPACKAGE_STRING=\"tdom\ 0.8.3\" -
DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -
DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -
DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -
DHAVE_LIMITS_H=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_MEMMOVE=1 -DHAVE_BCOPY=1 -
DNS_AOLSERVER=1 -DUSE_NORMAL_ALLOCATOR=1 -DUSE_THREAD_ALLOC=1 -
D_REENTRANT=1 -D_THREAD_SAFE=1 -DTCL_THREADS=1 -D_LARGEFILE64_SOURCE=1 -
DTCL_WIDE_INT_IS_LONG=1 -DUSE_TCL_STUBS=1 -DXML_DTD=1 -DXML_NS=1 -
DTDOM_NO_UNKNOWN_CMD=1 -DUSE_NORMAL_ALLOCATOR=1   -I./generic -I./expat -
I"/usr/local/aol45/include" -
I"/home/unima2/installer/tcl8.4.17/generic"-pipe -O2 -fomit-frame-
pointer -Wall -Wno-implicit-int -fPIC  -c `echo ./expat/xmlrole.c` -o 
xmlrole.o
gcc -DPACKAGE_NAME=\"tdom\" -DPACKAGE_TARNAME=\"tdom\" -
DPACKAGE_VERSION=\"0.8.3\" -DPACKAGE_STRING=\"tdom\ 0.8.3\" -
DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -
DHAVE_SYS_STAT_H=1 -DHAVE_ST

Re: [AOLSERVER] AOLServer crashes when loosing DB connection

2006-09-27 Thread Nima
PostgreSQL 8.0.8
tcl 8.4.11
nspostgres 4.0


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> 
with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: 
field of your email blank.


Re: [AOLSERVER] AOLServer crashes when loosing DB connection

2006-09-27 Thread Nima
AOLserver/4.0.10, nsdb module. Where can I find out the its version?


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> 
with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: 
field of your email blank.


Re: [AOLSERVER] AOLServer crashes when loosing DB connection

2006-09-27 Thread Nima
Both databases are postgres here. I have to say that I use OpenACS. Not 
sure if they have their own database driver.


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> 
with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: 
field of your email blank.


[AOLSERVER] AOLServer crashes when loosing DB connection

2006-09-27 Thread Nima
Hi all,

is there a way to configure the AOLServer not to crash if it looses the 
connection to the database. When ever I restart the database the aolserver 
crashes instead of delivering an error page or reconnecting to the 
database. The reason why I am asking is that we would like to define 
several database pools to legacy systems but when one of the databases is 
restarted the aolserver crashes.

Greetings,
Nima


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> 
with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: 
field of your email blank.


[AOLSERVER] info exists tcl_platform(threaded) gives different results

2006-08-18 Thread Nima
Hi all,

calling the tcl shell with "info exists tcl_platform(threaded)" returns 1 
on the command line but in the developer shell of openacs which basically 
forwards the call to "uplevel 1 $script" returns 0.

Why that?

Greetings,
Nima


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> 
with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: 
field of your email blank.


Re: [AOLSERVER] Warnings during compilation, nsd won't run

2006-03-14 Thread Nima
Thank you. It works now.


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> 
with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: 
field of your email blank.


Re: [AOLSERVER] Warnings during compilation, nsd won't run

2006-03-14 Thread Nima
I found these sources regarding that problem:

- http://article.gmane.org/gmane.comp.web.aolserver/10804
- http://www.panoptic.com/aolserver/chat/20050418.html
- http://openacs.org/forums/message-view?message_id=345263

Thus I commented out the relevant if statement in nsd/tclobj.c.

Now it seems that the server runs again. But isn't there a better
approach?


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> 
with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: 
field of your email blank.


[AOLSERVER] Warnings during compilation, nsd won't run

2006-03-14 Thread Nima
Hi there,

I tried to compile the aolserver on SuSe Enterprise 9. During compilation 
i get several lines of

warning: cast to pointer from integer of different size

Still it seems that everything was compiled. But when I try to test run 
the server I only get the following line on the shell:

NsTclInitObjs: sizeof(int) < sizeof(long)

and then nothing happens.

Any idea?

Thx,
Nima


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> 
with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: 
field of your email blank.


[AOLSERVER] Server crashed

2006-02-13 Thread Nima Mazloumi



Hi 
all,
 
I got the following 
last line in the error log before the server crashed:
 
nsd: unknown binding 
type (2104528680) in free_binding
 
Any 
idea?
 
Greetings,
Nima


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: field of your email blank.



[AOLSERVER] AW: [AOLSERVER] Storing binary data in MySQL with AOLserver

2006-02-05 Thread Nima Mazloumi
> Any suggestions for what to cover next?
A blog about the relationship between max_connections, min/max_threads,
number of db connections, required memory and benchmarks would be nice. I
would like to
learn more on fine-tuning the aolserver.


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> 
with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: 
field of your email blank.


Re: [AOLSERVER] Performance problems with large installation

2006-02-03 Thread Nima
Dossy..when you look at the hardware would you say that I need more 
dynamic servers and can I run serveral dynamic servers against on 
postgresql? Using pound I add some more aolservers behind the scenes 
connected to one databse.


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> 
with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: 
field of your email blank.


Re: [AOLSERVER] Performance problems with large installation

2006-02-03 Thread Nima
If I increase max_threads how do I have to increase the number of db 
connections for each pool?


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> 
with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: 
field of your email blank.


Re: [AOLSERVER] Performance problems with large installation

2006-02-03 Thread Nima
Is there any way to find out how many concurrent users I currently have?


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> 
with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: 
field of your email blank.


Re: [AOLSERVER] Performance problems with large installation

2006-02-03 Thread Nima
I would like to understand more the relation between:
- number of concurrent requests
- number of required threads
- number of required database connections in the pool

Can someone kindly give more insight on that?

Let's say I have 50 concurrent users. How many threads do I need with how 
many db connections for each db pool?

Also what is the relation between usage of RAM and number of threads?

When I look at top the aolserver currently in top it says:
%MEM   PID USER  PR  NI  VIRT  RES  SHR S %CPUTIME+  COMMAND   
41.7 27147 unima225   0 1796m 1.6g 7448 S  0.0   
0:36.66 /opt/aolserver4/bin/nsd -u unima2 -t /www/unima2/etc/config.tcl

with basically 44 users who do nothing but still the server uses 41% of 
the RAM.


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> 
with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: 
field of your email blank.


[AOLSERVER] Performance problems with large installation

2006-02-03 Thread Nima
Hi all,

I have problems with the performance of our installation here I seek your 
advice because I don't know whether this is because of our architecture, 
or miss configuration of aolserver or database or small hardware.

What basically happens is that once I have more than 150 users logged in 
the response time for a page takes a minute or more which is very 
frustrating for users. Today we received an email saying that the system 
is simply "shit". I don't know what to do next. All I know is that from 
semester to semester the load is getting higher but the frustration as 
well.

Here our system details.

We have three linux boxes. One for an aolserver with database connection, 
one for a static aolserver and one for the database.

The database box never goes above 5-10%. The static server is also not 
very busy but the dynamic server can go upt to 99% and a load of 10 and 
more.

Currently:
%MEM %CPU  SHR   PID USER  PR  NI  VIRT  RES STIME+  COMMAND
41.1  0.0 7448 27147 unima225   0 1770m 1.6g S   
0:36.66 /opt/aolserver4/bin/nsd -u unima2 -t /www/unima2/etc/config.tcl 
with 44 users logged into the system.

Any help or comment is appreciated.

Greetings,
Nima

-
dotlrn (dynamic server)
-

AOLServer 4.0.10 (connected to the database)
Pound 1.8.2 (as reverse proxy for ssl and load balancing)
Apache 2.0.53 (only redirect from 80 to 443 where pound is)

SuSE 9.2
Linux Linux version 2.6.8-24.18-smp (gcc version 3.3.4 (pre 3.3.5 
20040809)) #1 SMP Fri Aug 19 11:56:28 UTC 2005
4 CPU Intel(R) Xeon(TM) CPU 3.06GHz , L2 cache: 512K
4 GByte RAM - Memory: 4070968k/4111296k available (2339k kernel code, 
39528k reserved, 824k data, 252k init, 3193792k highmem)
2 Broadcom Corporation NetXtreme BCM5704 Gigabit Ethernet Cards

AOLServer config.tcl
...

ns_section ns/server/${server}/modules
ns_param libthread ${homedir}/lib/thread2.6.2/libthread2.6.2.so
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 php ${bindir}/libphp4.so
ns_param nsrewrite ${bindir}/nsrewrite.so
ns_param nscgi ${bindir}/nscgi.so


ns_section ns/parameters
ns_param serverlog ${serverroot}/log/error.log
ns_param home $homedir
ns_param maxkeepalive 100
ns_param logroll on
ns_param maxbackup 5
ns_param debug $debug
ns_param mailhost localhost
ns_param proxy cache.uni-mannheim.de
ns_param proxy_port 3128
ns_param ReverseProxyMode true

ns_section ns/threads
ns_param mutexmeter true
ns_param stacksize [expr 256*1024]

ns_section ns/server/${server}
ns_param directoryfile $directoryfile
ns_param pageroot $pageroot
ns_param maxconnections 100
ns_param keepalivetimeout 15
ns_param maxdropped 0
ns_param maxthreads 65
ns_param minthreads 65
ns_param threadtimeout 3600
ns_param globalstats true
ns_param urlstats true
ns_param maxurlstats 1000

ns_section ns/server/${server}/module/nssock
ns_param timeout 120
ns_param address $address
ns_param hostname $hostname
ns_param port $httpport
ns_param maxinput 20971520

ns_section ns/db/pool/pool1
ns_param maxidle 10
ns_param maxopen 10
ns_param connections 100
...

ns_section ns/db/pool/pool2
ns_param maxidle 10
ns_param maxopen 10
ns_param connections 60
...

ns_section ns/db/pool/pool3
ns_param maxidle 10
ns_param maxopen 10
ns_param connections 30
...


ns_section ns/server/${server}/module/nslog
ns_param debug false
ns_param dev false
ns_param enablehostnamelookup true
ns_param file ${serverroot}/log/${server}.log
ns_param logcombined true
#ns_param extendedheaders COOKIE
#ns_param logrefer false
#ns_param loguseragent false
ns_param maxbackup 1000
ns_param rollday *
ns_param rollfmt %Y-%m-%d-%H:%M
ns_param rollhour 0
ns_param rollonsignal true
ns_param rolllog true

-
dotlrn5 (static server)
-
AOLServer 4.0.10 (static)

SuSE 9.2
Linux version 2.6.8-24.18-smp ([EMAIL PROTECTED]) (gcc version 3.3.4 (pre 
3.3.5 20040809)) #1 SMP Fri Aug 19 11:56:28 UTC 2005
2 CPU Intel Pentium III (Katmai) 500 MHz
512 MB RAM - Memory: 512744k/524288k available (2339k kernel code, 11100k 
reserved, 824k data, 252k init, 0k highmem)
2 3Com Corporation 3c905B 100BaseTX [Cyclone] Cards

-
dotlrn2 (database server)
-
PostgreSQL 7.4.8

SuSE 9.2
Linux version 2.6.8-24.18-smp ([EMAIL PROTECTED]) (gcc version 3.3.4 (pre 
3.3.5 20040809)) #1 SMP Fri Aug 19 11:56:28 UTC 2005
4 CPU Intel(R) Xeon(TM) CPU 3.06GHz
4 GB RAM - Memory: 4071012k/4111296k available (2339k kernel code, 39484k 
reserved, 824k data, 252k init, 3193792k highmem)
2 Broadcom Corporation NetXtreme BCM5704 Gigabit Ethernet Cards


Postgresql configuration:

tcpip_socket = true
max_connections 200
shared_buffers = 15384
sort_mem = 16384
vacuum_mem = 131072
max_fsm_pages = 10
max_

Re: [AOLSERVER] Using nsjk2 module

2005-12-13 Thread Nima
Also I was wondering if it is possible to call Java Classes directly from 
tcl using this module


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> 
with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: 
field of your email blank.


[AOLSERVER] Using nsjk2 module

2005-12-13 Thread Nima Mazloumi



Hi 
all,
 
has anyone 
experience with the nsjk2 module? I found the documentation for installing it 
but
no example on how to 
use it in tcl. Also I was wondering how well it performs and 
how
scalable it 
is.
 
Thx,
Nima


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: field of your email blank.



Re: [AOLSERVER] Performance-Problems

2005-10-24 Thread Nima Mazloumi
Here an example for the Startpage:
17.623 ms/33 db/1.754 ms

Request Processor
+0.1 ms: Applied GET filter: (for /dotlrn/ curriculum::curriculum_filter) -
 0.0 ms 
returned filter_ok
+0.1 ms: Trying rp_serve_abstract_file /www/unima2/www/dotlrn/ 
+0.1 ms: File /www/unima2/www/dotlrn/: Directory index 
+0.1 ms: Applied transformation from /www/unima2/www/dotlrn/ -
> /www/unima2/www/dotlrn/ - 0.0 ms 
+0.1 ms: Trying rp_serve_abstract_file /www/unima2/packages/dotlrn/www/ 
+0.1 ms: Served file /www/unima2/packages/dotlrn/www/index.adp with 
adp_parse_ad_conn_file - 17.6 ms 
+17.7 ms: Applied GET filter: (for /dotlrn/ ds_trace_filter) - 0.0 ms 
returned filter_ok


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> 
with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: 
field of your email blank.


Re: [AOLSERVER] Performance-Problems

2005-10-24 Thread Nima Mazloumi
Again I have 117 connections and My Startpage takes 22sec to render. Very 
strange is that CPU load is extremely high but nsd does seem to occupy 
cpus at all which it actually does. If I shutdown nsd all load is gone.

-conn:unima2::44 -driver- -2107114576 0 1130140236 ns:connthread {}
-conn:unima2::43 -driver- -2107376720 0 1130140236 ns:connthread {}
-conn:unima2::42 -driver- -2109789264 0 1130140235 ns:connthread {}
-conn:unima2::41 -driver- -2126001232 0 1130140235 ns:connthread {507973 
127.0.0.1 running GET /threads 0.50319 0}
-conn:unima2::40 -driver- -2127299664 0 1130140235 ns:connthread {}
-conn:unima2::39 -driver- -2147079248 0 1130140038 ns:connthread {}
-conn:unima2::38 -driver- -2038170704 0 1130140038 ns:connthread {}
-conn:unima2::37 -driver- -2104230992 0 1130140036 ns:connthread {}
-conn:unima2::36 -driver- 2061761456 0 1130140036 ns:connthread {507958 
127.0.0.1 running GET /register/ 1.977021 0}
-conn:unima2::35 -driver- -2114049104 0 1130140036 ns:connthread {}
-conn:unima2::34 -driver- -2125546576 0 1130140035 ns:connthread {}
-conn:unima2::33 -driver- -2130646096 0 1130140035 ns:connthread {}
-conn:unima2::32 -driver- 2144074672 0 1130140034 ns:connthread {507957 
127.0.0.1 running 
GET /dotlrn/clubs/handelsundsteuerbilanzenimgrundstudium/forums/forum-view 
2.186026 0}
-conn:unima2::31 -driver- 2143812528 0 1130140034 ns:connthread {}
-conn:unima2::30 -driver- 2143550384 0 1130140034 ns:connthread {}
-conn:unima2::29 -driver- 2119613360 0 1130140031 ns:connthread {}
-conn:unima2::28 -driver- 2119351216 0 1130140031 ns:connthread {}
-conn:unima2::27 -driver- 2116955056 0 1130140031 ns:connthread {}
-conn:unima2::26 -driver- 2082405296 0 1130140027 ns:connthread {}
-conn:unima2::25 -driver- 2053057456 0 1130140027 ns:connthread {}
-conn:unima2::24 -driver- 2023615408 0 1130140025 ns:connthread {}
-conn:unima2::23 -driver- 1722084272 0 1129897013 ns:connthread {}
-conn:unima2::22 -driver- 1543383984 0 1129887634 ns:connthread {507955 
127.0.0.1 running GET 
{/dotlrn/classes/fakultaetfuervolkswirtschaftslehre/lehrstuhlfuervolkswirts
chaftslehreinsbesonderemikç  @ᄚ 7ᄀ ^ @ᆪ 7ᄀ
} 2.499641 0}
-conn:unima2::21 -driver- 1536109488 0 1129887633 ns:connthread {}
-conn:unima2::20 -driver- 1438043056 0 1129887632 ns:connthread {}
-sched:idle3- -sched- 1490471856 0 1129887005 p:0x4003f7c3 a:0x3
-sched:idle2- -sched- 1432841136 0 1129886405 p:0x4003f7c3 a:0x2
-sched:idle1- -sched- 1320037296 0 1129886165 p:0x4003f7c3 a:0x1
-sched:idle0- -sched- 1101683632 0 1129886157 p:0x4003f7c3 a:0x0
-driver- -main- 1101421488 0 1129886112 p:0x40032156 a:0x0
-conn:unima2::19 -main- 1101159344 0 1129886112 ns:connthread {}
-conn:unima2::18 -main- 1100897200 0 1129886112 ns:connthread {507960 
127.0.0.1 running POST 
{/dotlrn/classes/fakultaetfuerbetriebswirtschaftslehre/lehrstuhlfuerabwlind
ustrieproduktionswirtschafç  @ᄄ"7ᄀ ^ @ロ"7ᄀ
} 1.819094 0}
-conn:unima2::17 -main- 1100635056 0 1129886112 ns:connthread {}
-conn:unima2::16 -main- 1100372912 0 1129886112 ns:connthread {}
-conn:unima2::15 -main- 1100110768 0 1129886112 ns:connthread {}
-conn:unima2::14 -main- 1099848624 0 1129886112 ns:connthread {}
-conn:unima2::13 -main- 1099586480 0 1129886112 ns:connthread {}
-conn:unima2::12 -main- 1099324336 0 1129886112 ns:connthread {}
-conn:unima2::11 -main- 1099062192 0 1129886112 ns:connthread {}
-conn:unima2::10 -main- 1098800048 0 1129886112 ns:connthread {}
-conn:unima2::9 -main- 1098537904 0 1129886112 ns:connthread {}
-conn:unima2::8 -main- 1098275760 0 1129886112 ns:connthread {}
-conn:unima2::7 -main- 1098013616 0 1129886112 ns:connthread {}
-conn:unima2::6 -main- 1097751472 0 1129886112 ns:connthread {}
-conn:unima2::5 -main- 1097489328 0 1129886112 ns:connthread {}
-conn:unima2::4 -main- 1097227184 0 1129886112 ns:connthread {}
-conn:unima2::3 -main- 1096965040 0 1129886112 ns:connthread {}
-conn:unima2::2 -main- 1096702896 0 1129886112 ns:connthread {}
-conn:unima2::1 -main- 1096440752 0 1129886112 ns:connthread {507948 
127.0.0.1 running GET 
{/dotlrn/classes/fakultaetfuerbetriebswirtschaftslehre/lehrstuhlfuerabwlind
ustrieproduktionswirtschafç  @:9cᆭ ^ @-9cᆭ
} 3.506204 0}
-conn:unima2::0 -main- 1096178608 0 1129886112 ns:connthread {}
-sched- -main- 1078913968 0 1129886065 p:0x4003f990 a:0x0
-main- {} 1076269184 1 1129886065 p:0x0 a:0x0


TOP:
top - 11:08:48 up 2 days, 23:58,  2 users,  load average: 19.23, 20.66, 
25.00
Tasks: 110 total,   3 running, 107 sleeping,   0 stopped,   0 zombie
Cpu0  : 93.5% us,  2.6% sy,  0.0% ni,  1.0% id,  1.6% wa,  0.3% hi,  1.0% 
si
Cpu1  : 95.7% us,  2.6% sy,  0.0% ni,  1.0% id,  0.7% wa,  0.0% hi,  0.0% 
si
Cpu2  : 95.4% us,  2.0% sy,  0.0% ni,  2.0% id,  0.7% wa,  0.0% hi,  0.0% 
si
Cpu3  : 96.1% us,  2.0% sy,  0.0% ni,  1.0% id,  0.7% wa,  0.0% hi,  0.3% 
si
Mem:   4073112k total,  3932156k used,   140956k free,   104320k buffers
Swap:  3911816k total,   600680k used,  3311136k free,  2339480k cached

  PID USER  PR  NI  VIRT  RES  SHR S %CPU %MEMTIME+  
COMMAN

Re: [AOLSERVER] Performance-Problems

2005-10-20 Thread Nima Mazloumi
Unfortunately the number of concurrent users dropped to 56 which 
significantly increased performance.

Its the webserver box. Most of the log was pound doing. I turned that off 
without any improvment. The local Postgres was not needed and was
turned off as well. no result.

Here is what "ns_info threads" says:
-sched:idle2- -sched- 1513163696 0 1129736468 p:0x4003f7c3 a:0x2
-sched:idle1- -sched- 1436511152 0 1129735868 p:0x4003f7c3 a:0x1
-sched:idle0- -sched- 1103592368 0 1129735619 p:0x4003f7c3 a:0x0
-driver- -main- 1103330224 0 1129735575 p:0x40032156 a:0x0
-conn:unima2::17 -main- 1103068080 0 1129735575 ns:connthread {}
-conn:unima2::18 -main- 1102805936 0 1129735575 ns:connthread {}
-conn:unima2::19 -main- 1102543792 0 1129735575 ns:connthread {}
-conn:unima2::16 -main- 1102281648 0 1129735575 ns:connthread {}
-conn:unima2::15 -main- 1102019504 0 1129735575 ns:connthread {}
-conn:unima2::14 -main- 1101757360 0 1129735575 ns:connthread {}
-conn:unima2::13 -main- 1101495216 0 1129735575 ns:connthread {}
-conn:unima2::12 -main- 1101233072 0 1129735575 ns:connthread {}
-conn:unima2::11 -main- 1100970928 0 1129735575 ns:connthread {268055 
127.0.0.1 running POST /ds/shell 0.33016 0}
-conn:unima2::10 -main- 1100708784 0 1129735575 ns:connthread {}
-conn:unima2::9 -main- 1100446640 0 1129735575 ns:connthread {}
-conn:unima2::8 -main- 1100184496 0 1129735575 ns:connthread {}
-conn:unima2::7 -main- 1099922352 0 1129735575 ns:connthread {}
-conn:unima2::6 -main- 1099660208 0 1129735575 ns:connthread {}
-conn:unima2::5 -main- 1099398064 0 1129735575 ns:connthread {}
-conn:unima2::4 -main- 1099135920 0 1129735575 ns:connthread {}
-conn:unima2::3 -main- 1098873776 0 1129735575 ns:connthread {}
-conn:unima2::2 -main- 1098611632 0 1129735575 ns:connthread {}
-conn:unima2::1 -main- 1098349488 0 1129735575 ns:connthread {}
-conn:unima2::0 -main- 1098087344 0 1129735575 ns:connthread {}
-sched- -main- 1078913968 0 1129735509 p:0x4003f990 a:0x0
-main- {} 1076269184 1 1129735508 p:0x0 a:0x0


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> 
with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: 
field of your email blank.


[AOLSERVER] Performance-Problems

2005-10-20 Thread Nima Mazloumi

Hi Daniël,

please find below my postgres settings in the config.tcl.
Also I forgot to mention that for outgoing requests from the
nsd we use a proxy:

ns_param   proxy  www-cache.uni-mannheim.de
ns_param   proxy_port 3128

ns_param stacksize [expr 256*1024] ;# Per-thread stack size for hungry C 
modules. Increased to 256 for PHP.


Where do I find information about:
- performance mode
- memoize cache size

Greetings,
Nima

ns_section ns/db/pools
ns_param   pool1   "Pool 1" ;# main
ns_param   pool2   "Pool 2" ;# subqueries
ns_param   pool3   "Pool 3" ;# log

ns_section ns/db/pool/pool1
ns_param   maxidle10
ns_param   maxopen10
ns_param   connections24
ns_param   verbose$debug
ns_param   extendedtableinfo  true
ns_param   logsqlerrors   $debug
if { $database == "oracle" } {
ns_param   driver ora8
ns_param   datasource {}
ns_param   user   $db_name
ns_param   password   $db_password
} else {
ns_param   driver postgres
ns_param   datasource ${db_host}:${db_port}:${db_name}
ns_param   user   $db_user
ns_param   password   ""
}

ns_section ns/db/pool/pool2
ns_param   maxidle10
ns_param   maxopen10
ns_param   connections24
ns_param   verbose$debug
ns_param   extendedtableinfo  true
ns_param   logsqlerrors   $debug
if { $database == "oracle" } {
ns_param   driver ora8
ns_param   datasource {}
ns_param   user   $db_name
ns_param   password   $db_password
} else {
ns_param   driver postgres
ns_param   datasource ${db_host}:${db_port}:${db_name}
ns_param   user   $db_user
ns_param   password   ""
}

ns_section ns/db/pool/pool3
ns_param   maxidle10
ns_param   maxopen10
ns_param   connections4
ns_param   verbose$debug
ns_param   extendedtableinfo  true
ns_param   logsqlerrors   $debug
if { $database == "oracle" } {
ns_param   driver ora8
ns_param   datasource {}
ns_param   user   $db_name
ns_param   password   $db_password
} else {
ns_param   driver postgres
ns_param   datasource ${db_host}:${db_port}:${db_name}
ns_param   user   $db_user
ns_param   password   ""
}

ns_section ns/server/${server}/db
ns_param   pools  "*"
ns_param   defaultpoolpool1


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> 
with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: 
field of your email blank.


[AOLSERVER] Performance-Problems

2005-10-20 Thread Nima Mazloumi

Dear all,

we have problems with our aolserver installation and I was wondering if 
someone could give us some insight.

Please find the details below.

Any help or comment appreciated!

Thank you very much,
Nima Mazloumi

Fujitsu Siemens
4 GB Ram
2 Broadcom Gigabit Ethernet Driver bcm5700 with Broadcom NIC Extension 
(NICE) ver. 7.3.5

4 Intel(R) Xeon(TM) CPU 3.06GHz, L2 cache: 512K
200 GB Local disk and connection to 4 TB storage system

SuSE Linux 9.2
libhd version 9.31 (ia32)
Linux version 2.6.8-24.11-smp
AOLServer Version 4.0.10
PostgreSQL 7.4.8 (different box, same hardware specification)
OpenACS 5.1.4/dotLRN 2.1.1

We use pound as reverse proxy for SSL since we had problems with the SSL 
module of the AOLServer.


Here details from the config.tcl:
ns_parammaxconnections 100
ns_paramkeepalivetimeout   15
ns_parammaxdropped 0
ns_parammaxthreads 20
ns_paramminthreads 20
ns_paramthreadtimeout  3600

I have around 115 concurrent users and all CPUs are at 95%.

A single page to return takes around 11sec, usually its 400ms and less.

top says:
top - 15:54:08 up 25 days, 31 min,  2 users,  load average: 10.68, 
12.49, 12.18

Tasks: 116 total,   2 running, 114 sleeping,   0 stopped,   0 zombie
Cpu0  : 91.1% us,  2.3% sy,  0.0% ni,  1.3% id,  3.3% wa,  0.3% hi,  
1.7% si
Cpu1  : 77.6% us,  1.7% sy,  0.0% ni,  8.6% id, 12.2% wa,  0.0% hi,  
0.0% si
Cpu2  : 94.1% us,  2.0% sy,  0.0% ni,  2.0% id,  2.0% wa,  0.0% hi,  
0.0% si
Cpu3  : 80.1% us,  1.3% sy,  0.0% ni,  2.3% id, 16.2% wa,  0.0% hi,  
0.0% si

Mem:   4073116k total,  3964908k used,   108208k free,   118244k buffers
Swap:  3911816k total,60712k used,  3851104k free,  2895056k cached
PID USER  PR  NI  VIRT  RES  SHR S %CPU %MEMTIME+  COMMAND
root  16   0  1452  620 1276 S  0.3  0.0   6:00.33 syslogd
root  16   0   596   80  452 S  0.0  0.0   0:04.25 
init

root  RT   0 000 S  0.0  0.0   0:00.51 
migration/0 

root  34  19 000 S  0.0  0.0   0:00.31 
ksoftirqd/0 

root  RT   0 000 S  0.0  0.0   0:00.87 
migration/1 


root  34  19 000 S  0.0  0.0   0:00.02 ksoftirqd/1

The nsd is somewhere at the bottom:
unima224   0  769m 706m 7204 S  0.0 17.8   0:36.82   0:36 nsd

vmstat:
20  0  63320 104472 305588 255518821 2 34 4  7  
1 91  1
20  0  63320  99456 305588 255518800 085 1324  2839 96  
2  2  0


When I shutdown the nsd the cpus have no load.

There are several waiting network connections at localhost:ndmp:
netstat|grep ndmp|grep WAIT |wc
   3402040   27540

PostgreSQL is on a different box. The cpus there have only a load of 10%
tcpip_socket = true
max_connections = 100
#superuser_reserved_connections = 2
port = 5432
#unix_socket_directory = ''
#unix_socket_group = ''
#unix_socket_permissions = 0777 # octal
#virtual_host = ''  # what interface to listen on; defaults 
to any

#rendezvous_name = ''   # defaults to the computer name
#authentication_timeout = 60# 1-600, in seconds
#ssl = false
#password_encryption = true
#krb_server_keyfile = ''
#db_user_namespace = false
shared_buffers = 1000   # min 16, at least max_connections*2, 
8KB each

#sort_mem = 1024# min 64, size in KB
#vacuum_mem = 8192  # min 1024, size in KB
#max_fsm_pages = 2  # min max_fsm_relations*16, 6 bytes each
#max_fsm_relations = 1000   # min 100, ~50 bytes each
#max_files_per_process = 1000   # min 25
#preload_libraries = ''

PS AUX on webserver box:
USER   PID %CPU %MEM   VSZ  RSS TTY  STAT START   TIME COMMAND
root 1  0.0  0.0   596  180 ?SOct19   0:01 init [3] 
root 2  0.0  0.0 00 ?SOct19   0:33 [migration/0]

root 3  0.0  0.0 00 ?SN   Oct19   0:00 [ksoftirqd/0]
root 4  0.0  0.0 00 ?SOct19   0:00 [migration/1]
root 5  0.0  0.0 00 ?SN   Oct19   0:00 [ksoftirqd/1]
root 6  0.0  0.0 00 ?SOct19   0:00 [migration/2]
root 7  0.0  0.0 00 ?SN   Oct19   0:00 [ksoftirqd/2]
root 8  0.0  0.0 00 ?SOct19   0:00 [migration/3]
root 9  0.0  0.0 00 ?

[AOLSERVER] How to change the way the aolserver creates the request error messages

2004-04-13 Thread Nima Mazloumi
Hi all,

I have a question regarding the way the aolserver creates the request
error messges that are returned to the browser whenever an error occurs.
Which file is responsible for that and is there a way to change this
behavior?

I am using the aolserver with OpenACS and get these type of request errors
when ever my tcl code is bad.

Thanks in advance,
Nima


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: field of 
your email blank.