This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I am confused with the option that is given in Yourkit profiler. They have an option to explicitly force GC before taking a snapshot of memory.
Haven't we told time again that a GC cannot be forced? So what does this option mean?
Its not guaranteed to work but does (Sun VM) unless you explicitly disable it with a command line option (DisableExplicitGC). (You need to check your VM's documentation or just do it and observe the results ;-) )
Attach visual WM and force a GC and you can see the results, we do it all the time for debugging purposes.
Obviously writing a program relying on this behaviour is different, there's no guarantee it'll do anything.
"Eagles may soar but weasels don't get sucked into jet engines" SCJP 1.6, SCWCD 1.4, SCJD 1.5,SCBCD 5
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com