title: How to run multiple instances of Jenkins under one instance of Tomcat?
body: <p>On a Windows 2008 R2 box, I've installed the latest 64-bit JRE, and Tomcat 7.0. I'm trying to host two instances of Jenkins within this single Tomcat instance. I've created context descriptor files in the conf/Catalina/localhost/ folder to set JENKINS_HOME to different home directories for each instance. To deploy the instances of Jenkins, I downloaded the LTS release of Jenkins, named one Batman and the other one Robin.</p>
  
  <p>What I'm seeing is that I can use/manage one instance without any issues, but if I try to use/manage the other instance in another tab, it looks like Tomcat is just hanging using up about 25% of CPU and memory usage climbing. Looking at the logs file in the Tomcat directory, I'm not seeing any files growing or being updated.</p>
  
  <p>To make things worse, if I add a third instance Joker, accessing the Tomcat home page has no problems, but I can't access any of the 3 instances.</p>
  
  <p>Is there a proper way to host multiple instances of Jenkins within Tomcat? </p>
  
  <p>I found one thread that talked about attempting to use Tomcat, but eventually abandoning it and using the built in Winstone. I need to use a container rather than the built in Winstone, because the default Winstone seems to run as a 32-bit process, and the builds that I am working on invoke SharePoint PowerShell cmdlets which are only available from within a 64-bit process.</p>