Hello everyone,
I'm having a hard time configuring
Tomcat. Seems like all effort I do results in memory errors after some hours.
What I want to understand is what exactly all connector settings stands for.
i.e.
maxThreads
acceptCount
connectionTimeout
minSpareThreads
maxSpareThreads
minProcessors
maxProcessors
my current setting is:
<Connector port="80" maxHttpHeaderSize="8192"
maxThreads="30" minSpareThreads="10" maxSpareThreads="10"
enableLookups="false" redirectPort="8443" acceptCount="30"
connectionTimeout="8000" disableUploadTimeout="true"
compression="on"
compressionMinSize="12000"
compressableMimeType="text/html,text/xml"
/>
I used to use the setting above with only 500MB in our server. But we got this upgrade to 1GB of RAM. The config above handled 1 or 2 days of uptime, with some latency at the rush hour. So, I thought it would be nice to "tune up" our server in order to use the additional memory better.
So I tried the config bellow. The app runned smoothly and fast with this new configuration, but crashed after 8h of up time. Generating out of memory errors.
I'm starting the server with those options:
JAVA_OPTS="-Xms350M -Xmx750M -verbose:gc -XX:+PrintGCDetails";