Discussions

In this exclusive article for TheServerSide, Madhu Tanikella discusses various Java focussed profiling tools and their proper usage in web-based and enterprise Java applications, exploring how they will act and how they can be used by architects and engineers in order to help them resolve profiler integration issues while reducing the turn-around time in profiling activity.

In this exclusive article for TheServerSide, Madhu Tanikella discusses various Java focussed profiling tools and their proper usage in web-based and enterprise Java applications, exploring how they will act and how they can be used by architects and engineers in order to help them resolve profiler integration issues while reducing the turn-around time in profiling activity.

I'm mainly interested in CPU time but memory consumption would be interesting as well. I'd like to get CPU time breakdown (per package, class and method) for each request and for the entire execution call chain.

The article aims at uncovering some of the practical challenges while integrating any Java Profiling tool in general and hence no specific focus on any tool is given here.

For your requirement, I would suggest to go with Jprobe/JProfiler that support both CPU and Memory profiling. based on my experience, Eclipse TPTP is inferior to above tools in terms of usabaility aspects.

On the other hand, its a common misconception that many folks in IT carry that Profiling can be used anywhere and everywhere which is not right. Profiling tools are best suited only during Build/Dev phases as they are heavy in nature and hence they are not suitable in PROD environments. Troubleshooting any performance issue in PROD is a different ball game altogether which should be dealt with different tools and techniques depending on the need.

This article presents the challenges of using a fully-featured profiler. But such a profiler, while increadibly usefull, is rarely installed when you need it most (i.e. right now, when your customer calls you).

Enters MessAdmin. In addition to numerous detailed satistics about what's happening inside your application, it includes a light-weight no-frills CPU profiler that is ready to run on-demand. MessAdmin is incredibly light on system resources, so it can easily be installed in production without impacting the performance of your application. And its plugin architecture allows you to add your own probes should you need to.

TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations technology projects - with its network of technology-specific websites, events and online magazines.