Can I get a copy of this? >I've already done this. My bash script does two things. It checks a >specified URL for a certain string to see if CF is still responsive and >it also calls a cf script which reports back an integer that is the >amount of free JVM memory left. > >If a hang situation is detected the script will pause for a specified >amount of time and try again. If the second attempt fails then it >issues a restart command. I've also scripted a way to perform automatic >stack dumps (it can even find the proper PID on it's own) when when a >hang situation is detected. This way you can go into your logs and try >to figure out what went wrong. > >If your JVM memory usage creeps up and is causing unresponsive behavior >this script will also record the memory usage when memory reaches a >threshold that you set. It can also restart CF if the low memory >reaches a second threshold that you set. > >The script also logs everything into it's own log file in /var/logs/ so >you can track actions taken by the script. > >The reason I wrote this was that when we migrated from CF5 to CFMX 7 the >code base was so bad this was the only way to keep the server running. >It took me months to track down all the bugs and bad queries to get the >code stable. This is what can happen when there is no version control, >ten years of development, hacking and re-hacking by so many different >programmers that the owner can't name them all. Now we have SVN, good >programmers and a bug hound (me). > >Email me and I can send you a generic copy. > > >-- >Wil Genovese (The Juggler) > >One man with courage makes a majority. >-Andrew Jackson > >A fine is a tax for doing wrong. A tax is a fine for doing well.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Get involved in the latest ColdFusion discussions, product development sharing, and articles on the Adobe Labs wiki. http://labs/adobe.com/wiki/index.php/ColdFusion_8 Archive: http://www.houseoffusion.com/groups/CF-Linux/message.cfm/messageid:4341 Subscription: http://www.houseoffusion.com/groups/CF-Linux/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.14
