aspose file tools*
The moose likes Tomcat and the fly likes how many users tomcat support concurrently Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "how many users tomcat support concurrently" Watch "how many users tomcat support concurrently" New topic
Author

how many users tomcat support concurrently

Shiva Kumar V
Greenhorn

Joined: Mar 23, 2009
Posts: 6
Hi Folks,

I want to know how many concurrent users tomcat 6.0 can support. There is no hard ware constarint.

I am new to web development. One of my friend said it is 50.

Thanks in Advance
Ninad Kulkarni
Ranch Hand

Joined: Aug 31, 2007
Posts: 797

See this


SCJP 5.0 - JavaRanch FAQ - Java Beginners FAQ - SCJP FAQ - SCJP Mock Tests - Tutorial - JavaSE7 - JavaEE6 -Generics FAQ - JLS - JVM Spec - Java FAQs - Smart Questions
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42280
    
  64
While that article is interesting, it doesn't really address the question. But "50" is definitely not a correct answer. The real answer depends on the definition of "concurrent", on the Tomcat setup, and on the web app in question.

Tomcat has a maximum number of concurrent threads it uses to service requests; this can be configured in conf/server.xml and is by default set to 50. But even if there are more than 50 concurrent requests, those are simply put in a waiting queue (I think) and will be serviced once threads become available.

But "users" is not the same as "requests". Users do not constantly fire requests to the server, and requests are generally handled quickly (generally no more than 10 seconds, and possibly much quicker). So a lot more users can all be using a web app at the same time before the number of 50 active threads is reached. How many that might be depends on the nature of the web app.


Ping & DNS - my free Android networking tools app
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16145
    
  21

"Concurrent" is also not the same as "simultaneous". The thread pool size determines maximum thread-simultaneous requests, with the number of CPUs limiting the number of actual-simultaneous requests. The total number of concurrent users of a Tomcat server, however, is limited by the service rate. If a system has a high service rate, it can handle a lot of concurrent users. If it has a low service rate, the thread queues start backing up and the system overloads.


Customer surveys are for companies who didn't pay proper attention to begin with.
Kees Jan Koster
JavaMonitor Support
Rancher

Joined: Mar 31, 2009
Posts: 251
    
    5
Dear Shiva,

Your friend is misguided. I have seen bad webapps that stumble and grind to a halt under the load of a dozen or so users and I have seen Tomcats scale to thousands of concurrent users.

If there is no hardware constraint, then that leaves your programming style and the application requirements as the constraints. You need to program in a scalable way. Your application requirements are such that it is easy to partition the application to allow more hardware to have benefit when added.

Without knowing how well your application can be partitioned and how well your code is architected, we cannot answer your question.

Kees Jan


Java-monitor, JVM monitoring made easy <- right here on Java Ranch
Joanna Spark
Greenhorn

Joined: Aug 03, 2010
Posts: 1
Hey there -

We actually answered this question over at TomcatExpert.com today. Check out the post here:
http://www.tomcatexpert.com/ask-the-experts/simultaneous-users

Thanks!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how many users tomcat support concurrently