This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Rational Purify Opinions

 
Paul Keohan
Ranch Hand
Posts: 411
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 25
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 411
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 411
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
amir kamal
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
" 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
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
oooops!!! sorry i forgot to disable the smily the correct value is
-XrunPureJVMPI:purify
 
Tom Johnson
Ranch Hand
Posts: 142
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic