cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple instance of Alfresco into the same Tomcat Instance

redflow
Confirmed Champ
Confirmed Champ
Hi all
we need to have different Alfresco environment into the same Tomcat instance.
The multitennant have data into the same DB and file into the same directory but we would to have different DB and folder for each Alfresco instance.

So we have 2 questions:
1) is it possible ?
2) if it is, how we could do this ?

Thank you
Domenico
3 REPLIES 3

afaust
Legendary Innovator
Legendary Innovator
Hello,

1) This is possible theoretically, but problematic in a practical way.
2) You could duplicate the alfresco.war / share.war in your Tomcat and call them alfresco2.war and share2.war - when you start your Tomcat, you will be able to access these via the /alfresco2/ and /share2/ URL prefix.

There are a couple of reasons why this is not a good idea to do - the following are the most relevant that come to my mind:
1) Memory consumption - running multiple Alfresco Repository instances on the same Tomcat will linearily increase the memory requirements.
2) Startup times / Restart round-trip duration - running multiple Alfresco instances on the same Tomcat will (most likely) linearily increase the time your server needs for startup / restarts. This can be critical in failure recovery / configuration change situations, where a single Tomcat instance means that you will have to restart ALL Alfresco instances if just one of them is affected.
3) Configuration - Alfresco is configured using <tomcat_root>/shared/classes/alfresco/extension and <tomcat_root>/shared/classes/alfresco/web-extension directories. You can not have configuration for multiple Alfresco instances in that location - they will always share the configuration and run into configuration conflicts (i.e. same ports …)

It is recommended to use different machines for different Alfresco instances. It is also recommended to separate the Share web application from the Repository onto separate Tomcat instances or even machines.
I would NOT recommend attempting to run multiple Alfresco instances in one Tomcat.

Regards
Axel

mbee
Champ in-the-making
Champ in-the-making
Hi,
You can change location of your configuration files in:
for Alfresco: /WEB-INF/classes/alfresco/web-client-application-context.xml and web-scripts-application-context.xml
for Share: /WEB-INF/classes/alfresco/slingshot-application-context.xml

for example /shared/classes/alfresco/extension/… for Alfresco1 and /shared/classes/alfresco/extension2/…. for Alfresco2

Tom

mrogers
Star Contributor
Star Contributor
I agree with axel.   However if pushed I'd run two instances of tomcat then at least I can shut one down without affecting the other.   

And it's never recommend hacking the files below web-inf.