permaculture playing cards*
The moose likes Performance and the fly likes good code and memory profiler Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Performance
Bookmark "good code and memory profiler" Watch "good code and memory profiler" New topic
Author

good code and memory profiler

Steve Chambers
Greenhorn

Joined: Sep 19, 2006
Posts: 28
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

Joined: Jul 11, 2001
Posts: 14112
We are using JProfiler and are quite satisfied. Don't have much experience with other products, though.


The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Steve Chambers
Greenhorn

Joined: Sep 19, 2006
Posts: 28
In your opinion how is this product for analyzing static code, and dependencies?
hamlin stephen
Ranch Hand

Joined: Dec 11, 2003
Posts: 45
Please try
Borland's optimizeitsuite forjava
Ilja Preuss
author
Sheriff

Joined: Jul 11, 2001
Posts: 14112
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

Joined: Sep 19, 2006
Posts: 28
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

Joined: Nov 27, 2005
Posts: 71
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


<a href="http://www.auptyma.com" target="_blank" rel="nofollow">The Peak of Performance</a>
Steve Chambers
Greenhorn

Joined: Sep 19, 2006
Posts: 28
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

Joined: Apr 02, 2004
Posts: 884
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.


SCJP 1.4 * SCWCD 1.4 * SCBCD 1.3 * SCJA 1.0 * TOGAF 8
Virag Saksena
Ranch Hand

Joined: Nov 27, 2005
Posts: 71
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: good code and memory profiler