Recycle objects in TomCat, Performance gain?

2001-11-14 Thread Samuel Cheung
Hi, In TomCat's source code, I notice it recycles objects (e.g. RequestBase, StandardSession). But in Sun's documentation, with HotSpot Virtual machine, pooling objects will hinder performance (see below). Could someone please tell me are there advantages of using object pooling in TomCat?

Re: Recycle objects in TomCat, Performance gain?

2001-11-14 Thread costinm
On Wed, 14 Nov 2001, Samuel Cheung wrote: Hi, In TomCat's source code, I notice it recycles objects (e.g. RequestBase, StandardSession). But in Sun's documentation, with HotSpot Virtual machine, pooling objects will hinder performance (see below). Could someone please tell me are there

Re: Recycle objects in TomCat, Performance gain?

2001-11-14 Thread Paul Speed
There are several reasons to use pooling, including (but not limited to): -Eliminating object creation time -Managing expensive resources (really same as first) -Keeping memory usage constant (popular in embedded environments) -Reducing garbage collection Only the last one is addressed by the

Re: Recycle objects in TomCat, Performance gain?

2001-11-14 Thread Rickard Öberg
[EMAIL PROTECTED] wrote: Turning off recycling is quite easy ( just few lines to comment to prevent reseting the objects and reusing it ). The performance didn't go up - but down, about 30% ( under reasonable load ). The probable reason being that memery management isn't the only factor