Monday 7 November 2011

Tomcat CPU Hog Monitoring service

Have you ever been in this kind of trouble? You use Tomcat as the servlet container. In general your web service runs smoothly, however it has CPU hog issue randomly on the production server of your customer. You are told it is not a load issue (CPU is expected high when there is a huge demand for your service, it can only be solved by load balancing) which means your Java coding may have a bug or bad design. The problem is, you are unable to reproduce this issue in your environment, and even your customer can’t reproduce it on purpose.


Anyway, the issue does happen, but no pattern at all. You are under a big pressure to sort it out quickly, what can you do?


Struggled and frustrated? Don’t worry, NanoFish comes to rescue!


Please check this PDF version for the details. You can download the binary and source code, I wish they are helpful.