Tomcat - multiple instances using the same external directory

We are looking at running multiple Tomcat instances from the same copy of the codebase. Our current setup uses the Root.xml context parameter to load our app from an external directory, not from webapps or a war file like / build. What I would like to do is start both instances using the same directory, but I'm not sure if file locking can cause performance problems or even errors. Especially with regards to properties files and spring configuration files. Does anyone have any advice on this?

+2


source to share


1 answer


I do this all the time on Tomcat 5.5. There were no problems. Just to add the following attributes to your context,

  <Context ... antiJARLocking="true" antiResourceLocking="true" /> 

      



Of course, you need to export all settings specific to your instance. This is the most difficult process when we did it.

+2


source







All Articles