cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Bishop <d.bis...@waypointsystems.co.uk>
Subject Re: Scaling Cocoon to handle a heavy load
Date Thu, 26 Jan 2006 19:41:32 GMT
Hi Berin,

This sounds spot on, I shall do as you say and come back with any results.

Thanks!

Berin Loritsch wrote:

> See if these links help you at all:
>
> http://java.sun.com/docs/hotspot/index.html
> http://www.javaworld.com/javaworld/jw-01-2002/jw-0111-hotspotgc.html
> http://developer.apple.com/documentation/Java/Reference/Java14VMOptions/VM_Options/chapter_2_section_6.html

>
> http://performance.netbeans.org/reports/gc/
> http://edocs.bea.com/wls/docs61/perform/JVMTuning.html
>
> I would play around with some of the more fine controlled JVM settings.
>
> Berin Loritsch wrote:
>
>> Let me find the link that might be able to help you.  This is not 
>> necessarily a Tomcat/Cocoon issue--it has to do with Java's memory 
>> management.  You will get OutOfMemoryErrors even when you haven't 
>> exceeded the -Xmx2048m command with sufficient load.
>>
>> The problem has to do with the generational garbage collection that 
>> Java itself has.  Basically, your memory is divided up into 
>> buckets--if any of them fills up then you get an OutOfMemoryError 
>> thrown.  Under normal use, there is no problem.  The JVM has plenty 
>> of time to move stale object references from one GC bucket to the 
>> next.  In a web environment, you can experience peaks that might 
>> instantaneously throw you over the edge.
>>
>> There is a JVM setting that you can use to increase the bucket sizes 
>> for the generational garbage collection buckets, and that's what I 
>> would need to find the link to.
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message