tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: disabling session management
Date Fri, 08 Oct 2010 14:35:21 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Emerson,

On 10/8/2010 10:25 AM, emerson wrote:
> We been doing some tuning on our TC environment and noticed that
> tomcat is holding 30 megabytes of classes related to session
> management.

Which classes, specifically?

> This is on our middletier servler, where sessions are irrelevant.

Okay, great.

> Is there a way to disabled session management for this server?

Don't call request.getSession(). If you have JSPs (in a middle tier?),
make sure they all have session="false" in their <@page> directives.

> What is the impact of using session-timeout = 0?

Your sessions will never time out, and your problem will likely get worse.

> We currently use 30 minutes for the session-timeout.

You could always set it to 1 minute just to be sure they don't last very
long if they are accidentally created.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkyvLCgACgkQ9CaO5/Lv0PCOYgCfZTNhOQlUiCkqJ17HAjkOuBqp
AP0Aniew/AE4rFaoKkTwGJGq5uOFRb7P
=iXPl
-----END PGP SIGNATURE-----

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


Mime
View raw message