Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

Tomcat

  Asked By: Rabiah    Date: Sep 05    Category: Java    Views: 516
  

Since Tomcat was recently discussed in this mailing list against Websphere and Weblogic and has received good reviews,I have decided to use it in a large scale project.I do have 2 questions though on how to handle load balancing on Tomcat.
1. Can we configure 3 tomcat servers to work simultaneously on 3 different machines to reduce load on one of them or any other way for this matter?
2. I do know Tomcat is a web server and I don't need any additional application server since my application uses Spring/JPA,but to get a better performance from tomcat would it be right to have another web server (like Apache web server) installed on different machine to work with tomcat?
If anyone could give me any information on how to get a better performance with correctly tuning tomcat, I would really appreciate it.

Share: 

 

2 Answers Found

 
Answer #1    Answered By: Jarvia Miller     Answered On: Sep 05

It really depends on the situation and application  design. in the simplest case, there is no need for session sharing. in this case it is very easy to select a web  server the first time a user enters the application. Here you can find more information:
tomcat.apache.org/.../balancer-howto.html
tomcat.apache.org/.../cluster-howto.html

in most cases that is enough. in case sessions should be shared, you need to enforce some consideration in your application design.
Surely you need to also consider database, which is usually used by all clustered web servers  and could not be easily clustered. you need to use DB clustering like Oracle RAC (efficient up to 4 instances) and partitioning in that part.

 
Answer #2    Answered By: Allan Bailey     Answered On: Sep 05

Since you want to run a cluster, you need apache  for that, which will do the server  balancing.

 
Didn't find what you were looking for? Find more on Tomcat Or get search suggestion and latest updates.




Tagged: