A few days ago I blogged about server monitor alerts in ColdFusion 8. I wanted to share a bit more information about them that I discovered this morning. Thanks to Tom Jordhal of Adobe for the help.
I was looking at alerts on my system today when I found that I needed to restart ColdFusion. When I did - and returned to my Server Monitor page, the alerts were gone! Turns out the list is stored in RAM and if you restart ColdFusion, the list goes away.
But there are two other places where you can look for information. First off - all events are logged to a file named monitor.log. Here are a few sample lines from my own server:
"Information","scheduler-2","07/24/07","15:32:00",,"X:\ColdFusion8\logs\monitor.log initialized"
"Information","scheduler-2","07/24/07","15:32:00",,"Alert: jvmmemoryalert: Dumped snapshot to file: X:\ColdFusion8\logs\snapshots\snapshot_sysgen_1185305520296.txt"
"Information","scheduler-2","07/24/07","15:32:00",,"Alert: JVM memory allocation has gone over threshold 300 MB"
"Information","scheduler-2","07/24/07","15:32:01",,"Alert: jvmmemoryalert: Email notification sent."
"Information","scheduler-2","07/24/07","15:33:01",,"Alert: JVM memory allocation recovered to under 300 MB"
"Information","scheduler-2","07/24/07","15:33:01",,"Alert: jvmmemoryalert: Email notification sent."
So there you can see the alerts as they were fired. But I was really concerned about the snapshots. Turns out they are stored to the file system, which is kind of obvious since I was able to view them in the broswer. As you can see from the log above, they are stored to:
<coldfusion root directory>/logs/snapshots
Lastly - I'm hoping next week to get a working example of a Jabber-based IM alert. Although something tells me that won't be the biggest news next week...
Archived Comments
SPOILER ALERT:
Lohan and Paris bust out of jail, Tango and Cash style.
Question: I'm pretty new to ColdFusion, but am more experienced running J2EE type boxes. I'm trying to set up a ColdFusion dev server on a VM with limited memory, and I'm trying to trim it back so that it doesn't pork out and use every bit of memory on any computer within a 10 mile radius. I.e. trying to get it so that it perhaps doesn't fire up all of the Flash remoting servlets or other things I don't need for basic CF functionality, in hopes that this might trim back the RAM usage. Any help you might be able to be on this?
Sorry - I don't believe you can shut stuff down like that. You can turn Flex Remoting support off in the CF Admin, but I'm not sure how 'deep' it shuts stuff off.