| Author |
Darned Connector Settings
|
Fabio Fonseca
Greenhorn
Joined: Jan 19, 2006
Posts: 29
|
|
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";
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56201
|
|
|
Sounds more like a memory leak in your program rather than a config issue.
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
Fabio Fonseca
Greenhorn
Joined: Jan 19, 2006
Posts: 29
|
|
Bear, memory solved the problem. Just to turn our app on costs 420MB. Yesterday, by using the old configuration we handled all incoming smoothly. But I still want to understand the connector settings properly. I still don't get what those items stands for: maxThreads acceptCount connectionTimeout minSpareThreads maxSpareThreads minProcessors maxProcessors
|
 |
 |
|
|
subject: Darned Connector Settings
|
|
|