How to Run Multiple Instances of Tomcat on a Single Server
Sep 13, 2011, 17:00 (1 Talkback[s])
Re-Imagining Linux Platforms to Meet the Needs of Cloud Service Providers
[ Thanks to Lee Schlesinger for this link. ]
Sometimes you want to host applications that cannot run
on the same instance of Tomcat because of some incompatibility
between the required classes of the two applications, or you might
want to deploy the same application multiple times, perhaps for
different customers, and you cannot do that on a single instance of
Tomcat. Don't despair – in those situations, you can run
multiple instances of Tomcat on a single GNU/Linux server. Each
will use the same binary, but turn to different areas for data.
In this guide I'll run Tomcat on a CentOS 6 server and create
two new Tomcat instances – one to run Solr and one for Jopr.
Regardless of which GNU/Linux distribution you use or which Java
applications you run in Tomcat, the principles are the same as
those shown here.