• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

memory profiler recommendations?

 
Ranch Hand
Posts: 126
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I'm looking for a memory profiler, to help me track down a memory leak. Requirements are (in approximate order of precedence):

- must be able to debug processes running on remote (Solaris) machine
- free, or at least a free trial
- nice graphical output
- can pinpoint guilty line(s) in source files
- eclipse plugin

Thanks in Advance,
DM
 
author
Posts: 14112
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
We are using JProfiler. It's quite good and seems to fulfil most of your requirements. It's not free, but I think there is a trial.


- can pinpoint guilty line(s) in source files



I don't see how this would be even *possible*. As far as I can tell, the best a tool can do is tell you why an object isn't garbage collected - that is, where it is referenced from. (JProfiler does a fine job here).

It's impossible to automatically tell what's wrong with what code, though, because for that the tool had to understand the semantics. You typically have a whole chain of references that hold an object from being gc'ed, but to find out which link is the bad one takes the analysis of a developer.
 
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I personally find JProfiler very useful. It is not free (though cheaper than JProbe I think) but there is an evaluation version.

I did find an Eclipse plug-in, but it seems easier (for me) to execute JProfiler standalone (it controls startup and shutdown of my app server - Oracle OC4J in my case but many are supported).

I don't use it too frequently (less than I should) but the value gained when I do is well worth the license cost to my company.

One of the initial things I liked (having used an older version of JProbe) was just how easy and quick it was to get JProfiler up and running with a real application providing results that I could interpret easily. We are talking about 15-20 minutes from initial evaluation copy download. Through further usage more features become evident, but this ease of getting to a reasonable starting point was a big point in it's favour for me.

Of course, JProbe is excellent, and there are others. When I looked around (about a year ago) there didn't seem to be any open source / free to use products that gave anything like the value of the commercial products, but I may have missed something and things may have changed.

Cheers,
Simon
 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
NetBeans Profiler (formerly JFluid).
Obviously, not an Eclipse plugin...
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How about optimizeIt?
 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What you can find about optimizeit

http://shop.borland.com/dr/v2/ec_MAIN.Master

IMPORTANT NOTICE Borland has ceased developing new versions of Optimizeit and JDataStore ("Sunset Products"). The current version of each of the Sunset Products is the last release available to customers. No new versions or upgrades of the Sunset Products will be made available even if support has been purchased. Support for the Sunset Products is only available for a limited time and will cease in accordance with Borland's standard support policies and terms and conditions. By clicking below you agree that you have read and understand this notice.
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Fran�ois,
Welcome to JavaRanch!

We're pleased to have you here with us in the Performance forum, but there
are a few rules that need to be followed, and one is that proper names are
required. Please take a look at the
JavaRanch Naming Policy and
adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

You can change it here


Again, thanks for helping out.
-Ben
 
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you are trying to track down memory leak on a high transaction system where you can't afford the overhead of instrumentation or JVMTI/JVMPI you can try Auptyma's Java Application Monitor from http://www.auptyma.com

It takes a snapshot of your heap, and loads it to a built in database to provide you with a tree representation of your memory reachability

It has been succesfully used by quite a few customers to find memory leaks on their production systems where they could not afford the overhead of other tools (because sometimes you want to find and fix problems before they crash your system).

Regards,

Virag
 
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am not sure whether it has an eclipse plugin version,but definitely JPROBE is a nice tool.
[ February 20, 2007: Message edited by: Ulas Ergin ]
 
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

- can pinpoint guilty line(s) in source files



You can use NetBeans Profiler to profile a fragment of code (line no X to Y) or a specific method.

I suppose this is possible with most of the other mature profilers too.

Also, basic profiling info can be obtained from the Eclipse Testing and Performance Tools Platform too (it's free).
reply
    Bookmark Topic Watch Topic
  • New Topic