aspose file tools*
The moose likes Tomcat and the fly likes Query reg multiple App deploy on tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Query reg multiple App deploy on tomcat" Watch "Query reg multiple App deploy on tomcat" New topic
Author

Query reg multiple App deploy on tomcat

tcstcs sonu
Greenhorn

Joined: May 31, 2011
Posts: 3
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

Joined: Jul 26, 2007
Posts: 157
    
    1

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

Joined: May 31, 2011
Posts: 3
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

Joined: Jun 25, 2001
Posts: 16145
    
  21

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Query reg multiple App deploy on tomcat