I have a web application, written in ColdFusion, which periodically starts using 100% of the server’s CPU and crashes the ColdFusion service.
Since I have been unable to reproduce the problem myself, I’d like to find a utility which will notify me by email when the CPU usage begins to climb, so I can hop on the server, look at FusionReactor to see what’s going on, and identify the misbehaving code.
I have Googled and have been unable to find a suitable utility, so I thought I’d ask whether other programmers have found a tool which can do this kind of monitoring. Given the specifics of my needs, I’d prefer not to write my own monitoring tool.
If you have other suggestions for approaching the overall problem, I’d love to hear those also.
Responses to answers:
Using Windows perfmon to trigger a command line sounds promising. Can anyone point me to a tutorial on how to do that?
We don’t have a monitoring system that is set up to receive SNMP traps.
We’re running ColdFusion 8 Standard Edition, which doesn’t include the ColdFusion performance monitoring tools– only Enterprise includes those.
Peter Boughton’s answer will probably enable me to solve the problem, but it doesn’t help me address the problem proactively as CPU starts to spike, so I’m still looking for a notification solution.
I had a similar problem a few weeks ago and was directed to a program called AlwaysUp.
http://www.coretechnologies.com/products/AlwaysUp/
Monitors any process by any combination of:
From here you can either restart the service, or send notification emails, or run a script to log things, etc.
They have a 30 day demo, I was sold on the 2nd day.. A good quick fix while you get to the bottom of the issue.