Advantages and disadvantages of using Apache + Tomcat than using Tomcat separately

Source: Internet
Author: User
Advantages of independent use: ease of configuration and fewer security vulnerabilities (such as using case-sensitive JSP for download). under what circumstances does Apache + Tomcat need to be used? 1. server load balancer if you need server load balancer, Apache + Tomcat + modjk is an option. With this option, you can split the application server into multiple servers.

Advantages of independent use: easy configuration and fewer security vulnerabilities (such as using case-sensitive JSP downloads)

Under what circumstances does Apache + Tomcat need to be used? To analyze

1. server load balancer

If you need server load balancer, Apache + Tomcat + modjk is an option. With this option, you can split the application server into multiple servers. for example, you can split the application server:

(1) Management Application Server

(2) client application server

(3) place reports and printing servers on one machine

(4) place batch operation servers in one place (for example, a large amount of reconciliation transfers)

(5) You can even give each batch of customers a server, for example, different provinces

2. various web server functions

As we all know, Apache has countless mod S, which provide a variety of web functions. if you need these functions, Apache is an indispensable choice.

For example:

(1) virtual host

Multiple domain names must be used for the same ip address, so Apache will help you solve this problem.

(2) urlrewrite

3. fast performance

The advantage of quick response: Apache is far more powerful than other servers. If an Apache server only forwards data, it can drag countless Tomcat servers to run.

4. processing of binary files

For the processing of .jpg. css. js. html, Apache has far higher performance than Tomcat. you can configure these settings for Apache.

5. queuing of requests

6. resource occupation.

For example, if open-session-in-view is used for Application Service Development, send the response content to the client after processing is complete if only Tomcat is used, if the network is slow, the session of the application server will not be closed and will remain waiting. this will easily cause excessive database connections and problems. There are many similar resource occupation problems.

If Apache + Tomcat is used, because Apache and Tomcat are in the same LAN and are very fast between them, all requese and response are interacting with Apache and Tomcat, and the above problems will not occur in this department, apache and end users are both Apache and end users. Apache will not occupy these resources and will not cause such problems.

The above are some common causes.
 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.