1

Can someone suggest a good tomcat memory profiler? (I am trying to profile the memory usage of a JRuby on Rails app deployed on a Tomcat instance in a Windows machine).

2 Answers 2

3

You can use VisualVM which is part of the JDK - more recent versions can be downloaded from visualvm.java.net/.

Or you can use the integrated profiler from NetBeans which is essentially the same thing as VisualVM just with some additional features.

3

I personally use YourKit. You can download trial version and see if it is good for you.

Last time I checked VisualVM does not show aggregated numbers. This means that you can see that, for example, your app has 10000 allocations of int[] array but you have no clue where these come from. YourKit has Biggest objects (dominators) screen which is quite helpful; you can see which objects take the most memory overall.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.