my dog learned polymorphism
The moose likes Tomcat and the fly likes maximum concurrent session in apache tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "maximum concurrent session in apache tomcat" Watch "maximum concurrent session in apache tomcat" New topic

maximum concurrent session in apache tomcat

ramzi ghaith

Joined: Apr 03, 2007
Posts: 12
Hi All,

how i can know the maximum concurrent session in apache tomcat,
i'm using tomcat version 4.

Any help in this regard.

Thanks in advance.
Scott Duncan
Ranch Hand

Joined: Nov 01, 2002
Posts: 364
Doesn't that depend on the size/speed of the server, memory, etc.?

If there is a setting in Tomcat, I do not know about it.

Question better suited for Bill Brogden. He knows everything.

No more rhymes! I mean it!<br /> <br />Does anybody want a peanut?
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

There is no hard number for the number of sessions.

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13037
What an intro! Anyway -

Tomcat can serialize sessions out to disk so total number of active sessions is not a limit, assumng your sessions are Serializable. "Concurrent" requests are limited by the Thread and acceptCount settings - see your server.xml file. Here is one from Tomcat 5.5.20

The Thread here refer to the Thread Pool available to handle requests. As I recall, acceptCount is the number of requests that can be held pending the availability of a Thread from the pool. A google search for "tomcat acceptcount" turned up lots of confusion about this configuration.

I agree. Here's the link:
subject: maximum concurrent session in apache tomcat
jQuery in Action, 3rd edition