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

Query reg multiple App deploy on tomcat

 
tcstcs sonu
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

We usually deploy more than one application(i.e .war) on one tomcat server. How does tomcat manages the JVM for mupliple apps? will the only one JVM be shared across all apps?
 
harshvardhan ojha
Ranch Hand
Posts: 157
1
Android Java MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can see how many time java has been called, typically web server is a single java program serving multiple request.
You can verify that only one JVM is in action you can do something like ps -ef | grep java
and you will get one process id for tomcat.

Hope this will help.
 
tcstcs sonu
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So what you are saying is there will be only one JVM for many apps. Is is possible to allocate seperate memory to each app in case of one JVM?
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18020
47
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
tcstcs sonu wrote:So what you are saying is there will be only one JVM for many apps. Is is possible to allocate seperate memory to each app in case of one JVM?


Welcome to the JavaRanch, tcstcs, but you appear to be violating one of the few hard-and-fast rules of the Ranch.

We don't have many rules here at the JavaRanch, but we do insist that you use your Real Name and not some sort of "handle" or obvious alias. If you're not sure about this, see
http://www.javaranch.com/name.jsp .

As for memory compartmentalization. No, no stock JVM supports that soft of behaviour, only specialized ones that (as far as I know) don't exist outside of research labs, and Tomcat wouldn't know how to enable that feature. Tomcat itself is a single JVM (per Tomcat instance) and all of the apps deployed within it are also running in that JVM instance. This is also true of commercial systems such as IBM's WebSphere.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic