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).
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
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
" 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!!!
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.