Alexey Solofnenko-2 wrote:
> 
> No, each of two 4GB processes will have only a half of the objects under 
> the same load. And I heard that GC does not scale linear with heap size. 
> And this is without multi-threading performance considerations.  As 
> usual, your mileage may vary and only tests can tell for sure.
> 

It's not easy to measure gc time, especially if it is based on generational
gc algorithm which does NOT do gc for all objects. In addition, a single gc 
does not remove all obsolate objects. They are often removed at the second 
or third time gc. 

When you test, monitor IO activities as well, potentially stemming from 
virtual memory paging activities. It could be the one that makes
gc much longer.

Generally it's good to minimize object creation and use not too 
UNNECESSARILY large JVM heap. What many people practice
is to recyle objects and threads.

-- 
View this message in context: 
http://www.nabble.com/Tomcat-with-8-GB-memory-tf4149367.html#a11839991
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to