Hi everyone:
Most of my OpenACS sites are running just swimmingly, but one site is having very peculiar behavior.
Consistently since I've set up the site, it's been having issues where it just stops responding to web requests.
I have set up the keepalive scripts, and they restart the server whenever it becomes unavailable. However, the scripts seem to take a while to take effect -- like they are waiting for a timeout or something. Thus, when the restart happens, I get 5-7 restarts at the same time.
I have the keepalive script set up to email me when the server restarts. Here are the times from the recent restart (between 1/19/05 and 1/25/05):
1/19/05 10:46 PM
1/19/05 10:46 PM
1/19/05 10:46 PM
1/19/05 10:46 PM
1/19/05 10:47 PM
1/19/05 10:47 PM
1/20/05 4:14 PM
1/20/05 4:14 PM
1/20/05 4:14 PM
1/20/05 4:15 PM
1/20/05 4:15 PM
1/21/05 3:13 PM
1/21/05 3:13 PM
1/21/05 3:13 PM
1/21/05 3:14 PM
1/21/05 3:14 PM
1/21/05 3:14 PM
1/21/05 3:14 PM
1/21/05 3:15 PM
1/23/05 7:26 PM
1/24/05 2:14 PM
1/24/05 2:14 PM
1/24/05 2:14 PM
1/24/05 2:14 PM
1/24/05 2:14 PM
1/24/05 2:15 PM
1/25/05 10:46 AM
1/25/05 10:46 AM
1/25/05 10:46 AM
1/25/05 10:46 AM
1/25/05 10:47 AM
1/25/05 1:50 PM
1/25/05 1:50 PM
1/25/05 1:50 PM
1/25/05 1:50 PM
1/25/05 1:51 PM
1/25/05 1:51 PM
1/25/05 1:52 PM
One thing I did recently is set the server to restart once a night. That hasn't seemed to help. I'm disabling that now.
I currently have my crontab for the user owning the Aolserver process set as follows:
*/4 * * * * /bin/sh /var/lib/aolserver/usb/etc/keepalive/keepalive-cron.sh > /dev/null 2>&1
I will switch that now to */5 to see if that helps prevent the multiple restarts.
I've looked at the config.tcl file, and there are no substantial changes from the standard OpenACS 5.1.2 config.tcl file (I did a diff and compared them).
Any suggestions? Should I up the maxconnections or anything else here?
ns_section ns/server/${server}
ns_param directoryfile $directoryfile
ns_param pageroot $pageroot
ns_param maxconnections 5
ns_param maxdropped 0
ns_param maxthreads 5
ns_param minthreads 5
ns_param threadtimeout 120
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 directoryadp $pageroot/dirlist.adp ;# Choose one or the other
#ns_param directoryproc _ns_dirlist ;# ...but not both!
#ns_param directorylisting fancy ;# Can be simple or fancy
I would really appreciate some suggestions.