cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco Share Performance Issue

jvehent
Champ in-the-making
Champ in-the-making
Hi there,


I'm setting up Alfresco Community 3.2 on a Linux Debian server and I'm experiencing performance issue with the Share component.

My setup works perfectly with Alfresco Explorer. I use LargePages (hugetlbfs) and my SUN JVM starts as follow:

/usr/lib/jvm/java-6-sun/bin/java 

-Xms1g -Xmx1g -XX:NewSize=300m -Xss1024k
-XX:MaxPermSize=128m -server -XX:+UseLargePages

-Dalfresco.home=/etc/alfresco -XX:CompileCommand=exclude,org/apache/lucene/index/IndexReader$1,doBody -XX:CompileCommand=exclude,org/alfresco/repo/search/impl/lucene/index/IndexInfo$Merger,mergeIndexes -XX:CompileCommand=exclude,org/alfresco/repo/search/impl/lucene/index/IndexInfo$Merger,mergeDeletions -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=/etc/alfresco/tomcat/conf/logging.properties -Djava.endorsed.dirs=/etc/alfresco/tomcat/endorsed -classpath :/etc/alfresco/tomcat/bin/bootstrap.jar -Dcatalina.base=/etc/alfresco/tomcat -Dcatalina.home=/etc/alfresco/tomcat -Djava.io.tmpdir=/etc/alfresco/tomcat/temp org.apache.catalina.startup.Bootstrap start

/proc/meminfo shows the correct use of LargePage

$ grep -i huge /proc/meminfo
HugePages_Total:   350
HugePages_Free:     71
HugePages_Rsvd:      9
HugePages_Surp:      0
Hugepagesize:     4096 kB

As I said, Alfresco Explorer works perfectly fine (fast, not error). But when I try to use Alfresco Share, the login process takes forever and when I finally reach the dashboard, I get the following message in some of the boxes :

An error has occured in the Share component: 
/share/service/components/dashlets/my-sites.
It responded with a status of 500 - Internal Error.
Error Code Information: 500 - An error inside the HTTP server which
prevented it from fulfilling the request.
Error Message: 09280002 Failed to process template
org/alfresco/components/dashlets/my-sites.get.html.ftl
Server: Alfresco Community v3.2.0 (2039) schema 2 019
Time: 28 oct. 2009 08:05:09
Click here to view full technical information on the error.
Exception: freemarker.core.InvalidReferenceException - Expression
imapServerEnabled is undefined on line 4, column 22 in
org/alfresco/components/dashlets/my-sites.get.html.ftl.
freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:124)
freemarker.core.TemplateObject.invalidTypeException(TemplateObject.java:134)
freemarker.core.BuiltIn$stringBI._getAsTemplateModel(BuiltIn.java:361)
freemarker.core.Expression.getAsTemplateModel(Expression.java:89)
freemarker.core.Expression.getStringValue(Expression.java:93)
freemarker.core.DollarVariable.accept(DollarVariable.java:76)
freemarker.core.Environment.visit(Environment.java:208)
freemarker.core.MixedContent.accept(MixedContent.java:92)
freemarker.core.Environment.visit(Environment.java:208)
freemarker.core.Environment.process(Environment.java:188)
freemarker.template.Template.process(Template.java:237)
org.alfresco.web.scripts.PresentationTemplateProcessor.process(PresentationTemplateProcessor.java:185)
org.alfresco.web.scripts.AbstractWebScript.renderTemplate(AbstractWebScript.java:523)
org.alfresco.web.scripts.DeclarativeWebScript.renderFormatTemplate(DeclarativeWebScript.java:241)
org.alfresco.web.scripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:147)
org.alfresco.web.scripts.PresentationContainer.executeScript(PresentationContainer.java:60)
org.alfresco.web.scripts.LocalWebScriptRuntimeContainer.executeScript(LocalWebScriptRuntimeContainer.java:186)
org.alfresco.web.scripts.AbstractRuntime.executeScript(AbstractRuntime.java:262)
org.alfresco.web.scripts.AbstractRuntime.executeScript(AbstractRuntime.java:139)
org.alfresco.web.scripts.WebScriptProcessor.executeBody(WebScriptProcessor.java:329)
org.alfresco.web.framework.render.AbstractProcessor.execute(AbstractProcessor.java:85)
org.alfresco.web.framework.render.RenderHelper.processComponent(RenderHelper.java:341)
org.alfresco.web.framework.render.RenderUtil.renderRawComponent(RenderUtil.java:451)
org.alfresco.web.framework.render.RenderUtil.renderRawComponent(RenderUtil.java:434)
org.alfresco.web.framework.render.bean.ComponentRenderer.body(ComponentRenderer.java:135)
org.alfresco.web.framework.render.RenderUtil.renderRegionComponents(RenderUtil.java:328)
org.alfresco.web.site.taglib.RegionIncludeTag.doStartTag(RegionIncludeTag.java:43)
org.alfresco.tools.TagUtil.execute(TagUtil.java:147)
org.alfresco.tools.TagUtil.execute(TagUtil.java:81)
org.alfresco.web.scripts.FreemarkerTagSupportDirective.executeTag(FreemarkerTagSupportDirective.java:89)
org.alfresco.web.scripts.GenericFreemarkerTagDirective.execute(GenericFreemarkerTagDirective.java:127)
freemarker.core.Environment.visit(Environment.java:261)
freemarker.core.UnifiedCall.accept(UnifiedCall.java:126)
freemarker.core.Environment.visit(Environment.java:208)
freemarker.core.MixedContent.accept(MixedContent.java:92)
freemarker.core.Environment.visit(Environment.java:208)
freemarker.core.Environment.process(Environment.java:188)
freemarker.template.Template.process(Template.java:237)
org.alfresco.web.scripts.PresentationTemplateProcessor.process(PresentationTemplateProcessor.java:185)
org.alfresco.web.scripts.FreemarkerProcessor.executeBody(FreemarkerProcessor.java:266)
org.alfresco.web.framework.render.AbstractProcessor.execute(AbstractProcessor.java:85)
org.alfresco.web.framework.render.RenderHelper.processRenderable(RenderHelper.java:278)
org.alfresco.web.framework.render.bean.ChromeRenderer.body(ChromeRenderer.java:60)
org.alfresco.web.framework.render.AbstractRenderer.render(AbstractRenderer.java:105)
org.alfresco.web.framework.render.bean.RegionRenderer.body(RegionRenderer.java:134)
org.alfresco.web.framework.render.AbstractRenderer.render(AbstractRenderer.java:105)
org.alfresco.web.framework.render.RenderUtil.startRegionRenderer(RenderUtil.java:273)
org.alfresco.web.framework.render.RenderUtil.renderRegion(RenderUtil.java:213)
org.alfresco.web.framework.render.PresentationUtil.renderRegion(PresentationUtil.java:125)
org.alfresco.web.site.taglib.RegionTag.doStartTag(RegionTag.java:109)
org.alfresco.tools.TagUtil.execute(TagUtil.java:147)
org.alfresco.tools.TagUtil.execute(TagUtil.java:81)
org.alfresco.web.scripts.FreemarkerTagSupportDirective.executeTag(FreemarkerTagSupportDirective.java:89)
org.alfresco.web.scripts.RegionFreemarkerTagDirective.execute(RegionFreemarkerTagDirective.java:128)
freemarker.core.Environment.visit(Environment.java:261)
freemarker.core.UnifiedCall.accept(UnifiedCall.java:126)
freemarker.core.Environment.visit(Environment.java:208)
freemarker.core.IteratorBlock$Context.runLoop(IteratorBlock.java:179)
freemarker.core.Environment.visit(Environment.java:415)
freemarker.core.IteratorBlock.accept(IteratorBlock.java:102)
freemarker.core.Environment.visit(Environment.java:208)
freemarker.core.MixedContent.accept(MixedContent.java:92)
freemarker.core.Environment.visit(Environment.java:208)
freemarker.core.IteratorBlock$Context.runLoop(IteratorBlock.java:179)
freemarker.core.Environment.visit(Environment.java:415)
freemarker.core.IteratorBlock.accept(IteratorBlock.java:102)
freemarker.core.Environment.visit(Environment.java:208)
freemarker.core.MixedContent.accept(MixedContent.java:92)
freemarker.core.Environment.visit(Environment.java:208)
freemarker.core.Macro$Context.runMacro(Macro.java:164)
freemarker.core.Environment.visit(Environment.java:601)
freemarker.core.UnifiedCall.accept(UnifiedCall.java:106)
freemarker.core.Environment.visit(Environment.java:208)
freemarker.core.IfBlock.accept(IfBlock.java:82)
freemarker.core.Environment.visit(Environment.java:208)
freemarker.core.Macro$Context.runMacro(Macro.java:164)
freemarker.core.Environment.visit(Environment.java:601)
freemarker.core.UnifiedCall.accept(UnifiedCall.java:106)
freemarker.core.Environment.visit(Environment.java:208)
freemarker.core.MixedContent.accept(MixedContent.java:92)
freemarker.core.Environment.visit(Environment.java:208)
freemarker.core.Environment.visit(Environment.java:393)
freemarker.core.BodyInstruction.accept(BodyInstruction.java:93)
freemarker.core.Environment.visit(Environment.java:208)
freemarker.core.MixedContent.accept(MixedContent.java:92)
freemarker.core.Environment.visit(Environment.java:208)
freemarker.core.Macro$Context.runMacro(Macro.java:164)
freemarker.core.Environment.visit(Environment.java:601)
freemarker.core.UnifiedCall.accept(UnifiedCall.java:106)
freemarker.core.Environment.visit(Environment.java:208)
freemarker.core.MixedContent.accept(MixedContent.java:92)
freemarker.core.Environment.visit(Environment.java:208)
freemarker.core.Environment.process(Environment.java:188)
freemarker.template.Template.process(Template.java:237)
org.alfresco.web.scripts.PresentationTemplateProcessor.process(PresentationTemplateProcessor.java:185)
org.alfresco.web.scripts.FreemarkerProcessor.executeBody(FreemarkerProcessor.java:266)
org.alfresco.web.framework.render.AbstractProcessor.execute(AbstractProcessor.java:85)
org.alfresco.web.framework.render.RenderHelper.processTemplate(RenderHelper.java:385)
org.alfresco.web.framework.render.bean.TemplateInstanceRenderer.body(TemplateInstanceRenderer.java:140)
org.alfresco.web.framework.render.AbstractRenderer.render(AbstractRenderer.java:105)
org.alfresco.web.framework.render.bean.PageRenderer.body(PageRenderer.java:81)
org.alfresco.web.framework.render.AbstractRenderer.render(AbstractRenderer.java:105)
org.alfresco.web.framework.render.RenderUtil.startPageRenderer(RenderUtil.java:144)
org.alfresco.web.framework.render.RenderUtil.renderPage(RenderUtil.java:117)
org.alfresco.web.framework.render.PresentationUtil.renderPage(PresentationUtil.java:86)
org.alfresco.web.site.servlet.DispatcherServlet.dispatchPage(DispatcherServlet.java:512)
org.alfresco.web.site.servlet.DispatcherServlet.dispatch(DispatcherServlet.java:389)
org.alfresco.web.site.servlet.DispatcherServlet.service(DispatcherServlet.java:165)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)
org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283)
org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767)
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:697)
org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)
java.lang.Thread.run(Thread.java:619)
Exception: org.alfresco.web.scripts.WebScriptException - 09280002 Failed
to process template org/alfresco/components/dashlets/my-sites.get.html.ftl
org.alfresco.web.scripts.PresentationTemplateProcessor.process(PresentationTemplateProcessor.java:189)


I can still browse the sites, but it's really slow (around 20 secondes to 1/2 minutes per request).

Can you please help me fix this issue?   :?:
3 REPLIES 3

jvehent
Champ in-the-making
Champ in-the-making
Another error, this time when I opne the detail of a folder in Alfresco Share :


An error has occured in the Share component: /share/service/components/form.
It responded with a status of 500 - Erreur Interne de Servlet.
Error Code Information: 500 - Le serveur a recontrer une erreur interne qui l''a empêché de satisfaire la requête.
Error Message: 09280007 Failed to load script '/org/alfresco/components/form/form.get.js (in classpath store file:/etc/alfresco/tomcat/webapps/share/WEB-INF/classes/alfresco/site-webscripts)': 09280006
Server: Alfresco Community v3.2.0 (2039) schema 2 019
Time: 28 oct. 2009 10:26:37
Click here to view full technical information on the error.
Exception: org.alfresco.web.scripts.WebScriptException - 09280006
org.alfresco.web.scripts.PresentationScriptProcessor.executeScriptImpl(PresentationScriptProcessor.java:316)
Exception: org.alfresco.web.scripts.WebScriptException - 09280007 Failed to load script '/org/alfresco/components/form/form.get.js (in classpath store file:/etc/alfresco/tomcat/webapps/share/WEB-INF/classes/alfresco/site-webscripts)': 09280006
org.alfresco.web.scripts.PresentationScriptProcessor.executeScript(PresentationScriptProcessor.java:193)

I really have no clue on how to fix this…

fred-xte
Champ in-the-making
Champ in-the-making
Dear jvehent

have you solved your problem ?
anyone can help ?  I have the same issue on my installation.

Merci

kbonnet
Champ in-the-making
Champ in-the-making
Same here. On my Windows 2008 R2 server Alfresco Explorer is blazing fast and the site dashboards and document libraries are unacceptable slow. Anyone else having these problems?

Running Alfresco Community 4.0.0.

Koen