tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Charles So <charles...@mac.com>
Subject Re: Strange session timeout
Date Thu, 01 May 2003 16:04:29 GMT
I tried putting another session timeout line in JSP/servlet file, and 
found that this line will out ride other settings such as server.xml, 
and web.xml


On Friday, May 2, 2003, at 12:00  AM, mike jackson wrote:

>> <session-config>
>>         <session-timeout>30</session-timeout>
>> </session-config>
>
> This is the way I've always set the session timeout.  If I remember
> correctly this is supposed to take precedence over whatever the
> servlet/jsp container is set for (according to the spec).
>
> --mikej
> -=------
> mike jackson
> mjackson@cdi-hq.com
>
>> -----Original Message-----
>> From: Eulogio Robles [mailto:eulogio.robles@mi.cl]
>> Sent: Wednesday, April 30, 2003 3:24 PM
>> To: tomcat-user@jakarta.apache.org
>> Subject: Strange session timeout
>>
>> I'm running Tomcat 4.1.24 / JDK 1.4.1_01-b01, on Linux Redhat.
>>
>> I'm getting some OutOfMemory exceptions, and we see a large number of
>> active sessions. The app is used by a few internal users.
>> When I list the application on the manager, I see this :
>>
>> OK - Session information for application at context path /myapp
>> Default maximum session inactive interval 3600 minutes
>>> =600 minutes:271 sessions
>>
>> However, If I deploy it on a different server (Compaq Tru64), same
> Tomcat
>> binarym
>> with identical web.xml and server.xml files, I get this :
>>
>> OK - Session information for application at context path /myapp
>> Default maximum session inactive interval 30 minutes
>> 30 - <40 minutes:7 sessions
>>
>> The web.xml app file has a session timeout parameter :
>> <session-config>
>>         <session-timeout>30</session-timeout>
>> </session-config>
>>
>> The session Manager for the Context is this :
>>
>> <Manager className="org.apache.catalina.session.StandardManager"
>> algorithm="MD5" checkInterval="60" debug="3"
>> duplicates="0" expiredSessions="0"
>> maxActive="119" maxActiveSessions="1000"
>> maxInactiveInterval="1800" pathname="SESSIONS.ser"
>> randomClass="java.security.SecureRandom" rejectedSessions="0"
>> sessionCounter="53">
>>
>> My question, what I'm missing? How do I set the session timeout to 30
>> minutes?
>>
>> best regards,
>>
>> E. Robles
>> Metropolis Intercom
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message