froehlich 02/01/28 11:58:13
Modified: src/webapp cocoon.xconf
Log:
ok I hope I fixed the problem now:
The number of objects which are freed out of the Store
is calculated now. It take a configurable percentage
of stored objects. For i.e: 10% and 1000 objects, then
the StoreJanitor free out 100 objects!
Revision Changes Path
1.14 +13 -12 xml-cocoon2/src/webapp/cocoon.xconf
Index: cocoon.xconf
===================================================================
RCS file: /home/cvs/xml-cocoon2/src/webapp/cocoon.xconf,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- cocoon.xconf 28 Jan 2002 11:13:07 -0000 1.13
+++ cocoon.xconf 28 Jan 2002 19:58:13 -0000 1.14
@@ -27,24 +27,18 @@
<!-- ============================ STORE ============================ -->
- <!-- Storing:
- maxobjects: Indicates how many objects will be hold in the cache.
- When the number of maxobjects has been reached. The
- last object in the cache will be thrown out.
- filesystem: Turns the filesystem storage for objects on or off.
- -->
+ <!-- Memory Storing: -->
<store class="org.apache.cocoon.components.store.MRUMemoryStore"
logger="core.store">
+ <!-- Indicates how many objects will be hold in the cache.
+ When the number of maxobjects has been reached. The last object in the
+ cache will be thrown out. -->
<parameter name="maxobjects" value="100"/>
+ <!-- Turns the filesystem swapping on and off -->
<parameter name="filesystem" value="true"/>
</store>
<!-- Store Janitor:
- freememory = How much free memory shall be available in the jvm
- heapsize = Indicates the limit of the jvm memory consumption
- cleanupthreadinterval = How often shall the cleanup thread check memory
- threadpriority = Indicates the thread priority of the cleanup thread
-
Be careful with the heapsize and freememory paramters. Wrong values can
cause high cpu usage.
Example configuration:
@@ -62,11 +56,18 @@
-->
<store-janitor class="org.apache.cocoon.components.store.StoreJanitorImpl"
logger="core.store-janitor">
+ <!-- How much free memory shall be available in the jvm -->
<parameter name="freememory" value="1000000"/>
- <!-- default max heapsize for Sun's JVM is 64Mb -->
+ <!-- Indicates the limit of the jvm memory consumption. The default max
+ heapsize for Sun's JVM is 64Mb -->
<parameter name="heapsize" value="67108864"/>
+ <!-- How often shall the cleanup thread check memory -->
<parameter name="cleanupthreadinterval" value="10"/>
+ <!-- Indicates the thread priority of the cleanup thread -->
<parameter name="threadpriority" value="5"/>
+ <!-- How much percent of the elements of each registered Store shall
+ be removed. Default 10% -->
+ <parameter name="percent_to_free" value="10"/>
</store-janitor>
<!-- ============================ STORE END ========================= -->
----------------------------------------------------------------------
In case of troubles, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]