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 Miller <dm...@smart911.com> on 2001/03/08 00:19:03 UTC

Multiple JVM's on same machine

Hi,

I am trying to figure out a way of making sure that my two war files
located on one physical Linux box are running in separate JVM's. I tried
mounting the two separate contexts to two separate ports, using
something like:

ApJServMount /context1 ajpv12://localhost:8007/context1
ApJServMount /context2 ajpv12://localhost:8009/context2

in my httpd.conf file and defining two different PoolTcpConnector
connectors on the corresponding ports in my server.xml file. However,
when I start up Tomcat (3.1) I get the following error:

FATAL:java.net.BindException: Address already in use
java.net.BindException: Address already in use

If I dont define the PoolTcpConnector for port 8009 then Tomcat works,
except that my two war files are running in the same JVM, which I do not
want. I have also tried changing the second connector port, but that
does not work either.

I thought the point of war files was that you could just drop the war
file into the webapps folder at an ISP, for example, and Tomcat would
automatically load the context. However, this seems fairly useless if
you can't specify that the different war files run in separate JVM's. Is
there something I am missing?

Any and all comments greatly appreciated. Thanks!

-David-


Re: Multiple JVM's on same machine

Posted by Jesse Reynolds <li...@va.com.au>.
Hi David

Doesn't ajpv13 listen on port 8009? (mod_jk uses ajpv13). ...

Perhaps check if you are devining an ajpv13 connector also in your 
server.xml file that could be conflicting on port 8009.

Just an idea.

cheers

jesse

At 3:19 PM -0800 7/3/2001, David Miller wrote:
>Hi,
>
>I am trying to figure out a way of making sure that my two war files
>located on one physical Linux box are running in separate JVM's. I tried
>mounting the two separate contexts to two separate ports, using
>something like:
>
>ApJServMount /context1 ajpv12://localhost:8007/context1
>ApJServMount /context2 ajpv12://localhost:8009/context2
>
>in my httpd.conf file and defining two different PoolTcpConnector
>connectors on the corresponding ports in my server.xml file. However,
>when I start up Tomcat (3.1) I get the following error:
>
>FATAL:java.net.BindException: Address already in use
>java.net.BindException: Address already in use
>
>If I dont define the PoolTcpConnector for port 8009 then Tomcat works,
>except that my two war files are running in the same JVM, which I do not
>want. I have also tried changing the second connector port, but that
>does not work either.
>
>I thought the point of war files was that you could just drop the war
>file into the webapps folder at an ISP, for example, and Tomcat would
>automatically load the context. However, this seems fairly useless if
>you can't specify that the different war files run in separate JVM's. Is
>there something I am missing?
>
>Any and all comments greatly appreciated. Thanks!
>
>-David-
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, email: tomcat-user-help@jakarta.apache.org

-- 

       Jesse Reynolds - Virtual Artists Pty Ltd - http://www.va.com.au
                                                  jesse (at) va.com.au

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, email: tomcat-user-help@jakarta.apache.org