tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Tomcat 8.5.4 making sessions when used with NIO connector
Date Thu, 11 Aug 2016 18:47:25 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Swati,

On 8/11/16 2:16 AM, swati jain wrote:
> Tomcat Version - 8.5.4 ( Embedded) Platform - Linux
> 
> When NIO connector is used with Embedded Tomcat, it creates a 
> session per request. The session lasts for 30 minutes. Is there a
> way to configure connector in such a way that no session is
> created.

The connectors don't create sessions, so this is unlikely to do with
the choice of connector. What happens if you try the APR or NIO2
connectors and repeat your tests?

> I have traffic of around 40000 requests per second. All the
> requests are state less. so each of them create a session. After 10
> minutes, the Tomcat stops taking any further requests and when I
> viewed the heap dump, it says there is a concurrent map which has
> many objects of sessions.

Are you able to instrument the server at all, or observe this in a
test environment? It's easy to attach a HttpServletListener and dump
stack traces to reveal the places where the sessions are being created.

> While using Tomcat 6.0.36,. no sessions were created per request. 
> After migration to Tomcat 8.5.4, this problem has started.

What components are involved, here? Specifically, are you using JSP or
anything that is known for surprisingly-creating sessions?

- -chris
-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJXrMg9AAoJEBzwKT+lPKRYoOQP/0r375Pd1V03tgC3SKPbV6fD
WT2alGFvED5TveICl8DTxgtRDeEg/iLXAf5ewRM7r6/9VKKsuSYC7Bs45NCr2KC0
it+u35GH4DQCH7BfjeVlkeqqdW5JwCFzSF6NoPtedmbYrUMA60eVwDSes56U4XUj
x2ge26STfkG6rd0iVHkmjzJ7Ot/LEctOA4FVubIM3YYV+ERDByuE08GTODEcqNLT
fJSkloJ1/Gjc3QuK5TAQ8tOz1CROE1NIXkXQzKU1wr7DqZzJBkUQNbcvp8mE56Ej
+b+Eby71P7Fri9ah9LveKtHUshl7sFrJoDp3x/O/1aJ8MvbG5jMoja1HdIRgds6E
+TjZnCipI1iSFhPFwOpNjiBbzEA1pDuFzIMmrmqSwTayQbXvhHa9mYqGjb+x9IT+
ftpXib5gzKRcvCeZZDIdGU5nmqp7yBCSAPtWcYVnIocsvYxsLDu8LQWUPs8M7cP0
/9x5IN5ADQBkzFHw4P2ebo0sR8i9d8CLrcPGS3ZDK0Y/mBWujmqhrKT8xfE47CeR
5CBhEyi3I1e2DK6w4XwP75LgaBmPbzjj6urmuW5mGF6kEAyI/o5S/qOOTl61dpBD
YQl9W7rg7E76Uzw6VprjdcM73OgSHpm0UoiI93mJUco79oWyma70hnYzrP+A6ZfB
VZkDJP7lx6S/Bp5TPBV1
=Tw6q
-----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