This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java Code Profiling

 
Mahesh Trikannad
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

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.

Regards
Mahesh
 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mahesh,

there is one JMETER which can help You. It's HPJMeter. You can download it from http://www.hp.com/products1/unix/java/hpjmeter/. It can be used to profile your application. I found it very useful in the past.

Best Regards,
KArol Muszynski
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic