Hi,

Please take a look at this: http://java.sun.com/javase/6/docs/technotes/guides/vm/gc-ergonomics.html

*maximum heap size:*

   Smaller of 1/4th of the physical memory or 1GB. Before J2SE 5.0, the
   default maximum heap size was 64MB. You can override this default
   using the |-Xmx| command-line option.


It does not mean just only use 1/4th, it will increase overload to system if more than 1/4th of the physical memory.

 If you had more practical setting , please tell me.

Kind regards,
Mercy


On 05/17/2010 06:49 PM, Pid wrote:
On 17/05/2010 10:29, Mercy wrote:
Hi,

     You could set the one fourth of physical memory size(the recommended
heap size) for -Xms,-Xmx arguments.
Where does this recommendation come from?

It would mean that with 16Gb of RAM one should only use 4Gb for the heap.


p

What's more, you also analyze the heap using jmap.

Mercy

On 05/17/2010 05:16 PM, André Warnier wrote:
Ozgur Ozdemircili wrote:
Hi,

-Rhel 5.3 x64

-java version "1.6.0_16"
Java(TM) SE Runtime Environment (build 1.6.0_16-b01)
Java HotSpot(TM) 64-Bit Server VM (build 14.2-b01, mixed mode)

-Apache tomcat 6.0.26

-Dual core Intel(R) Xeon(R) CPU E3110  @ 3.00GHz  and 4 GB memory each.

Hè ? do you mean 4 Gb or 8GB total RAM ?

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Reply via email to