• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

One Tomcat container with multiple equal applications

 
Ranch Hand
Posts: 270
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello.

I have one Tomcat 6 container running. I have multiple applications installed in tomcat/webapps/, like:
tomcat/webapps/myApp1 (accessed by the URL: www.domain.com/myApp1)
tomcat/webapps/myApp2 (accessed by the URL: www.domain.com/myApp1)
tomcat/webapps/myApp3 (accessed by the URL: www.domain.com/myApp1)

...

Almost all files and servlets are equals, except for some few configuration files and static files like XSL and FO. Each application has it's own mySQL database.

My problems is that it takes much time to update all these equals applications. Also they use a lot of memory when running.

The only files I am currently sharing is some third party jar files, which is located in tomcat/lib.

I am wondering if it is possible to share jsp and servlets as well. Maybe having only one single library with all equals jsp and servlets files and share these files across my applications?

Thanks in advance.
 
I like tacos! And this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic