This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
The moose likes Other Open Source Projects and the fly likes Java Code Profiling Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Java Code Profiling" Watch "Java Code Profiling" New topic

Java Code Profiling

Mahesh Trikannad
Ranch Hand

Joined: Dec 14, 2004
Posts: 68

I am working on a Web application, that uses servlets and applets.

I want to profile the Java code, for memory leaks, performance issues and the like. Will JMETER help me do that.


Mahesh Trikannad
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42958
No. JMeter is a load-test tool. It can stress-test your application by generating a lot of load, and measure response times and throughput. But you still need to profile your code. Java has a built-in profiling tool -hprof- (which very much impacts performance, so you can't use it and still expect meaningful performance numbers), and an API for external tools (JVMPI). If you search through SourceForge you'll find plenty of options; I can't comment on their quality. One commercial tool I've heard good things about is JProbe.
KArol Muszynski
Ranch Hand

Joined: Aug 09, 2005
Posts: 45

there is one JMETER which can help You. It's HPJMeter. You can download it from It can be used to profile your application. I found it very useful in the past.

Best Regards,
KArol Muszynski
I agree. Here's the link:
subject: Java Code Profiling
It's not a secret anymore!