This can backfire on you, due to the garbage collection. Adding a lot more 
memory sounds attractive, but Java does not reuse heap space until it is 
garbage collected. It will add things to the heap until the space is exhausted, 
and then start a garbage collection.

The more memory you have, the more abandoned objects there will be on the heap, 
and the longer the garbage collection will take. You'll see your response times 
run smoothly... With huge "hiccups" when the heap is exhausted.

Unless you have a large number of objects that you expect to be statically 
allocated over a long period of time, you're probably better off to leave the 
heap small, and have more, shorter, garbage collections. Your response will be 
much smoother across the GCs. 


-- 
Robert P. Nix           Mayo Foundation
RO-OC-1-13 (new loc)    200 First Street SW
507-284-0844            Rochester, MN 55905
-----
"In theory, theory and practice are the same, but
 in practice, theory and practice are different."

-----Original Message-----
From: Linux on 390 Port [mailto:[EMAIL PROTECTED] On Behalf Of Friedrichs, 
Jürgen
Sent: Friday, December 09, 2005 7:02 AM
To: [email protected]
Subject: zLinux/SLES9, WebSphere 6.x - recommended max. Java heapsize

Hello,

when using WebSphere 6.x with SLES9, is there a recommendation or physical 
limit on the JVM heapsize?
I was asked, if we could increase the Java heapsize when moving to SLES9/WAS6 
to a much higher value. I would guess that this is an issue of the Java memory 
handling (i.e. garbage collection) and therefore a question of performance!?

With kind regards

Juergen Friedrichs, Germany

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

Reply via email to