All,
I have been working toward getting a new intranet site up using Stronghold
(Apache 1.3.14) and Tomcat 3.2.1. I finally have the environment working,
including load balancing across 4 ajp13 handlers (with help from this
maillist's archive articles since the doc isn't the clearest on this :-0).
Now I am trying to tweak the session timeout value because once a jsp
executes it's handler connection doesn't seem to close. Eventually, Tomcat
shuts down because it runs out of handlers. I'm assuming this means the
servlet session is not timing out. Viewing the netstat I see the sessions
in the ESTABLISHED state, but then never seem to close out, e.g.,
localhost.ajp13-1 localhost.22366 32768 0 32768 0
ESTABLISHED
localhost.22367 localhost.ajp13-2 32768 0 32768 0
ESTABLISHED
localhost.ajp13-2 localhost.22367 32768 0 32768 0
ESTABLISHED
localhost.22368 localhost.ajp13-3 32768 0 32768 0
ESTABLISHED
localhost.ajp13-3 localhost.22368 32768 0 32768 0
ESTABLISHED
localhost.22375 localhost.ajp13-4 32768 0 32768 0
ESTABLISHED
localhost.ajp13-4 localhost.22375 32768 0 32768 0
ESTABLISHED
localhost.22786 localhost.ajp13-1 32768 0 32768 0
ESTABLISHED
localhost.ajp13-1 localhost.22786 32768 0 32768 0
ESTABLISHED
localhost.22797 localhost.ajp13-2 32768 0 32768 0
ESTABLISHED
localhost.ajp13-2 localhost.22797 32768 0 32768 0
ESTABLISHED
localhost.22799 localhost.ajp13-3 32768 0 32768 0
ESTABLISHED
localhost.ajp13-3 localhost.22799 32768 0 32768 0
ESTABLISHED
localhost.22800 localhost.ajp13-4 32768 0 32768 0
ESTABLISHED
localhost.ajp13-4 localhost.22800 32768 0 32768 0
ESTABLISHED
I have updated the following to the web.xml file in Tomcat's conf directory:
<session-config>
<session-timeout>
6
</session-timeout>
</session-config>
and have modified the docBase in the server.xml to the following:
<Context path="/"
docBase="/www/pages/prod"
crossContext="false"
defaultSessionTimeOut="6"
debug="99"
reloadable="false" >
</Context>
The entire site is JSP driven and run out of the Apache document base rather
than the webapps directory. Do I need to put the web.xml file there? What
am I missing?
Thanks,
Ray
---------
Ray Hoff * Senior IT Architect * GATI * Motorola GCT
Office: (480) 441-2950 * Mobile: (602) 763-1057
Some of the human DNA behind DigitalDNA
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]