I have a very strange behavior with my dotLRN installation. There are huge performance differences if I login as an admin or as a normal user into the system. As soon as I give admin rights to a user his acess gets almost 10 times faster. This behavior is very strange.
For an Admin
- 4s login
- 3s to load a class
- 0s to load a php page
- 20s to login
- 25-30s to load a class
- endless to load a php page
- dotlrn 2.0.0b4 2.0.0b4
- PostgreSQL 7.3.4
- PHP 4.3.4
- AOLServer 3.3oas.1
- SuSE Linux 9.0 Kernel version 2.4.21-144-smp
- gcc version 3.3.1 (SuSE Linux)
- Siemens Fujitsu
- 4 CPU, each Intel(R) Xeon(TM) CPU 3.06GHz
- VGA compatible controller: ATI Technologies Inc Rage XL Bus
- 2 Ethernet controller: Broadcom Corporation NetXtreme BCM5704 Gigabit Ethernet
- 2 Fibre Channel: Emulex Corporation LP9000 Fibre Channel Host Adapter
Normal User - External Authenticated over PAM
The performance went down even for an admin when I added a second authority. It improved when I disabled the local and run dotLRN over pam external authentication. But now users have to wait far too long to see a page being rendered if at all.
The user management is done via PAM Authentication Driver. The batch synchronization uploaded 21000 users to the system. The authentication parameter SyncAddUsersToDotLrnP was set on 1.
Could this be the reason?
Can some kindly look at my system below and check what could be the reason for this?
Thank you very much. I really appreciate your help!
Software:
Hardware:
Memory and Swap Information:
total used free shared buffers cached
Mem: 4058928 3648248 410680 0 271168 2575920
-/+ buffers/cache: 801160 3257768
Swap: 3911816 0 3911816
Driver Space Usage:
Filesystem Size Used Avail Use% Mounted on /dev/md1 11G 2.9G 7.2G 29% / /dev/md0 198M 6.1M 182M 4% /boot /dev/sdc1 28G 1.4G 27G 5% /www /dev/sdc3 37G 768M 37G 3% /pgdata tmpfs 2.0G 0 2.0G 0% /dev/shm AFS 8.6G 0 8.6G 0% /afs
All important Config.tcl Seetings:
set httpport 8000
set httpsport 8443
set debug false
set homedir /opt/aolserver
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 nsrewrite ${bindir}/nsrewrite.so
ns_param libtdom ${bindir}/libtdom.so
ns_param php ${bindir}/libphp4.so
ns_param nsopenssl ${bindir}/nsopenssl.so
ns_param nsfts ${bindir}/nsfts.so
ns_param nspam ${bindir}/nspam.so
set directoryfile index.adp,index.tcl,index.php,index.html,index.htm
ns_param maxkeepalive 5
ns_param logroll on
ns_param maxbackup 5
ns_param debug $debug
ns_param mutexmeter true ;# measure lock contention
ns_param stacksize 500000
ns_param directoryfile $directoryfile
ns_param pageroot $pageroot
ns_param maxconnections 50
ns_param maxdropped 0
ns_param maxthreads 40
ns_param minthreads 40
ns_param threadtimeout 3600
ns_param globalstats false ;# Enable built-in statistics
ns_param urlstats false ;# Enable URL statistics
ns_param maxurlstats 1000 ;# Max number of URL's to do stats on
ns_param enableexpire false ;# Set "Expires: now" on all ADP's
ns_param enabledebug $debug ;# Allow Tclpro debugging with "?debug"
ns_param defaultparser fancy
ns_param map /*.php
ns_param map /*.php3
ns_param map /*.php4
ns_param timeout 120
ns_param address $address
ns_param hostname $hostname
ns_param port $httpport
# NSD-driven connections:
ns_param ServerPort $httpsport
ns_param ServerHostname $hostname
ns_param ServerAddress $address
ns_param ServerCertFile certfile.pem
ns_param ServerKeyFile keyfile.pem
ns_param ServerProtocols "SSLv2, SSLv3, TLSv1"
ns_param ServerCipherSuite "ALL:!ADH:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP"
ns_param ServerSessionCache false
ns_param ServerSessionCacheID 1
ns_param ServerSessionCacheSize 512
ns_param ServerSessionCacheTimeout 300
ns_param ServerPeerVerify true
ns_param ServerPeerVerifyDepth 3
ns_param ServerCADir ca
ns_param ServerCAFile ca.pem
ns_param ServerTrace false
# For listening and accepting SSL connections via Tcl/C API:
ns_param SockServerCertFile certfile.pem
ns_param SockServerKeyFile keyfile.pem
ns_param SockServerProtocols "SSLv2, SSLv3, TLSv1"
ns_param SockServerCipherSuite "ALL:!ADH:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP"
ns_param SockServerSessionCache false
ns_param SockServerSessionCacheID 2
ns_param SockServerSessionCacheSize 512
ns_param SockServerSessionCacheTimeout 300
ns_param SockServerPeerVerify false
ns_param SockServerPeerVerifyDepth 3
ns_param SockServerCADir internal_ca
ns_param SockServerCAFile internal_ca.pem
ns_param SockServerTrace true
# Outgoing SSL connections
ns_param SockClientCertFile certfile.pem
ns_param SockClientKeyFile keyfile.pem
ns_param SockClientProtocols "SSLv2, SSLv3, TLSv1"
ns_param SockClientCipherSuite "ALL:!ADH:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP"
ns_param SockClientSessionCache false
ns_param SockClientSessionCacheID 3
ns_param SockClientSessionCacheSize 512
ns_param SockClientSessionCacheTimeout 300
ns_param SockClientPeerVerify true
ns_param SockServerPeerVerifyDepth 3
ns_param SockClientCADir ca
ns_param SockClientCAFile ca.pem
ns_param SockClientTrace false
# OpenSSL library support:
ns_param SeedBytes 1024
ns_section ns/db/pools
ns_param pool1 "Pool 1"
ns_param pool2 "Pool 2"
ns_param pool3 "Pool 3"
ns_section ns/db/pool/pool1
ns_param maxidle 1000000000
ns_param maxopen 1000000000
ns_param connections 5
ns_param verbose $debug
ns_param extendedtableinfo true
ns_param logsqlerrors $debug
ns_section ns/db/pool/pool2
ns_param maxidle 1000000000
ns_param maxopen 1000000000
ns_param connections 5
ns_param verbose $debug
ns_param extendedtableinfo true
ns_param logsqlerrors $debug
ns_section ns/db/pool/pool3
ns_param maxidle 1000000000
ns_param maxopen 1000000000
ns_param connections 5
ns_param verbose $debug
ns_param extendedtableinfo true
ns_param logsqlerrors $debug
ns_section ns/server/${server}/db
ns_param pools "*"
ns_param defaultpool pool1
ns_param enablehostnamelookup true
ns_param logcombined true
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
ns_section ns/server/${server}/module/nsjava
ns_param enablejava off ;# Set to on to enable nsjava.
ns_param verbosejvm off ;# Same as command line -debug.
ns_param loglevel Notice
ns_param destroyjvm off ;# Destroy jvm on shutdown.
ns_param disablejitcompiler off
ns_param classpath /usr/local/jdk/jdk118_v1/lib/classes.zip:${bindir}/nsjava.jar:${pageroot}/webmail/java/activation.jar:${pageroot}/webmail/java/mail.jar:${pageroot}/webmail/java
ns_param PamDomain "aolserver"
Request notifications