[opencms-dev] Optimizing OpenCMS performance.

Nigel Kersten nigel at cofa.unsw.edu.au
Thu Jun 15 06:47:26 CEST 2006


We've started hitting a bit of a problem on our OpenCMS install where  
jsvc is taking up large amounts of CPU, and I was wondering whether  
anyone had any performance tips...

It seems to be related to users opening up and editing our largest  
XML schemas, which are quite complicated and nested.

I'm running apache2 with mod_proxy and Tomcat like this:

As a side-note, from reading up on this, it sounds like the suggested  
Alkacon config of acceptCount="100" is way too high, and I have  
noticed cpu usage drop once I brought it down to 20.

<Server port="8005" shutdown="SHUTDOWN" debug="0">
<Service name="Tomcat-Standalone">

<Connector port="8080"
                maxThreads="200" minSpareThreads="8"  
maxSpareThreads="50"
                enableLookups="false" redirectPort="8443"  
acceptCount="20"
                proxyName="opencms.cofa.unsw.edu.au" proxyPort="80"
                debug="0" connectionTimeout="20000"
                disableUploadTimeout="true" />
<Connector port="8081"
                maxThreads="200" minSpareThreads="8"  
maxSpareThreads="50"
                enableLookups="false" redirectPort="8443"  
acceptCount="20"
                proxyName="new.cofa.unsw.edu.au" proxyPort="80"
                debug="0" connectionTimeout="20000"
                disableUploadTimeout="true" />


<Engine name="Standalone" defaultHost="localhost" debug="0">
<Host name="localhost" debug="0" appBase="webapps" unpackWARs="true"  
autoDeploy="true">
<!-- You can change "unpackWARs" and "autoDeploy" to false after the  
installation is finished -->
<Logger className="org.apache.catalina.logger.FileLogger"
     directory="logs"  prefix="localhost_log." suffix=".txt"
     timestamp="true"/>
</Host>
</Engine>
</Service>
</Server>

local options for Tomcat are:

export JAVA_JVM_VERSION=1.5
export JAVA_OPTS="-Xms512m -Xmx2048m -Djava.awt.headless=true"

So we've got a fair amount of ram.

PhysMem:   229M wired,  603M active,  835M inactive, 1.63G used,  
1.37G free



-- 
Nigel Kersten [Senior Technical Officer]
College of Fine Arts, University of NSW, Australia.
CRICOS Provider Code: 00098G






More information about the opencms-dev mailing list