-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ahmed,

On 12/30/11 2:57 PM, S Ahmed wrote:
> I know with other frameworks (like python/rails) people tend to
> run multiple instaces of the web server and round robin requests to
> each using something like haproxy.
> 
> Is this known in the tomcat community at all?

Are you asking if the Tomcat community knows how python/rails users
typically configure their servers? I would ask over there...

> If I have a server with 16GB ram, would it make sense to run a few
> tomcat processes on different ports and use haproxy to round robin
> requests to each tomcat instance?

If your webapp is stable, I would run a single, large JVM. If it's not
stable, then running multiple JVMs will certainly increase your
redundancy. A multi-JVM setup also allows you to upgrade one webapp
instance and then the other to minimize (or eliminate) downtime -- see
your other thread on this subject.

If you have multiple webapps, then the choice is up to you. In
production, we run separate webapps in separate JVMs -- that allows us
the most flexibility and protection against one webapp suffering some
problem like OOME and affecting the others.

> I realize python/ruby do this because of their poor threading
> support.

I have no idea.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk7+IkcACgkQ9CaO5/Lv0PApNACgrQ84MetzuqpOZeNzoLWrDiVb
gMYAn00KRbbr6S7dOrRZHEQtxjzF6rDA
=Mjhw
-----END PGP SIGNATURE-----

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

Reply via email to