aspose file tools*
The moose likes Performance and the fly likes Rational Purify Opinions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Performance
Bookmark "Rational Purify Opinions" Watch "Rational Purify Opinions" New topic
Author

Rational Purify Opinions

Paul Keohan
Ranch Hand

Joined: Mar 15, 2000
Posts: 411
Has anybody got any opinions on this tool? I'm just starting to use it here and so far I haven't a clue what it's telling me. Is it worth continuing with?
Thanks.
Paul
Roger Thornhill
Author
Greenhorn

Joined: May 15, 2002
Posts: 25
Purify is VERY useful for spotting memory leaks in C and C++. For Java, I would imagine it is telling you things like: (a) how many instances of various objects are active during execution, (b) where those instances were allocated, (c) call graph information related to why the function that allocated them was called, etc.
In general, memory profiling tools like Purify help you identify the source of memory consumption inside your Java application. Leaks are less common in Java due to the GC, but they still happen, depending on the details of your application. Also, folks tend to use tools like Purify to optimize their memory usage (i.e., minimize it).
Paul Keohan
Ranch Hand

Joined: Mar 15, 2000
Posts: 411
Presumably if I run a Java GUI tool through Purify the, GUI will appear and I can use it as normal - while the Purify tool continues to monitor everything.
I have tried this and after wiating for ten minutes, while Purify seems to be monitoring stuff, I don't get my GUI up on the screen. Is this just slow moving because I've noticed that even the simplest possible program will take 5 secodns to complete in Purify?
Thanks for any input.
Paul
Paul Keohan
Ranch Hand

Joined: Mar 15, 2000
Posts: 411
I keep getting this error when I try to run my class from Purify. Can anybody tell me what I'm doing wrong? As far as I know, I have all my viewers and paths set up correctly.
Thanks.

java.lang.NoClassDefFoundError: Rational/QProfJ
Picked up _JAVA_OPTIONS: -XrunPureJVMPI urify
Nick Davidenko
Greenhorn

Joined: Oct 20, 2004
Posts: 5
Hello!
There are 2 execcellent articles at www.ibm.com. According to them I could set up and test my EAR app in WebSphere 4.0.x. Find and read them , and you'll find solution.


Originally posted by Paul Keohan:
Has anybody got any opinions on this tool? I'm just starting to use it here and so far I haven't a clue what it's telling me. Is it worth continuing with?

Thanks.

Paul


Best regards, <br />Nickolay<br /> <br />SCJP, SCWCD, SCBCD, SCEA, SCDJWS
amir kamal
Greenhorn

Joined: Sep 16, 2004
Posts: 3
" keep getting this error when I try to run my class from Purify. Can anybody tell me what I'm doing wrong? As far as I know, I have all my viewers and paths set up correctly.......
java.lang.NoClassDefFoundError: Rational/QProfJ"

set the windows environment class path with the variable name _JAVA_OPTIONS and value -XrunPureJVMPI urify and you are done!!!
amir kamal
Greenhorn

Joined: Sep 16, 2004
Posts: 3
oooops!!! sorry i forgot to disable the smily the correct value is
-XrunPureJVMPI:purify
Tom Johnson
Ranch Hand

Joined: May 11, 2005
Posts: 142
Hi
I have used Purify before and found that it slowed the application something awful. I am currently trying to use JProbe instead which a few of my colleagues have indicated is more robust. From initial use I agree with them.

/Tom


<a href="http://faq.javaranch.com/java/UseCodeTags" target="_blank" rel="nofollow">Use Code Tags!!</a>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Rational Purify Opinions