Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: David L.   on Feb 24 In Java Category.

  
Question Answered By: Mona Wagner   on Feb 24

If you want global information (e.g. your total memory or -Xm' are ok?)
call java with "-verbose:gc -Xloggc:/tmp/gc.log" and you will get a lot of
knowledge on how your system  works. Give "-incgc" a try, but most of the
time it sucks!

If you wana detailed information maybe you can use a memory profiler. Also
Java's system library has 'totalMemory()' and 'freeMemory()' witch can
help too.

Share: 

 

This Question has 2 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Problem work with System.gc (Explicit garbage collection) Or get search suggestion and latest updates.


Tagged: