Re: Strange intermittent WebDNA problems
This WebDNA talk-list message is from 2008
It keeps the original formatting.
numero = 70074
interpreted = N
texte = >We're only having trouble with the server running OS X 104.11. We have another on red Hat that is still quite stable.We found _some_ relief by moving a few of the bigger db's (3 megs+) to MySQL, but we still have multiple crashes each day. Usually, the worst day is Saturday which is the day of our lightest traffic.Running this script has helped keep the problem mostly invisible to users.#!/bin/sh## Threshold of CPU % activity ##CPU_LIMIT=145;## number of times in a row this threshold must be reached ##THRESHOLD=2;## time between checks ##SLEEP_TIME=5;## Other non user-edit stuff ##COUNTER=0;AGAIN=0;while true; do { LINE=`ps -aux | grep 'WebCatalog -m' | grep -v grep ` CPU=`echo $LINE | awk '{print int($3)}'`#echo "cpu "$CPU;#echo "n_times "$COUNTER;if [ $CPU -gt $CPU_LIMIT ]; then COUNTER=`expr $COUNTER + 1`; if [ $AGAIN -gt 0 ]; then# echo "again "$AGAIN; if [ $COUNTER -gt $THRESHOLD ]; then PID=`echo $LINE | awk '{print $2}'` date kill -9 $PID COUNTER=0; AGAIN=0; fielse ### [ AGAIN == 0 ] AGAIN=1; fielse ### [ $CPU lt $CPU_LIMIT ] AGAIN=0; COUNTER=0; fi sleep $SLEEP_TIME;}done~ ~> Both our servers has been running without a hickup for several > years, and both stopped serving WebDNA pages the very exact same > day about two weeks ago. A restart cured the problem, but ever > since we have seen these intermittent blackouts, with no WebDNA > engine running.>> We have plenty of disk space and plenty of RAM on both servers, and > most of our dbs are really small. Traffic is low these days, since > we are not developing any new sites in WebDNA, and most of the old > ones has been converted to other languages.>> Both servers running Mac OS X, one on 10.3.9 and one 10.4.9.>> Best,> Christer>> -------------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list
.> To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to digest@talk.smithmicro.com>> Web Archive of this list is at: http://webdna.smithmicro.com/-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Associated Messages, from the most recent to the oldest:
>We're only having trouble with the server running OS X 104.11. We have another on red Hat that is still quite stable.We found _some_ relief by moving a few of the bigger db's (3 megs+) to MySQL, but we still have multiple crashes each day. Usually, the worst day is Saturday which is the day of our lightest traffic.Running this script has helped keep the problem mostly invisible to users.#!/bin/sh## Threshold of CPU % activity ##CPU_LIMIT=145;## number of times in a row this threshold must be reached ##THRESHOLD=2;## time between checks ##SLEEP_TIME=5;## Other non user-edit stuff ##COUNTER=0;AGAIN=0;while true; do { LINE=`ps -aux | grep 'WebCatalog -m' | grep -v grep ` CPU=`echo $LINE | awk '{print int($3)}'`#echo "cpu "$CPU;#echo "n_times "$COUNTER;if [ $CPU -gt $CPU_LIMIT ]; then COUNTER=`expr $COUNTER + 1`; if [ $AGAIN -gt 0 ]; then# echo "again "$AGAIN; if [ $COUNTER -gt $THRESHOLD ]; then PID=`echo $LINE | awk '{print $2}'` date kill -9 $PID COUNTER=0; AGAIN=0; fielse ### [ AGAIN == 0 ] AGAIN=1; fielse ### [ $CPU lt $CPU_LIMIT ] AGAIN=0; COUNTER=0; fi sleep $SLEEP_TIME;}done~ ~> Both our servers has been running without a hickup for several > years, and both stopped serving WebDNA pages the very exact same > day about two weeks ago. A restart cured the problem, but ever > since we have seen these intermittent blackouts, with no WebDNA > engine running.>> We have plenty of disk space and plenty of RAM on both servers, and > most of our dbs are really small. Traffic is low these days, since > we are not developing any new sites in WebDNA, and most of the old > ones has been converted to other languages.>> Both servers running Mac OS X, one on 10.3.9 and one 10.4.9.>> Best,> Christer>> -------------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list .> To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to digest@talk.smithmicro.com>> Web Archive of this list is at: http://webdna.smithmicro.com/-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Phil Herring
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
Search/sort in URL Was: GuestBook example (1997)
Prevent multiple appends with Reload Button (1997)
SSL Certs (2003)
Creating a back button (1999)
[WebDNA] Feature Request: [returnhtml] (2016)
HTML Editors (1997)
Huge databases and RAM (1998)
I need Typhoon Pro Tonight! (1999)
Thanks Grant (1997)
Was code to phantom spacing -- now BBEdit [!][/!] (2001)
ServerQuestion (2000)
Email Format (Umlaut) (2004)
2.0 Info (1997)
trouble updating records in database (1998)
FEATURE REQUEST: (was: Summarizing results. Is there a shortcut? (1999)
Using Plug-In while running 1.6.1 (1997)
WebCat2b12 - New features for 1.6 users ... (1997)
WC Database Format (1997)
[lookup] vs. [search] (1998)
syntax question, not in online refernce (1997)