• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Tomcat Slowing Down

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Ranch Hand
Posts: 180
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic