Hi,
I have experienced some problems while testing the tomcat 5.0.28 on
linux. After the restart the tomcat is running without any problems.
After 3 to 4 hours
the server load starts to increase. Even though the server load is very
high (30), the tomcat response time is very good. I assume that there
is a some kind of problem with background
thread which increases the load because the server still provides the
service. I have decreased the server load to 10 with configuring the
maxSpareThread-value to same as maxThreads-value.
The server handles about 10-20 req/sec, so maybe the maxThreads-value is
too high. The same web application is running fluently with version
4.0.6 on another application server. The garbage collection takes
about 0.1 secs to complete and full garbage collection takes about 1-2
seconds.
The running java process count is 222.
I included changes to the configuration files which I have done:
System information:
Linux 2.4.18 #1 Fri May 17 17:08:04 EEST 2002
java version "1.4.2_03"
tomcat 5.0.28
I have added following lines to catalina.sh :
ulimit -s 2048 # suggested on Release-notes
JAVA_OPTS="-Xms512M -Xmx1024M -server -verbose:gc" # provide more memory
and inform about the garbage collection
export LD_ASSUME_KERNEL="2.2.5" # suggested on Release-notes
server.xml looks like this:
<Connector port="8080"
maxThreads="200" minSpareThreads="100" maxSpareThreads="200"
enableLookups="false" redirectPort="8443" acceptCount="75"
debug="0" connectionTimeout="20000"
proxyPort="80" proxyName="www.our_service_name.com"
disableUploadTimeout="false" />
....
<Context path="" docBase="/doc/path" debug="0" reloadable="false"
liveDeploy="false" swallowOutput="false" />
web.xml looks like this:
<servlet>
<servlet-name>jsp</servlet-name>
<servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
<init-param>
<param-name>fork</param-name>
<param-value>false</param-value>
</init-param>
<init-param>
<param-name>xpoweredBy</param-name>
<param-value>false</param-value>
</init-param>
<init-param>
<param-name>enablePooling</param-name>
<param-value>false</param-value>
</init-param>
<load-on-startup>3</load-on-startup>
</servlet>
I am running out of configuration ideas so I hope somebody could provide
information about the load problem
Yours,
- Jouko
---------------------------------------------------
Jouko Johansson
software engineer
Infosto Oy / SanomaWSOY konserni
Pyh�ranta 7, 33211 Tampere, Finland
Email: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]