You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by David kerber <dc...@verizon.net> on 2007/10/17 15:31:33 UTC

Isolation between multiple TC instances

Running TC 5.5.15 on Windows Server 2003, JRE 1.5.0_12.

My understanding is that if I'm running the same (or different, for that 
matter) webapp on separate tomcat instances (different ports, context 
roots, etc), they will each have their own copies of all their internal 
objects and data, and cannot communicate across instances without 
special efforts being taken, even if they use many of the same utility 
libraries.

Is that understanding correct?  I hope so, because I'm working on 
simplifying some of my internal property storage, and need to be sure 
that they won't interfere with each other if the different apps use the 
same base classes to store their own data.

D



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Isolation between multiple TC instances

Posted by David kerber <dc...@verizon.net>.
Peter Crowther wrote:
>> From: David kerber [mailto:dckerber@verizon.net] 
>> Running TC 5.5.15 on Windows Server 2003, JRE 1.5.0_12.
>>
>> My understanding is that if I'm running the same (or 
>> different, for that 
>> matter) webapp on separate tomcat instances (different ports, context 
>> roots, etc), they will each have their own copies of all 
>> their internal 
>> objects and data, and cannot communicate across instances without 
>> special efforts being taken, even if they use many of the 
>> same utility 
>> libraries.
>>
>> Is that understanding correct?  I hope so, because I'm working on 
>> simplifying some of my internal property storage, and need to be sure 
>> that they won't interfere with each other if the different 
>> apps use the same base classes to store their own data.
>>     
>
> Each Tomcat instance runs in its own Java virtual machine.  Each JVM has
> its own copy of each class, as they each run in their own address space.
> So you're correct.
>   
Thanks!



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: Isolation between multiple TC instances

Posted by Peter Crowther <Pe...@melandra.com>.
> From: David kerber [mailto:dckerber@verizon.net] 
> Running TC 5.5.15 on Windows Server 2003, JRE 1.5.0_12.
> 
> My understanding is that if I'm running the same (or 
> different, for that 
> matter) webapp on separate tomcat instances (different ports, context 
> roots, etc), they will each have their own copies of all 
> their internal 
> objects and data, and cannot communicate across instances without 
> special efforts being taken, even if they use many of the 
> same utility 
> libraries.
> 
> Is that understanding correct?  I hope so, because I'm working on 
> simplifying some of my internal property storage, and need to be sure 
> that they won't interfere with each other if the different 
> apps use the same base classes to store their own data.

Each Tomcat instance runs in its own Java virtual machine.  Each JVM has
its own copy of each class, as they each run in their own address space.
So you're correct.

		- Peter

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org