{"id":211,"date":"2016-01-17T22:47:17","date_gmt":"2016-01-17T20:47:17","guid":{"rendered":"http:\/\/www.systemcodegeeks.com\/?p=211"},"modified":"2016-01-17T22:47:17","modified_gmt":"2016-01-17T20:47:17","slug":"set-tomcat-apache-mod_jk-cluster","status":"publish","type":"post","link":"https:\/\/www.systemcodegeeks.com\/web-servers\/apache\/set-tomcat-apache-mod_jk-cluster\/","title":{"rendered":"Set up Tomcat, Apache and mod_jk cluster"},"content":{"rendered":"<p>In this article I will go through a common set-up for a small production environment. A single tier, load balanced application server cluster.<\/p>\n<h2>Overview<\/h2>\n<p>A high level overview of what we will be doing.<\/p>\n<ol>\n<li>Downloading and installing Apache HTTP server and mod_jk<\/li>\n<li>Downloading Tomcat<\/li>\n<li>Downloading Java<\/li>\n<li>Configuring two local Tomcat servers<\/li>\n<li>Clustering the two Tomcat servers<\/li>\n<li>Configuring Apache to use mod_jk to forward request to Tomcat<\/li>\n<li>Deploying application to Tomcat server that tests our set-up<\/li>\n<\/ol>\n<h2>Introduction<\/h2>\n<h4>What is Apache?<\/h4>\n<p>Apache is an HTTP server.<\/p>\n<h4>What is mod_jk?<\/h4>\n<p>It is an Apache module that allows <a href=\"http:\/\/tomcat.apache.org\/connectors-doc\/ajp\/ajpv13a.html\" target=\"_blank\">AJP communication<\/a> between Apache and a back end application server like Tomcat.<\/p>\n<p>I am running this on Ubuntu 14.04LTS installed on a dual boot PC with Windows 7.<\/p>\n<p><a href=\"http:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/screenshot-from-2015-02-28-173928.png\" rel=\"attachment wp-att-375\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-375\" src=\"http:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/screenshot-from-2015-02-28-173928.png\" alt=\"screenshot-from-2015-02-28-173928\" width=\"373\" height=\"454\" srcset=\"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/screenshot-from-2015-02-28-173928.png 373w, https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/screenshot-from-2015-02-28-173928-246x300.png 246w\" sizes=\"(max-width: 373px) 100vw, 373px\" \/><\/a><\/p>\n<h4>Download Apache2<\/h4>\n<p>We are going to use Ubuntu\u2019s APT package maintenance system to obtain and install Apache2.<\/p>\n<pre class=\" brush:php\">sudo apt-get install apache2<\/pre>\n<p>This will install in \/etc\/apache2<\/p>\n<h4>Download and install mod_jk<\/h4>\n<p>The mod_jk module is not included in the Apache2 download so must be obtained and installed separately. The installation requires that the mod_jk module is visible to Apache and configured to ensure that Apache knows where to look for it and what to do with the requests you want to proxy.<\/p>\n<pre class=\" brush:php\">sudo apt-get install libapache2-mod-jk<\/pre>\n<p>This will install in \/etc\/libapache2-mod-jk also two files have been added to the \/etc\/apache2\/mods-available folder.<\/p>\n<h4>Downloading and installing Tomcat 8<\/h4>\n<p>At the time of writing this Tomcat 8 does not have a package in APT so you must download the binaries from the tomcat website.<\/p>\n<p><a href=\"http:\/\/tomcat.apache.org\/download-80.cgi\" target=\"_blank\">http:\/\/tomcat.apache.org\/download-80.cgi<\/a> select the appropriate binary distribution and extract it as follows.<\/p>\n<pre class=\" brush:php\">tar xvzf apache-tomcat-8.0.5.tar.gz<\/pre>\n<p>We need two copies of the Tomcat server to be load balanced. I created two directories in the \/opt\/ location: \/opt\/tomcat-server1\/ and \/opt\/tomcat-server2\/ and copied tomcat into each one.<\/p>\n<h4>Download and install Java<\/h4>\n<p>Download Java from APT as follows:<\/p>\n<pre class=\" brush:php\">apt-get install openjdk-7-jdk<\/pre>\n<p>and set JAVA_HOME in .bashrc<\/p>\n<pre class=\" brush:php\">vim ~\/.bashrc<\/pre>\n<pre class=\" brush:php\">export JAVA_HOME=\/usr\/lib\/jvm\/java-7-openjdk-amd64<\/pre>\n<h4>Configure two local Tomcat servers<\/h4>\n<p>We will edit only the server.xml of the server2 installation of tomcat. We need to change port numbers to avoid conflicts.<\/p>\n<p>We change the following:<\/p>\n<pre class=\" brush:php\">&lt;Server port=\"9005\" shutdown=\"SHUTDOWN\"&gt;<\/pre>\n<pre class=\" brush:php\">&lt;Connector port=\"9009\" protocol=\"AJP\/1.3\" redirectPort=\"9443\"\/&gt;<\/pre>\n<p>and comment out the HTTP Connector as we only want the web application to be accessible through the load balancer.<\/p>\n<p>Here is my server2 <a title=\"Tomcat server.xml example\" href=\"https:\/\/alextheedom.wordpress.com\/microservices\/tomcat-server-xml-example\/\">Tomcat server.xml configuration<\/a>.<\/p>\n<h4>Configure mod_jk<\/h4>\n<p>Load balancing is configured in the workers.properties file, located \/etc\/libapache2-mod-jk\/ where workers represent actual or virtual workers.We will define two actual workers and two virtual workers which map to the Tomcat servers. In the <strong>worker.list<\/strong> property I have defined two virtual workers: <strong>status<\/strong> and <strong>loadbalancer<\/strong>, I will refer to these later in the Apache configuration.<\/p>\n<p>Workers for each server have been defined using values for the <strong>server.xml<\/strong> configuration files. I used the port values for the AJP connectors and I have included an <strong>lbfactor<\/strong> that sets the preference that the load balancer will show for that server.<\/p>\n<p>Finally we define the virtual workers. The <strong>loadbalancer<\/strong> worker is set to type <strong>lb<\/strong> and set the workers that represent the Tomcat servers in the <strong>balancer_workers<\/strong> properties. The status only needs to be set to type status.<\/p>\n<pre class=\" brush:xml\">worker.list=loadbalancer,status \r\n\r\nworker.server1.port=8009\r\nworker.server1.host=localhost\r\nworker.server1.type=ajp13 \r\n\r\nworker.server2.port=9009\r\nworker.server2.host=localhost\r\nworker.server2.type=ajp13 \r\n\r\nworker.server1.lbfactor=1\r\nworker.server2.lbfactor=1 \r\n\r\nworker.loadbalancer.type=lb\r\nworker.loadbalancer.balance_workers=server1,server2 \r\n\r\nworker.status.type=status<\/pre>\n<p>Ensure that you remove any other worker configuration that are not being used.<\/p>\n<h4>Configure Apache Web Server to forward requests<\/h4>\n<p>You will need to add the following to the Apache configurations located in etc\/apache2\/sites-enabled\/000-default.conf<\/p>\n<pre class=\" brush:php\">JkMount \/status status\r\nJkMount \/* loadbalancer<\/pre>\n<h4>Verify the installation<\/h4>\n<p>To test that all has been configured correctly we need to deploy an application. A sample application that has been used for years to test such configurations is called the ClusterJSP sample application. You can find it by googling in or from the <a href=\"https:\/\/community.jboss.org\/servlet\/JiveServlet\/download\/588259-27006\/clusterjsp.war\" target=\"_blank\">JBoss site<\/a>.<\/p>\n<p>Now deploy the war to the webapps folder on both servers and start each server using the start-up script \/opt\/tomcat-server1\/bin\/startup.sh.<\/p>\n<p>Go to <a href=\"http:\/\/localhost\/clusterjsp\/HaJsp.jsp\" target=\"_blank\">http:\/\/localhost\/clusterjsp\/HaJsp.jsp<\/a> and you should see the page show HttpSession information.<\/p>\n<p><a href=\"http:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/screenshot-from-2015-02-28-123654.png\" rel=\"attachment wp-att-376\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-376\" src=\"http:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/screenshot-from-2015-02-28-123654.png\" alt=\"screenshot-from-2015-02-28-123654\" width=\"535\" height=\"264\" srcset=\"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/screenshot-from-2015-02-28-123654.png 535w, https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/screenshot-from-2015-02-28-123654-300x148.png 300w\" sizes=\"(max-width: 535px) 100vw, 535px\" \/><\/a><\/p>\n<p>Now lets look at the mod_jk status page: <a href=\"http:\/\/localhost\/status\" target=\"_blank\">http:\/\/localhost\/status<\/a>. You will see that this page shows information about the load balancer workers and the workers it is balancing.<\/p>\n<p><a href=\"http:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/screenshot-from-2015-02-28-164329.png\" rel=\"attachment wp-att-377\"><img decoding=\"async\" class=\"aligncenter  wp-image-377\" src=\"http:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/screenshot-from-2015-02-28-164329.png\" alt=\"screenshot-from-2015-02-28-164329\" width=\"758\" height=\"61\" srcset=\"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/screenshot-from-2015-02-28-164329.png 945w, https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/screenshot-from-2015-02-28-164329-300x24.png 300w, https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/screenshot-from-2015-02-28-164329-768x62.png 768w\" sizes=\"(max-width: 758px) 100vw, 758px\" \/><\/a><\/p>\n<p>If everything is working you will see the worker error state show OK or OK\/IDLE if they are not currently balancing load.<\/p>\n<h4>Things to try out<\/h4>\n<p>Enable sticky sessions: Configure <strong>jvmRoute<\/strong> in the <strong>server.xml<\/strong> configuration.<\/p>\n<h4>Further reading<\/h4>\n<ul>\n<li><a href=\"http:\/\/blogs.encodo.ch\/news\/view_article.php?id=18\" target=\"_blank\">Loadbalancing with mod_jk and Apache<\/a><\/li>\n<li><a href=\"https:\/\/tomcat.apache.org\/tomcat-3.3-doc\/mod_jk-howto.html\" target=\"_blank\">Working with mod_jk<\/a><\/li>\n<li><a href=\"http:\/\/www.linuxjournal.com\/article\/8561\" target=\"_blank\">Connecting Apache\u2019s Web Server to Multiple Instances of Tomcat<\/a><\/li>\n<\/ul>\n<div class=\"attribution\">\n<table>\n<tbody>\n<tr>\n<td><span class=\"reference\">Reference: <\/span><\/td>\n<td><a href=\"http:\/\/alextheedom.wordpress.com\/microservices\/set-up-tomcat-apache-and-mod_jk-cluster\/\">Set up Tomcat, Apache and mod_jk cluster<\/a> from our <a href=\"http:\/\/www.systemcodegeeks.com\/join-us\/scg\/\">SCG partner<\/a> Alex Theedom at the <a href=\"http:\/\/alextheedom.wordpress.com\/\">alex.theedom<\/a> blog.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>In this article I will go through a common set-up for a small production environment. A single tier, load balanced application server cluster. Overview A high level overview of what we will be doing. Downloading and installing Apache HTTP server and mod_jk Downloading Tomcat Downloading Java Configuring two local Tomcat servers Clustering the two Tomcat &hellip;<\/p>\n","protected":false},"author":6,"featured_media":184,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[24],"tags":[],"class_list":["post-211","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-apache"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Set up Tomcat, Apache and mod_jk cluster - System Code Geeks - 2026<\/title>\n<meta name=\"description\" content=\"In this article I will go through a common set-up for a small production environment. A single tier, load balanced application server cluster. Overview A\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.systemcodegeeks.com\/web-servers\/apache\/set-tomcat-apache-mod_jk-cluster\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Set up Tomcat, Apache and mod_jk cluster - System Code Geeks - 2026\" \/>\n<meta property=\"og:description\" content=\"In this article I will go through a common set-up for a small production environment. A single tier, load balanced application server cluster. Overview A\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.systemcodegeeks.com\/web-servers\/apache\/set-tomcat-apache-mod_jk-cluster\/\" \/>\n<meta property=\"og:site_name\" content=\"System Code Geeks\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/systemcodegeeks\" \/>\n<meta property=\"article:author\" content=\"http:\/\/www.facebook.com\/alex.theedom.j2ee\" \/>\n<meta property=\"article:published_time\" content=\"2016-01-17T20:47:17+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/apache-logo.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"150\" \/>\n\t<meta property=\"og:image:height\" content=\"150\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Alex Theedom\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@alextheedom\" \/>\n<meta name=\"twitter:site\" content=\"@systemcodegeeks\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Alex Theedom\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.systemcodegeeks.com\/web-servers\/apache\/set-tomcat-apache-mod_jk-cluster\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.systemcodegeeks.com\/web-servers\/apache\/set-tomcat-apache-mod_jk-cluster\/\"},\"author\":{\"name\":\"Alex Theedom\",\"@id\":\"https:\/\/www.systemcodegeeks.com\/#\/schema\/person\/e6a740c0c03989111635f637a8305a76\"},\"headline\":\"Set up Tomcat, Apache and mod_jk cluster\",\"datePublished\":\"2016-01-17T20:47:17+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.systemcodegeeks.com\/web-servers\/apache\/set-tomcat-apache-mod_jk-cluster\/\"},\"wordCount\":763,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.systemcodegeeks.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.systemcodegeeks.com\/web-servers\/apache\/set-tomcat-apache-mod_jk-cluster\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/apache-logo.jpg\",\"articleSection\":[\"Apache\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.systemcodegeeks.com\/web-servers\/apache\/set-tomcat-apache-mod_jk-cluster\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.systemcodegeeks.com\/web-servers\/apache\/set-tomcat-apache-mod_jk-cluster\/\",\"url\":\"https:\/\/www.systemcodegeeks.com\/web-servers\/apache\/set-tomcat-apache-mod_jk-cluster\/\",\"name\":\"Set up Tomcat, Apache and mod_jk cluster - System Code Geeks - 2026\",\"isPartOf\":{\"@id\":\"https:\/\/www.systemcodegeeks.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.systemcodegeeks.com\/web-servers\/apache\/set-tomcat-apache-mod_jk-cluster\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.systemcodegeeks.com\/web-servers\/apache\/set-tomcat-apache-mod_jk-cluster\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/apache-logo.jpg\",\"datePublished\":\"2016-01-17T20:47:17+00:00\",\"description\":\"In this article I will go through a common set-up for a small production environment. A single tier, load balanced application server cluster. Overview A\",\"breadcrumb\":{\"@id\":\"https:\/\/www.systemcodegeeks.com\/web-servers\/apache\/set-tomcat-apache-mod_jk-cluster\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.systemcodegeeks.com\/web-servers\/apache\/set-tomcat-apache-mod_jk-cluster\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.systemcodegeeks.com\/web-servers\/apache\/set-tomcat-apache-mod_jk-cluster\/#primaryimage\",\"url\":\"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/apache-logo.jpg\",\"contentUrl\":\"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/apache-logo.jpg\",\"width\":150,\"height\":150},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.systemcodegeeks.com\/web-servers\/apache\/set-tomcat-apache-mod_jk-cluster\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.systemcodegeeks.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Web Servers\",\"item\":\"https:\/\/www.systemcodegeeks.com\/category\/web-servers\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Apache\",\"item\":\"https:\/\/www.systemcodegeeks.com\/category\/web-servers\/apache\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Set up Tomcat, Apache and mod_jk cluster\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.systemcodegeeks.com\/#website\",\"url\":\"https:\/\/www.systemcodegeeks.com\/\",\"name\":\"System Code Geeks\",\"description\":\"Operating System Developers Resource Center\",\"publisher\":{\"@id\":\"https:\/\/www.systemcodegeeks.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.systemcodegeeks.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.systemcodegeeks.com\/#organization\",\"name\":\"Exelixis Media P.C.\",\"url\":\"https:\/\/www.systemcodegeeks.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.systemcodegeeks.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png\",\"contentUrl\":\"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png\",\"width\":864,\"height\":246,\"caption\":\"Exelixis Media P.C.\"},\"image\":{\"@id\":\"https:\/\/www.systemcodegeeks.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/systemcodegeeks\",\"https:\/\/x.com\/systemcodegeeks\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.systemcodegeeks.com\/#\/schema\/person\/e6a740c0c03989111635f637a8305a76\",\"name\":\"Alex Theedom\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.systemcodegeeks.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/6d875f8b02b9be72e4dcae0e790c2edc5416eac63cad6e1474d370f884605062?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/6d875f8b02b9be72e4dcae0e790c2edc5416eac63cad6e1474d370f884605062?s=96&d=mm&r=g\",\"caption\":\"Alex Theedom\"},\"description\":\"Alex Theedom is a Senior Java Developer and has recently played a pivotal role in the architectural design and development of a microservice based, custom built lottery and instant win game platform. Alex has experience of Java web application development in a diverse range of fields including finance, e-learning, lottery and software development. He is the co-author of Professional Java EE Design Patterns and many articles.\",\"sameAs\":[\"http:\/\/alextheedom.wordpress.com\/\",\"http:\/\/www.facebook.com\/alex.theedom.j2ee\",\"http:\/\/www.linkedin.com\/pub\/alex-theedom\/42\/90b\/910\",\"https:\/\/x.com\/alextheedom\"],\"url\":\"https:\/\/www.systemcodegeeks.com\/author\/alex-theedom\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Set up Tomcat, Apache and mod_jk cluster - System Code Geeks - 2026","description":"In this article I will go through a common set-up for a small production environment. A single tier, load balanced application server cluster. Overview A","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.systemcodegeeks.com\/web-servers\/apache\/set-tomcat-apache-mod_jk-cluster\/","og_locale":"en_US","og_type":"article","og_title":"Set up Tomcat, Apache and mod_jk cluster - System Code Geeks - 2026","og_description":"In this article I will go through a common set-up for a small production environment. A single tier, load balanced application server cluster. Overview A","og_url":"https:\/\/www.systemcodegeeks.com\/web-servers\/apache\/set-tomcat-apache-mod_jk-cluster\/","og_site_name":"System Code Geeks","article_publisher":"https:\/\/www.facebook.com\/systemcodegeeks","article_author":"http:\/\/www.facebook.com\/alex.theedom.j2ee","article_published_time":"2016-01-17T20:47:17+00:00","og_image":[{"width":150,"height":150,"url":"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/apache-logo.jpg","type":"image\/jpeg"}],"author":"Alex Theedom","twitter_card":"summary_large_image","twitter_creator":"@alextheedom","twitter_site":"@systemcodegeeks","twitter_misc":{"Written by":"Alex Theedom","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.systemcodegeeks.com\/web-servers\/apache\/set-tomcat-apache-mod_jk-cluster\/#article","isPartOf":{"@id":"https:\/\/www.systemcodegeeks.com\/web-servers\/apache\/set-tomcat-apache-mod_jk-cluster\/"},"author":{"name":"Alex Theedom","@id":"https:\/\/www.systemcodegeeks.com\/#\/schema\/person\/e6a740c0c03989111635f637a8305a76"},"headline":"Set up Tomcat, Apache and mod_jk cluster","datePublished":"2016-01-17T20:47:17+00:00","mainEntityOfPage":{"@id":"https:\/\/www.systemcodegeeks.com\/web-servers\/apache\/set-tomcat-apache-mod_jk-cluster\/"},"wordCount":763,"commentCount":0,"publisher":{"@id":"https:\/\/www.systemcodegeeks.com\/#organization"},"image":{"@id":"https:\/\/www.systemcodegeeks.com\/web-servers\/apache\/set-tomcat-apache-mod_jk-cluster\/#primaryimage"},"thumbnailUrl":"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/apache-logo.jpg","articleSection":["Apache"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.systemcodegeeks.com\/web-servers\/apache\/set-tomcat-apache-mod_jk-cluster\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.systemcodegeeks.com\/web-servers\/apache\/set-tomcat-apache-mod_jk-cluster\/","url":"https:\/\/www.systemcodegeeks.com\/web-servers\/apache\/set-tomcat-apache-mod_jk-cluster\/","name":"Set up Tomcat, Apache and mod_jk cluster - System Code Geeks - 2026","isPartOf":{"@id":"https:\/\/www.systemcodegeeks.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.systemcodegeeks.com\/web-servers\/apache\/set-tomcat-apache-mod_jk-cluster\/#primaryimage"},"image":{"@id":"https:\/\/www.systemcodegeeks.com\/web-servers\/apache\/set-tomcat-apache-mod_jk-cluster\/#primaryimage"},"thumbnailUrl":"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/apache-logo.jpg","datePublished":"2016-01-17T20:47:17+00:00","description":"In this article I will go through a common set-up for a small production environment. A single tier, load balanced application server cluster. Overview A","breadcrumb":{"@id":"https:\/\/www.systemcodegeeks.com\/web-servers\/apache\/set-tomcat-apache-mod_jk-cluster\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.systemcodegeeks.com\/web-servers\/apache\/set-tomcat-apache-mod_jk-cluster\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.systemcodegeeks.com\/web-servers\/apache\/set-tomcat-apache-mod_jk-cluster\/#primaryimage","url":"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/apache-logo.jpg","contentUrl":"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/apache-logo.jpg","width":150,"height":150},{"@type":"BreadcrumbList","@id":"https:\/\/www.systemcodegeeks.com\/web-servers\/apache\/set-tomcat-apache-mod_jk-cluster\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.systemcodegeeks.com\/"},{"@type":"ListItem","position":2,"name":"Web Servers","item":"https:\/\/www.systemcodegeeks.com\/category\/web-servers\/"},{"@type":"ListItem","position":3,"name":"Apache","item":"https:\/\/www.systemcodegeeks.com\/category\/web-servers\/apache\/"},{"@type":"ListItem","position":4,"name":"Set up Tomcat, Apache and mod_jk cluster"}]},{"@type":"WebSite","@id":"https:\/\/www.systemcodegeeks.com\/#website","url":"https:\/\/www.systemcodegeeks.com\/","name":"System Code Geeks","description":"Operating System Developers Resource Center","publisher":{"@id":"https:\/\/www.systemcodegeeks.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.systemcodegeeks.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.systemcodegeeks.com\/#organization","name":"Exelixis Media P.C.","url":"https:\/\/www.systemcodegeeks.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.systemcodegeeks.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","contentUrl":"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","width":864,"height":246,"caption":"Exelixis Media P.C."},"image":{"@id":"https:\/\/www.systemcodegeeks.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/systemcodegeeks","https:\/\/x.com\/systemcodegeeks"]},{"@type":"Person","@id":"https:\/\/www.systemcodegeeks.com\/#\/schema\/person\/e6a740c0c03989111635f637a8305a76","name":"Alex Theedom","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.systemcodegeeks.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/6d875f8b02b9be72e4dcae0e790c2edc5416eac63cad6e1474d370f884605062?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/6d875f8b02b9be72e4dcae0e790c2edc5416eac63cad6e1474d370f884605062?s=96&d=mm&r=g","caption":"Alex Theedom"},"description":"Alex Theedom is a Senior Java Developer and has recently played a pivotal role in the architectural design and development of a microservice based, custom built lottery and instant win game platform. Alex has experience of Java web application development in a diverse range of fields including finance, e-learning, lottery and software development. He is the co-author of Professional Java EE Design Patterns and many articles.","sameAs":["http:\/\/alextheedom.wordpress.com\/","http:\/\/www.facebook.com\/alex.theedom.j2ee","http:\/\/www.linkedin.com\/pub\/alex-theedom\/42\/90b\/910","https:\/\/x.com\/alextheedom"],"url":"https:\/\/www.systemcodegeeks.com\/author\/alex-theedom\/"}]}},"_links":{"self":[{"href":"https:\/\/www.systemcodegeeks.com\/wp-json\/wp\/v2\/posts\/211","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.systemcodegeeks.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.systemcodegeeks.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.systemcodegeeks.com\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/www.systemcodegeeks.com\/wp-json\/wp\/v2\/comments?post=211"}],"version-history":[{"count":0,"href":"https:\/\/www.systemcodegeeks.com\/wp-json\/wp\/v2\/posts\/211\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.systemcodegeeks.com\/wp-json\/wp\/v2\/media\/184"}],"wp:attachment":[{"href":"https:\/\/www.systemcodegeeks.com\/wp-json\/wp\/v2\/media?parent=211"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.systemcodegeeks.com\/wp-json\/wp\/v2\/categories?post=211"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.systemcodegeeks.com\/wp-json\/wp\/v2\/tags?post=211"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}