server availibility was enhanced. Is there still another configuration parameter which could decrease the load under 1.0 or do
we need to buy better hardware ;)
So thank you for your help,
Jouko
Shapira, Yoav wrote:
Hi, It's kind of hard to help with a non-existent tomcat version ;)
Do things improve if you set fork to true for your JSP servlet?
Tomcat 4 and 5 have different memory models, different optimization, etc, so the performance characteristics for the same app under the same load will not be the same between them. They should be better in tomcat 5, of course.
Yoav Shapira Millennium Research Informatics
-----Original Message----- From: Jouko Johansson [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 15, 2004 6:18 AM To: Tomcat Users List Subject: high server load
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]
This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--
--------------------------------------------------- Jouko Johansson software engineer Infosto Oy / SanomaWSOY konserni Pyh�ranta 7, 33211 Tampere, Finland Email: [EMAIL PROTECTED] Puh : +358 3 2524 525 Mob :+358 40 578 57 58
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
