Re: Effect of Heap Size on Performance?

2009-03-11 Thread Leon Rosenberg
On Wed, Mar 11, 2009 at 1:56 AM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: It's impossible to prevent at least some objects from eventually migrating to the OldGen, since anything that persists long enough will end up there after some number of minor GCs. But by choosing a

Re: Effect of Heap Size on Performance?

2009-03-11 Thread Oliver Schoett
Washburn, Brian J [IT] wrote: Also if the application is a web app with any kind of response time requirements I would strongly suggest that you use [set of four options] My suggestion is to first get a feel for the current gc behaviour with jstat on the server: jstat -gc -t

Re: Effect of Heap Size on Performance?

2009-03-11 Thread Taylan Develioglu
Chris, We have 100+ application servers in a loadbalancing (application based, not tomcat) setup. If servers are removed from the load balancing pool the others need to be able to pick up the load. So the number of concurrent users is highly dynamic. You can imagine the problem if we keep

RE: Effect of Heap Size on Performance?

2009-03-11 Thread Caldarale, Charles R
From: Taylan Develioglu [mailto:tdevelio...@ebuddy.com] Subject: Re: Effect of Heap Size on Performance? I think it also gives short-lived objects (for example short sessions) a longer time to 'die out', so they won't be moved to tenure because survivor space is increased and gc frequency

Re: Effect of Heap Size on Performance?

2009-03-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Taylan, On 3/5/2009 5:11 AM, Taylan Develioglu wrote: I always hold this as a ground rule: Increase heapsize as much as possible as long as: My rule has always been to run with the smallest heap you can get away with. We ran our main production

Re: Effect of Heap Size on Performance?

2009-03-10 Thread Leon Rosenberg
On Tue, Mar 10, 2009 at 3:41 PM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Taylan, On 3/5/2009 5:11 AM, Taylan Develioglu wrote: I always hold this as a ground rule: Increase heapsize as much as possible as long as: My rule has

RE: Effect of Heap Size on Performance?

2009-03-10 Thread Caldarale, Charles R
From: Christopher Schultz [mailto:ch...@christopherschultz.net] Subject: Re: Effect of Heap Size on Performance? A smaller heap means that you'll catch even small memory leaks faster. Good for debugging, but provokes more frequent GCs, so may not be optimal for production. I tend to use

RE: Effect of Heap Size on Performance?

2009-03-10 Thread Washburn, Brian J [IT]
if current experience is more than 4X normal which can cause extra artificial load. -Original Message- From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] Sent: Tuesday, March 10, 2009 9:57 AM To: Tomcat Users List Subject: RE: Effect of Heap Size on Performance? From: Christopher

RE: Effect of Heap Size on Performance?

2009-03-10 Thread Caldarale, Charles R
From: Washburn, Brian J [IT] [mailto:brian.j.washb...@sprint.com] Subject: RE: Effect of Heap Size on Performance? Also remember to statically size heap regions manually if you can as that will always improve GC performance Don't bet on that; doing so may force excessive minor GCs if you

RE: Effect of Heap Size on Performance?

2009-03-10 Thread Martin Gainty
. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. Date: Tue, 10 Mar 2009 15:54:11 +0100 Subject: Re: Effect of Heap Size on Performance

RE: Effect of Heap Size on Performance?

2009-03-10 Thread Caldarale, Charles R
From: Martin Gainty [mailto:mgai...@hotmail.com] Subject: RE: Effect of Heap Size on Performance? any rules of thumb to follow for restricting heap to eden (and not jumping the fence to permgen)? I think you're confusing PermGen with the old (aka tenured) generation. Only instances