I am planning a large deployment of a Glassfish-powered web application:

  • A number of nodes running multiple Glassfish 3.1.1 instances are running the web application.
  • The web application consists of a GoogleWebToolkit frontend and a REST gateway.
  • The instances are combined behind an Apache 2.2 reverse proxy / loadbalancer.
  • All client communication (mobile app, browser and other web apps) is over HTTPS, SSL is terminated at the Apache loadbalancer.

What is the benefit of running communication between Apache and Glassfish over mod-jk / AJP13 compared to HTTP in terms of performance and availability?


http proxy would open many connections between your balabcer and app server. mod_jk should be less resource hungry because AJP protocol handles many requests through a single connection.

Also with mod_jk should be easier to serve static contents through the apache httpd.

btw mod_cluster has advantages dealing with dynamically adding and removing servers but I don't see it tested with glassfish doing a quick search.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.