File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes Tomcat Slowing Down Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat Slowing Down" Watch "Tomcat Slowing Down" New topic

Tomcat Slowing Down

Tracey Gates

Joined: Aug 10, 2004
Posts: 1
Under the current configuration, I add new Contexts to Tomcat for each of my customers. I will be adding new customers in the future (how many, I don't know).

Each customer has their own environment entries and data sources that I use to determine which database to use and where to store uploaded files and such.

I know that it will slow Tomcat down the way I'm currently doing it.

What would be a better way to handle this?

I'm running Tomcat 4.1.24 on Linux.
[ August 10, 2004: Message edited by: Tracey Gates ]
Chris Stehno
Ranch Hand

Joined: Feb 26, 2001
Posts: 180
Consolidate as much as you can so that each context shares as much as possible. You may want to either look at load balancing across two or more instances of Tomcat, or just put some of the contexts on another instance of tomcat... the latter is better if the individual contexts don't see all that much load.

We have an Apache/Tomcat stack running about a dozen commercial database driven websites on a Windows 2000 box. Together they see a pretty moderate to heavy traffic load. We will be spreading those out across two identical boxes soon, but there is no rush... the Tomcat is a lot more powerful than anyone seems to give it credit for... you just have to configure and tune it properly.

Good luck and I hope this helps.

- Chris Stehno, SCPJ
I agree. Here's the link:
subject: Tomcat Slowing Down
It's not a secret anymore!