Majid Laissi
Majid Laissi

Reputation: 19788

Tomcat Manager Application - Too many sessions

When I check my Tomcat Application Manager, I see that I have too many sessions (over 4600):

Too many sessions

Why is that so ? Can this be linked to a deployed application or is it the fact that it has been up for a long time ?

Upvotes: 1

Views: 5524

Answers (1)

mindas
mindas

Reputation: 26713

There can be multiple reasons for this, some more exotic than others. Some of them:

  • you really have a lot of users coming to your site
  • your app ran out of memory and the thread which invalidates sessions has died
  • you've been hit by a search engine crawler or DDOSed (not very likely)
  • you have some sort of monitoring enabled which is done via HTTP and the sessions are not discarded

Have you looked at the list of these sessions? Do they have similar idle times? What pages are being hit? What do the HTTP logs say? (Google) Analytics?

The fact that the app has been online for a long time has no correlation to the session count. Tomcat invalidates these sessions on a regular basis.

In order to get the most precise answer do a memory dump and analyze it using the profiler.

Upvotes: 5

Related Questions