aspose file tools
The moose likes Performance and the fly likes How to know correct Xmx and Xms for heap allocation? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Mongo DB Applied Patterns this week in the MongoDB forum
or a resume review from Five Year Itch in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Performance
Reply Bookmark "How to know correct Xmx and Xms for heap allocation?" Watch "How to know correct Xmx and Xms for heap allocation?" New topic
Author

How to know correct Xmx and Xms for heap allocation?

Jackson Tan
Greenhorn

Joined: Jun 01, 2010
Posts: 8
I have read to use verbose:gc to know the correct values of xmx and xms but I don't know how to read the logs of the verbose gc? Can someone help me in knowing the correct values for Xmx? or direct me to a tutorial link using verbose gc preferably a video tutorial.. Thanks.
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12265
    
    1
I always take a pragmatic approach to memory allocation - fire it up with default memory and see what happens under load.

Then I have to balance versus the other requirements of the system - memory available, other processes that have to run, expected response times, etc. so I dont think there is a single magic answer.

Bill


Java Resources at www.wbrogden.com
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to know correct Xmx and Xms for heap allocation?
 
Similar Threads
Read runtime heap options at runtime
How to debug JBoss crashing
large difference between -Xms and -Xmx values in jvm
JVM process memory VS object heap memory
java.lang.OutOfMemoryError: Java heap space