Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

good code and memory profiler

 
Steve Chambers
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can someone steer me in the right direction for a good code and memory profiler? Cost is no issue (i.e. I don't want it to be a free version of one).

Thanks
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We are using JProfiler and are quite satisfied. Don't have much experience with other products, though.
 
Steve Chambers
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In your opinion how is this product for analyzing static code, and dependencies?
 
hamlin stephen
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please try
Borland's optimizeitsuite forjava
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Steve Chambers:
In your opinion how is this product for analyzing static code, and dependencies?


Not at all. It's a profiler, not a static code analyzer.

Perhaps it would help if you told us what you actually want to do with the tool...
 
Steve Chambers
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want a tool to profile my programs (memory, garbage collection). Along with this I also want to do static code analysis. Is there a tool out there where I can do both of these things or do I have to purchase seperate tools?
 
Virag Saksena
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Steve,
Are you looking to do a first cut dev env optimization, or looking for visibility into high transaction production env ?

Regards,

Virag

The Peak of Performance
 
Steve Chambers
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The product would ideally be used in the dev environment and also in the testing environment. Does this answer your question Virag?
 
Chengwei Lee
Ranch Hand
Posts: 884
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would recommend Quest JProbe Suite. They've a memory debugger to check for memory leaks & a profiler to find bottlenecks. One thing to note is that your system needs to be powerful enough, especially if you're working on J2EE.
 
Virag Saksena
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Steve,
Thanks for the clarification. In the development environment, you'll probably run it in single user mode, and can afford to take the hit of JVMPI/JVMTI. Something which integrates well with your IDE would work well, like NetBeans IDE Profiler.

When running in a test environment, the overhead of JVMPI/AOP based profilers becomes significant, specially when running a multi-user load test. When you are willing to live with 20-30% overhead, you can try byte code instrumentation. For true scalability tests, where you want the overhead of the analysis to be below 1%, you could consider Auptyma's Java Application Monitor.

With bytecode instrumentation, you can get lower overheads but you'll need to get experts who'll only be focused on optimizing the instrumentation points without sacrificing visibility.

Hope that helps.
 
Jordan Josh
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ranchers ,

Is there any free profile which can be plugged in with Eclipse ? I am thinking about Visual Vm .. Eclipse TPTP is in archieve mode... Also tryingfind the usability of jconsole with eclipse...Please suggest me which free tool should i i use ?

Regards
Jordan
 
Mohamed Sanaulla
Saloon Keeper
Posts: 3159
33
Google App Engine Java Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Waking up a very old thread!

Please check this http://www.coderanch.com/t/643434/Performance/java/Eclipse-TPTP-visual-Vm. It is a very recent query posted, very relevant to what you have asked.

Anyways JConsole doesn't have profiling features. It supports monitoring the java application via JMX port. This things you can monitor there are CPU usage, Heap Usage, GC Collection times and frequencies, Threads and their status.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic