Over a million developers have joined DZone.

Load Balancing JBoss Application Servers with NGINX and NGINX Plus

Here's a guide to load balancing JBoss app servers with NGINX and NGINX Plus, complete with a look at why NGINX is perfect for load balancing JBoss app servers, and getting started.

See Gartner’s latest research on the application performance monitoring landscape and how APM suites are becoming more and more critical to the business, brought to you in partnership with AppDynamics.

NGINX and NGINX Plus can be used to load balance JBoss application servers, enabling them to handle a larger volume of users while providing an overall faster and more consistent user experience with JBoss applications.

To help customers get the most out of their JBoss deployments, NGINX, Inc. has published a new deployment guide, Using NGINX and NGINX Plus to Load Balance JBoss Application Servers. This guide details how NGINX and NGINX Plus can be utilized as a load balancer and application delivery controller for JBoss application servers.

Why NGINX and NGINX Plus?

Load balancing across multiple application instances is a commonly used technique for optimizing resource utilization, maximizing throughput, reducing latency, and ensuring fault-tolerant configurations. The ability of NGINX and NGINX Plus to scale and handle a large number of simultaneous connections using a very small memory footprint makes them a great choice to load balance your JBoss application servers.

In addition to performance and scale, the open source NGINX software provides a number of benefits for JBoss applications:

  • Event-driven architecture – NGINX provides much greater scalability and resilience to traffic spikes and DOS attacks than JBoss application servers offer on their own.
  • SPDY and HTTP/2 support – NGINX supports both the SPDY and HTTP/2 protocols, which offer improved performance over HTTP/1.1.
  • Load balancing – The variety of load balancing algorithms in NGINX enable you to scale out your JBoss applications as well as maintain high availability.
  • TLS/SSL termination – NGINX can terminate TLS/SSL connections to offload that work from the JBoss servers.
  • Caching – NGINX acts as a highly capable cache for both static and dynamic content, which greatly improves application performance.

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

  • Application health checks – NGINX Plus proactively monitors JBoss application servers and stops sending requests to unhealthy servers.
  • Session persistence – NGINX Plus leverages the JSESSIONID cookie to ensure that a user’s requests are forwarded to the same JBoss application server every time.
  • On-the-fly reconfiguration of load-balanced servers – You can reconfigure load-balanced server groups (both HTTP and TCP) on-the-fly using the Domain Name System (DNS) or a simple HTTP API.
  • Live activity monitoring – NGINX Plus has a real-time activity monitoring interface that provides key load and performance metrics.

How Do I Get Started?

To get started using NGINX and NGINX Plus with JBoss application servers, download the newdeployment guide developed by NGINX. It provides step-by-step instructions 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 JBoss but new to NGINX Plus? Take advantage of our 30-day free trial or contact usfor a live demo, and see for yourself how NGINX Plus can boost the performance and manageability of your JBoss applications.


The Performance Zone is brought to you in partnership with AppDynamics.  See Gartner’s latest research on the application performance monitoring landscape and how APM suites are becoming more and more critical to the business.

jboss,j2ee,spdy,load balancing

The best of DZone straight to your inbox.

Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}