[jboss-user] [Performance Tuning] - Re: Best JVM memory size?

2007-02-20 Thread jerrynolan
Thanks Peter, Very interesting... I'll experiment with the premise that if a certain percentage of the heap is swapped, it's OK, because it will not be used anyway. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4019330#4019330 Reply to the post : http:/

[jboss-user] [Performance Tuning] - Re: Best JVM memory size?

2007-02-19 Thread PeterJ
Actually, if you allocate 1GB of heap, it will never all be used. For example, with a young generation of 300MB, once the heap size reaches 700MB, on the next GC a full GC will be done. Why? Because the Sun JVM makes the pessimistic assumption that all objects in the young generation will survi

[jboss-user] [Performance Tuning] - Re: Best JVM memory size?

2007-02-19 Thread jerrynolan
Peter, I'm a bit confused by your answer, that if you have 1 gig of ram on a box it's ok to set the heap to 1 gig. Through reading your other postings I know that you have coded your own JVM based on Sun's source, so you know your stuff. And I know that you know the heap is just the new and ten

[jboss-user] [Performance Tuning] - Re: Best JVM memory size?

2007-01-22 Thread PeterJ
Our rule is thumb is to not set the heap larger than the amount of RAM on the machine. Note that the Sun JVM will never use all of the heap allocated due to its algorithm for determining when to do a major collection, so even in a 1GB system setting the heap to 1GB still leaves enough free RAM