File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tool wanted

 
Sam Samson
Ranch Hand
Posts: 63
IntelliJ IDE Java jQuery
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

Does there exist a tool with that I can see how many objects are actually on the heap etc.?
I'm not sure, but I think VisualVM is not the right tool for that?
 
Jeff Verdegan
Bartender
Posts: 6109
6
Android IntelliJ IDE Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're looking for a profiler, such as JProfiler, JProbe, OptimizeIt, or the jvisualvm app that comes with the JDK download.
 
Jeff Verdegan
Bartender
Posts: 6109
6
Android IntelliJ IDE Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sam Samson wrote:
I'm not sure, but I think VisualVM is not the right tool for that?


Why do you think that? Have you tried it, or read about it?
 
Sam Samson
Ranch Hand
Posts: 63
IntelliJ IDE Java jQuery
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
VisualVM is a profiler too, isn't it? But I can't see an option which show me the actual created objects on the heap, and which are eligible for the garbage collector.
 
Jeff Verdegan
Bartender
Posts: 6109
6
Android IntelliJ IDE Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sam Samson wrote:VisualVM is a profiler too, isn't it?


Yes.

But I can't see an option which show me the actual created objects on the heap, and which are eligible for the garbage collector.


Application menu --> Heap Dump will show the instances. I'm not sure off the top of my head how to find which ones are GC-eligible or if that feature is even there. Feel free to read the docs, play around with it, google for tips, and try out the free versions of the others I mentioned.
 
Sam Samson
Ranch Hand
Posts: 63
IntelliJ IDE Java jQuery
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm testing it with VisualVM at the moment, but I'm not able to profile my main method. A workaround is to put it to sleep with Thread.sleep(1000000) , so I'm able to profile it.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic