cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Newland" <chris.newl...@emorphia.com>
Subject Need help understanding C2 memory management
Date Tue, 09 Oct 2001 10:37:04 GMT
Hi all,

I'm having great trouble configuring my Cocoon2b2 MRUMemoryStores. I have a
fast machine with 2GB of memory serving up a handful of tiny pages. After
load testing 20 concurrent users for over 30 minutes, the system runs out of
memory.

I've set the MRUMemoryStores to use thread priority 10 for GC and to cleanup
every 10 seconds but no GC activity appears to be occurring.

Please can somebody explain why the parameters are redefined in each
MRUMemoryStore configuration in cocoon.xconf?

Why do we have both freememory and heapsize defined?

Doesn't freememory = -Xmx value - MRU heapsize?

Any advice would be greatly appreciated.

Thanks,

Chris

Here are my settings:

JVM (Sun 1.3.1_01 on Linux) options = -Xms500M and -Xmx1000M

Here are my MRUMemoryStore settings from cocoon.xconf :

  <store class="org.apache.cocoon.components.store.MRUMemoryStore">
     <parameter name="freememory"  value="30000000"/>
     <parameter name="heapsize"   value="700000000"/>
     <parameter name="cleanupthreadinterval" value="10"/>
     <parameter name="maxobjects" value="100"/>
     <parameter name="usecleanupthread" value="true"/>
     <parameter name="threadpriority" value="10"/>
     <parameter name="filesystem" value="false"/>
  </store>

  <stream-cache class="org.apache.cocoon.components.store.MRUMemoryStore">
     <parameter name="freememory"  value="30000000"/>
     <parameter name="heapsize"   value="700000000"/>
     <parameter name="cleanupthreadinterval" value="10"/>
     <parameter name="maxobjects" value="100"/>
     <parameter name="usecleanupthread" value="true"/>
     <parameter name="threadpriority" value="10"/>
     <parameter name="filesystem" value="false"/>
  </stream-cache>

  <event-cache class="org.apache.cocoon.components.store.MRUMemoryStore">
     <parameter name="freememory"  value="30000000"/>
     <parameter name="heapsize"   value="700000000"/>
     <parameter name="cleanupthreadinterval" value="10"/>
     <parameter name="maxobjects" value="100"/>
     <parameter name="usecleanupthread" value="true"/>
     <parameter name="threadpriority" value="10"/>
     <parameter name="filesystem" value="false"/>
  </event-cache>



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


Mime
View raw message