You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Edwin Quijada <li...@hotmail.com> on 2016/12/16 19:48:48 UTC

How many instances Tomcat?

Hi!
I have 2 different projects in the same server. My server has 16GB Ram and 8 core so I am not sure if I need to up 2 instance of Tomcat or just one instace and Tomcat server both projects.


What is the best configuration ? I have too ApacheWeb Sserver like proxy and SSL and virtual server.


Any cluees or ideas? Pro and cons about each solution


TIA


Re: How many instances Tomcat?

Posted by Mark Eggers <it...@yahoo.com.INVALID>.
Edwin,

On 12/16/2016 1:35 PM, Edwin Quijada wrote:
> 
> 
> 
> ________________________________ From: Daniel Savard
> <da...@gmail.com> Sent: Friday, December 16, 2016 9:01 PM To:
> Tomcat Users List Subject: Re: How many instances Tomcat?
> 
> 2016-12-16 14:48 GMT-05:00 Edwin Quijada
> <li...@hotmail.com>:
> 
>> Hi! I have 2 different projects in the same server. My server has
>> 16GB Ram and 8 core so I am not sure if I need to up 2 instance of
>> Tomcat or just one instace and Tomcat server both projects.
>> 
>> 
>> What is the best configuration ? I have too ApacheWeb Sserver like
>> proxy and SSL and virtual server.
>> 
>> 
>> Any cluees or ideas? Pro and cons about each solution
>> 
>> 
>> TIA
>> 
>> 
> It depends on the application. On some of my servers, the
> application provider recommend a limit on the number of concurrent
> connections per instance. I am even not sure it is justified,
> however, since we get support from this provider we have to conform
> to its directives. However, something good about having more than one
> instance is you can shutdown the application without interrupting the
> service.
> 
> For ressources consumption, you need to look at what your specific 
> applications need and what kind of workload you expect. Giving the
> amount of RAM and the number of cores is useless. I run 9 instances
> of Tomcat on a single server with 16 GB of RAM and 2 cores.
> 
> OK, sounds good.! So I think use two instances is not a problem. I
> wanna use apache webserver in front of these Tomcats with virtual
> servers but I dont know if will be a good idea because I use
> websockets and I dont know if websockets can pass throught webserver
> to tomcat
> 
> 

I believe Apache HTTPD 2.4 has a mod_proxy_wstunnel that may work:

https://httpd.apache.org/docs/2.4/mod/mod_proxy_wstunnel.html

I have not tried this, with or without Tomcat.

. . . just my two cents
/mde/


Re: How many instances Tomcat?

Posted by Edwin Quijada <li...@hotmail.com>.


________________________________
From: Daniel Savard <da...@gmail.com>
Sent: Friday, December 16, 2016 9:01 PM
To: Tomcat Users List
Subject: Re: How many instances Tomcat?

2016-12-16 14:48 GMT-05:00 Edwin Quijada <li...@hotmail.com>:

> Hi!
> I have 2 different projects in the same server. My server has 16GB Ram and
> 8 core so I am not sure if I need to up 2 instance of Tomcat or just one
> instace and Tomcat server both projects.
>
>
> What is the best configuration ? I have too ApacheWeb Sserver like proxy
> and SSL and virtual server.
>
>
> Any cluees or ideas? Pro and cons about each solution
>
>
> TIA
>
>
It depends on the application. On some of my servers, the application
provider recommend a limit on the number of concurrent connections per
instance. I am even not sure it is justified, however, since we get support
from this provider we have to conform to its directives. However, something
good about having more than one instance is you can shutdown the
application without interrupting the service.

For ressources consumption, you need to look at what your specific
applications need and what kind of workload you expect. Giving the amount
of RAM and the number of cores is useless. I run 9 instances of Tomcat on a
single server with 16 GB of RAM and 2 cores.

