JVM optimized memory setting for server

2011-12-19 Thread Jim May
I have been doing some research on this topic and I know that there is quite a bit of information out there. Unfortunately, I usually do not notice articles that recommend JVM tuning setting for servers with X amount of memory. I have an issue with a production tomcat server that is running two

Re: JVM optimized memory setting for server

2011-12-19 Thread Stephen Connolly
you are not going to like this answer... every application is different. the memory required is the memory required. if you need more, give it more or redesign the app. there are tuning tips to trade large stop the world gc pauses for fewer shorter pauses and increased heap

Re: JVM optimized memory setting for server

2011-12-19 Thread Stephen Connolly
if the server us dedicated and has 8gb of ram... you could give 6gb (or 3g if a 32bit os as more will nor be used on 32bit os)... BUT when the stop the world big Garbage Collection triggers (and it will trigger eventually as the last resort to resolve heap fragmentation) then that gc will be 6

Re: JVM optimized memory setting for server

2011-12-19 Thread Mark Struberg
:) LieGrue, strub - Original Message - From: Stephen Connolly stephen.alan.conno...@gmail.com To: MyFaces Discussion users@myfaces.apache.org Cc: Sent: Monday, December 19, 2011 9:11 PM Subject: Re: JVM optimized memory setting for server if the server us dedicated and has 8gb

Re: JVM optimized memory setting for server

2011-12-19 Thread Stephen Connolly
optimized memory setting for server if the server us dedicated and has 8gb of ram... you could give 6gb (or 3g if a 32bit os as more will nor be used on 32bit os)... BUT when the stop the world big Garbage Collection triggers (and it will trigger eventually as the last resort to resolve heap

Re: JVM optimized memory setting for server

2011-12-19 Thread Anton Gavazuk
with this stuff nowadays anymore though :) LieGrue, strub - Original Message - From: Stephen Connolly stephen.alan.conno...@gmail.com To: MyFaces Discussion users@myfaces.apache.org Cc: Sent: Monday, December 19, 2011 9:11 PM Subject: Re: JVM optimized memory setting for server

Re: JVM optimized memory setting for server

2011-12-19 Thread Ted
use the concurrent garbace collector can mitigate stop-the-world, you can configure where the concurrent process starts so most of the time stop the world never actually takes place. But, back to the original problem of exporting, you may wish to stream the data instead of reading it all into

Re: JVM optimized memory setting for server

2011-12-19 Thread Stephen Connolly
On 20 December 2011 00:01, Ted r6squee...@gmail.com wrote: use the concurrent garbace collector can mitigate stop-the-world, you can configure where the concurrent process starts so most of the time stop the world never actually takes place. NOTHING you can do will prevent the major stop the

Re: JVM optimized memory setting for server

2011-12-19 Thread Ted
I did use the word mitigate :) secondly yes you can almost prevent it with the concurrent collector. The concurrent collector will not stop-the-world unless it can not keep up or due to not-enough-contiguous free space. So the simple example would be : 1) your application uses at most 64 megs of