How to run multiple Jenkins instances in the same Tomcat instance?

In the Windows 2008 R2 window, I installed the latest 64-bit JRE and Tomcat 7.0. I am trying to host two Jenkins instances in this single Tomcat instance. I created context descriptor files in the conf / Catalina / localhost / folder to set JENKINS_HOME to different home directories for each instance. To deploy Jenkins instances, I downloaded the Jenkins LTS edition, named one by Batman and the other by Robin.

What I see is that I can use / manage one instance without any problems, but if I try to use / manage another instance on a different tab, it looks like Tomcat just hangs using about 25% of the processor and memory scan . Looking at the log file in the Tomcat directory, I do not see any files that grow or update.

To make matters worse if I add Joker of the third instance, access to the Tomcat homepage is not a problem, but I cannot access any of the three instances.

Is there a way to host multiple instances of Jenkins in Tomcat?

I found one thread that talked about trying to use Tomcat, but eventually abandoned it and used the built-in Winstone. I need to use a container, not the built-in Winstone, because Winstone works by default as a 32-bit process, but the assemblies that I work for invoking the SharePoint PowerShell cmdlets that are available only from the 64-bit process.

+5
source share

All Articles