This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tomcat Slowing Down

 
Tracey Gates
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 180
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic