cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco and Liferay as a war running under one tomcat

mandana
Champ in-the-making
Champ in-the-making
Hi There,

I am new to alfresco and we are recently providing a portal and alfresco solution to an enterprise level organization, we will be using ichain accelerator for sso to novell eDirectory.
One of the proposed plans in our architecture is having liferay and alfresco running as a war under one tomcat and proving the sso at tomcat level the os will be suse linux. The database will be mysql and will be running on a different linux server.
I noticed in my machine (windows 2GB memory and dual processor) this combination runs a lot slower than having two tomcats on different ports. I am concerned about performance and also lucene indexing in liferay vs alfresco under one tomcat and I know they have different directories and databases, could this be a real problem? is there any other issue that I am not aware of?
They will be using alfresco as a document management solution a lot more extensive than the portal.

Thanks,

M
2 REPLIES 2

mrogers
Star Contributor
Star Contributor
You may be able to tune your configuration of Alfresco to run on your machine better. Out of the box Alfresco is configured with a fairly big footprint for a small Enterprise, its not targeted for smaller developer class machines.

I'd check how the garbage collector is working and whether there's memory paging going on.

As for two tomcats running faster than one then that sounds like there's a contention problem somewhere with neither app able to get enough resources.  Is your OS limiting the amount of CPU each instance of tomcat gets?

mandana
Champ in-the-making
Champ in-the-making
thanks mrogers,

the scenario that I gave you on two tomcats running better that one is on my own laptop (win xp) and as far as I know there are no configuration to limit the amount of CPU used by each instances of tomcat. The only thing that I have done on tomcat is adding :
set JAVA_OPTS=%JAVA_OPTS% -Xmx1024m -XX:MaxPermSize=512m -Dfile.encoding=UTF8 -Duser.timezone=GMT -Djava.security.auth.login.config="%CATALINA_HOME%/conf/jaas.config" -Dorg.apache.catalina.loader.WebappClassLoader.ENABLE_CLEAR_REFERENCES=false

to be able to run both otherwise tomcat was crashing with out of memory error and after I added this to setenv.bat
it can run. I still appreciate your feedback about garbage collector and memory paging. Also I just remembered that liferay and alfresco are using lucene for indexing, could that be another problem?

M