- Tomcat settings in tomcat.sh or tomcat.bat:
 |  |  |
 |
%_RUNJAVA% %TOMCAT_OPTS% -Dtomcat.home="%TOMCAT_HOME%" -Xms100000000 -Xmx200000000 org.apache.tomcat.startup.Tomcat %2 %3 %4 %5 %6 %7 %8 %9
|  |
 |  |  |
The freememory and heapsize paramter always depends on the Xms and Xmx
parameter.
 |  |  |
 |
<store-janitor class="org.apache.cocoon.components.store.StoreJanitorImpl" logger="root.store">
<parameter name="freememory" value="50000000"/>
<parameter name="heapsize" value="150000000"/>
<parameter name="cleanupthreadinterval" value="10"/>
<parameter name="threadpriority" value="5"/>
</store-janitor>
|  |
 |  |  |
The heapsize
_must_ be higher then the -Xms parameter and freememory
_between_ those both. If you set
the heapsize
lower then the -Xms parameter and freememory
very thin, then the cleanupthread
will work all the time and cause a high system load. If you set the heapsize
to close to the
Xmx paramter and freememory
to broad can cause a OutOfMemoryException. Somewhere in the middle
is always the best.
The cleanupthreadinterval
defines the interval of the background thread which
checks memory in seconds. Also this paramter should configured wisely. A to short interval can
cause also a high system load. The threadpriority
defines the priority of the
background thread. 1 is lowest level and 10 the highest.