NGINX Full Version

借助 NGINX 和 NGINX Plus 实现 Apache Tomcat 服务器的负载均衡

NGINX Open Source and NGINX Plus are commonly used to enhance performance and fault tolerance by acting as a load balancer for many application servers, including Apache Tomcat™.

To help customers get the most out of their Tomcat deployments, NGINX, Inc. has published a new deployment guide, Load Balancing Apache Tomcat Servers with NGINX Open Source and NGINX Plus. This guide details how NGINX and NGINX Plus can be utilized as a load balancer and application delivery controller for Apache Tomcat application servers.

Why NGINX and NGINX Plus?

Many Apache Tomcat deployments use the Apache HTTP Server for application delivery, as specified in the Tomcat installation instructions. Apache HTTP Server’s thread-per-connection architecture delivers acceptable performance under low-to-medium load, but under heavy load the limitations of the architecture begin to surface. In one common scenario, the thread pool becomes exhausted when there is a large number of concurrent connections, which in turn delays acceptance of new connections until the threads are released. Issues like this, along with the small number of load‑balancing configuration options in HTTP Server, limit its usefulness as a load balancer in high‑traffic Apache Tomcat application server deployments.

NGINX and NGINX Plus eliminate HTTP Server’s performance limitations by using asynchronous operations to achieve high concurrency without the overhead of threads. This architecture enables them to scale and handle a large number of simultaneous connections using a very small memory footprint. In addition to performance and scale, NGINX provides a number of benefits for Apache Tomcat applications:

And NGINX Plus, the enhanced and commercially supported product, builds on NGINX with additional enterprise‑ready features:

How Do I Get Started?

To get started using NGINX and NGINX Plus with Apache Tomcat application servers, check out the new deployment guide developed by NGINX, Inc. It provides step-by-step instructions for configuring NGINX and NGINX Plus to efficiently load balance and scale your servers. Configuration files for basic and enhanced load balancing are also available so you don’t have to cut and paste from the guide.

Experienced with Tomcat but new to NGINX Plus? Take advantage of our free 30-day trial or contact us to discuss your use cases, and see for yourself how NGINX Plus can boost the performance and manageability of your Tomcat applications.

Resources