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.
Joined: May 31, 2011
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?
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
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.