xornand / alfresco-business-reporting

Automatically exported from code.google.com/p/alfresco-business-reporting
0 stars 0 forks source link

Inital extraction of document failing #8

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi,

This is a very good add-on to have but for some reasons the extraction of 
document is failing. I am using alfreco-4.1.1.3. The document extraction 
managed to reach 1085 documents but it fails intermittently and eventually 
running out of memory. I have allocated 4 GB of memory to the JVM but still get 
out of memory error.

The error I am getting is as follows;

05:24:18,140 ERROR [org.quartz.core.JobRunShell] Job 
DEFAULT.scheduledFillReportingDatabaseJob threw an unhandled Exception: 
org.alfresco.scripts.ScriptException: 02210290 Failed to execute script 
'alfresco/extension/scripts/fillReportingDatabase.js': 02210289 Java heap space
    at org.alfresco.repo.jscript.RhinoScriptProcessor.execute(RhinoScriptProcessor.java:202)
    at org.alfresco.repo.processor.ScriptServiceImpl.execute(ScriptServiceImpl.java:212)
    at org.alfresco.repo.processor.ScriptServiceImpl.executeScript(ScriptServiceImpl.java:164)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
    at org.alfresco.repo.security.permissions.impl.AlwaysProceedMethodInterceptor.invoke(AlwaysProceedMethodInterceptor.java:34)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
    at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:46)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
    at org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInterceptor.java:159)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
    at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
    at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
    at $Proxy158.executeScript(Unknown Source)
    at org.alfresco.repo.jscript.ExecuteScriptJob.execute(ExecuteScriptJob.java:80)
    at org.quartz.core.JobRunShell.run(JobRunShell.java:216)
    at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:563)
Caused by: org.alfresco.error.AlfrescoRuntimeException: 02210289 Java heap space
    at org.alfresco.repo.jscript.RhinoScriptProcessor.executeScriptImpl(RhinoScriptProcessor.java:516)
    at org.alfresco.repo.jscript.RhinoScriptProcessor.execute(RhinoScriptProcessor.java:198)

Can you please advice?

Kind Regards,

Seedim

Original issue reported on code.google.com by seedi...@gmail.com on 21 Mar 2013 at 11:35

GoogleCodeExporter commented 8 years ago
Hi Seedim,

That is weird. I have never run into this kind of error, and my memory settings 
are modest... Can you please tell me:
* how many GB of memory your system has, 
* if the OS is windows or linux, 
* if the OS is 32bit or 64bit
* the memory settings of Alfresco (usually in the settings starting tomcat6w, 
or in alfresco.bat or .sh, if not then in tomcat/bin/startup.bat or .sh)

Thanks

Original comment by tjarda.p...@incentro.com on 5 Apr 2013 at 7:30

GoogleCodeExporter commented 8 years ago
Thanks for getting back to me.

*The system has 8 GB of memory.
*The OS is redhat linux.
*The OS is 64bit
*The memory settings for Alfresco is 4 GB.

Kind Regards,

Seed

Original comment by seedi...@gmail.com on 7 Apr 2013 at 11:20

GoogleCodeExporter commented 8 years ago
Seed,

Somewhere in alfresco.sh there is a setting like set JAVA_OPTS=-Xms512m 
-Xmx1024m -Xss1024k ... 
This is the setting I am looking for. 8GB/4GB should be no problem at all!

Tjarda

Original comment by tjarda.p...@incentro.com on 13 Apr 2013 at 8:47

GoogleCodeExporter commented 8 years ago
Since no response, I assume this issue can be closed... Please feel free to 
re-open if needed...

Tjarda

Original comment by tjarda.p...@incentro.com on 6 Apr 2014 at 10:24