Post your setenv.sh and server.xml

#1

Hey,

I’m facing problems with Razuna - somewhen tomcat starts raising the systems load, after a while (2-3 min) there is no more reaction, load equals the cpu cores (so e.g. load 8 in a 8 cpu machine) and no requests will be served.There is no error log, no possibility to find out what’s wrong…

I tried a lot to find the problem, but at the end nothing helped.
So, what’s your configuration? Here’s mine:

setenv.sh:

xss = 128-256m
xms = 384 - 512m
xmx = 8-16g

server.xml:

<Connector port=“8080” protocol=“HTTP/1.1”

           connectionTimeout="2000"
           redirectPort="8443"
           maxPostSize="0"
           enableLookups="false"
           disableUploadTimeout="true"
           maxKeepAliveRequests="4"
           keepAliveTimeout="10000"
           useBodyEncodingForURI="true"
           compression="off"
           server="razuna"
           URIEncoding="UTF-8"
           maxSwallowSize="0"
           maxThreads="40"
           minSpareThreads="3"
           acceptCount="100"
           maxHttpHeaderSize="32768"
    />
#2

There is more to it than that in the setenv.sh. Show the whole string you pass. Also, always set xms and xmx to the same value for best performance. According to the memory on your system the value needs to be adjusted. If you have 16 GB memory installed you can do -xms-8g -xmx=8g

Server.xml should just be:

<Connector port="8080" protocol="HTTP/1.1"
		connectionTimeout="20000"
		redirectPort="8443"
		maxPostSize="-1"
		maxSavePostSize="-1"
		enableLookups="false"
		disableUploadTimeout="false"
		useBodyEncodingForURI="true"
		URIEncoding="UTF-8"
		compression="off"
		server="Razuna Application Server"
		maxThreads="400"
		minSpareThreads="25"
	/>