OK, sounds good.! So I think use two instances is not a problem. I wanna use apache webserver in front of these Tomcats with virtual servers but I dont know if will be a good idea because I use websockets and I dont know if websockets can pass throught webserver to tomcat


Re: How many instances Tomcat?

Posted by Daniel Savard <da...@gmail.com>.
2016-12-16 14:48 GMT-05:00 Edwin Quijada <li...@hotmail.com>:

> Hi!
> I have 2 different projects in the same server. My server has 16GB Ram and
> 8 core so I am not sure if I need to up 2 instance of Tomcat or just one
> instace and Tomcat server both projects.
>
>
> What is the best configuration ? I have too ApacheWeb Sserver like proxy
> and SSL and virtual server.
>
>
> Any cluees or ideas? Pro and cons about each solution
>
>
> TIA
>
>
It depends on the application. On some of my servers, the application
provider recommend a limit on the number of concurrent connections per
instance. I am even not sure it is justified, however, since we get support
from this provider we have to conform to its directives. However, something
good about having more than one instance is you can shutdown the
application without interrupting the service.

For ressources consumption, you need to look at what your specific
applications need and what kind of workload you expect. Giving the amount
of RAM and the number of cores is useless. I run 9 instances of Tomcat on a
single server with 16 GB of RAM and 2 cores.

Regards,
-----------------
Daniel Savard

Re: How many instances Tomcat?

Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Edwin,

On 12/16/16 2:48 PM, Edwin Quijada wrote:
> Hi! I have 2 different projects in the same server. My server has 
> 16GB Ram and 8 core so I am not sure if I need to up 2 instance of
>  Tomcat or just one instace and Tomcat server both projects.
> 
> What is the best configuration ? I have too ApacheWeb Sserver like
>  proxy and SSL and virtual server.
> 
> Any cluees or ideas? Pro and cons about each solution

We run 4 JVMs per logical server. We do this both for flexibility and
fault-tolerance. In the unlikely event of JVM crash or OOME, etc. only
one of our applications goes down instead of all of them.

Of course, we also have those applications deployed on other servers
for fail-over, but losing a single instance of an application is
better than losing a single instance of 4 applications.

- -chris
-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJYVW9GAAoJEBzwKT+lPKRYpn4P/13bGwOEqebtG0kYnkij9QnE
gU5f9bmqYBA6UHcBYCRhy/oHAvGKhgeMWhqrXYisbFLL+SVn7F/LRHdTpM+Gcalz
433JomaoJXxsKiBvZq7ZaAfrMYo6rfYhLCes9PQSr4ZEjgeEZzzbC2fzBk+HR/lf
oMoIzKcfot/08vqs51xHxbCaZnkhiqnwfSQFrKX5oLXn67/1iRkyazsFFtwxqv5H
4jtaBN5sUPrD48x0QDrgSYH7Yg8j5xCuCIVnlD674YX90aAxuitBsHThSLBpsYlz
K5B7Js2i1lhv77dFLyeFErN/Ldrh9Mo9ikm8tbBAEZWhdsxCK7RCoQRTcUGfv2sT
5EncQkqr0RiooDjbXBrKosskL3amHsVAqYh2H+85sl6mm7xSebmte2alEifIDY0y
ViY+VQcS1YdEvBn9ZDk/ADabzphzCvm+g+KthIyYykGEsfpee3SC1D/tasSn1zjP
7xiKD3bgrqUZfqn/A4bMNFxVDDxBSG+n+DD5eOYoXwvxd4FmPo4Mun1uyYBjMT0A
oMD+l3Snku+2mUlpyo2L3VB7WBfV/jPL41T9+hlYTZfhif4nGLpo/CYDqTCq2w+O
HeOSrq/gzWXaZODBtD1Q8xXLQLyW72qSxnF7eYd0yO87LWJMzFCac/3rKLOUdZim
V92OWczHOVTFP/I6oDBC
=v61Y
-----END PGP SIGNATURE-----

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