cancel
Showing results for 
Search instead for 
Did you mean: 

java.lang.OutOfMemoryError: Java heap space

agey
Champ in-the-making
Champ in-the-making
Hi all,

We are working with Alfresco for 2 years and it works fine until two months ago. Sometimes in the evening, after working with Alfresco all day, it returns a java.lang.OutOfMemoryError: Java heap space error.

Java options are configured in this way:
JAVA_OPTS=-Xms128m -Xmx1024m -Xss96k -XX:MaxPermSize=256m -server

We are using Alfresco Labs version 3.0 and Java 1.6. When the error occurs, two or three persons are working with Alfresco (creating new content and saving document properties). Usually we create about 200 documents in Alfresco per day. Can anyone point me an idea how to solve this error?

Thanks a lot in advance,
2 REPLIES 2

gyro_gearless
Champ in-the-making
Champ in-the-making
Maybe post the complete stacktrace of your OutOfMemoryError - sometimes this error occurs within the Lucene indexing subsystem, without being really an error!
Does the system still work as expected?

Cheers
Gyro

agey
Champ in-the-making
Champ in-the-making
Hi Gyro,

This is the stacktrace error:

14:29:02,156 ERROR [org.alfresco.web.ui.common.Utils] No se puede completar el proceso. Se ha producido un error al crear el recorte.
org.alfresco.error.AlfrescoRuntimeException: Exception in Transaction.
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:404)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:227)
   at org.alfresco.web.bean.dialog.BaseDialogBean.finish(BaseDialogBean.java:127)
   at org.alfresco.web.bean.wizard.WizardManager.finish(WizardManager.java:580)
   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.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:132)
   at org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:61)
   at javax.faces.component.UICommand.broadcast(UICommand.java:109)
   at javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:97)
   at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:171)
   at org.apache.myfaces.lifecycle.InvokeApplicationExecutor.execute(InvokeApplicationExecutor.java:32)
   at org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:95)
   at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:70)
   at javax.faces.webapp.FacesServlet.service(FacesServlet.java:139)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at org.alfresco.web.app.servlet.AuthenticationFilter.doFilter(AuthenticationFilter.java:81)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
   at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
   at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
   at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
   at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.OutOfMemoryError: Java heap space
   at java.awt.image.DataBufferInt.<init>(DataBufferInt.java:41)
   at java.awt.image.Raster.createPackedRaster(Raster.java:458)
   at java.awt.image.DirectColorModel.createCompatibleWritableRaster(DirectColorModel.java:1015)
   at sun.awt.image.ImageRepresentation.createBufferedImage(ImageRepresentation.java:235)
   at sun.awt.image.ImageRepresentation.setPixels(ImageRepresentation.java:487)
   at sun.awt.image.OffScreenImageSource.sendPixels(OffScreenImageSource.java:119)
   at sun.awt.image.OffScreenImageSource.produce(OffScreenImageSource.java:169)
   at sun.awt.image.OffScreenImageSource.addConsumer(OffScreenImageSource.java:48)
   at sun.awt.image.OffScreenImageSource.startProduction(OffScreenImageSource.java:62)
   at sun.awt.image.ImageRepresentation.startProduction(ImageRepresentation.java:659)
   at sun.awt.image.ToolkitImage.addWatcher(ToolkitImage.java:203)
   at sun.awt.image.ToolkitImage.getHeight(ToolkitImage.java:124)
   at org.incis.web.bean.RecorteWizard.CrearNoticia(RecorteWizard.java:1237)
   at org.incis.web.bean.RecorteWizard.finishImpl(RecorteWizard.java:457)
   at org.alfresco.web.bean.dialog.BaseDialogBean$1.execute(BaseDialogBean.java:121)
   at org.alfresco.web.bean.dialog.BaseDialogBean$1.execute(BaseDialogBean.java:118)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:320)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:227)
   at org.alfresco.web.bean.dialog.BaseDialogBean.finish(BaseDialogBean.java:127)
   at org.alfresco.web.bean.wizard.WizardManager.finish(WizardManager.java:580)
   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.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:132)
   at org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:61)
   at javax.faces.component.UICommand.broadcast(UICommand.java:109)
   at javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:97)
   at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:171)
   at org.apache.myfaces.lifecycle.InvokeApplicationExecutor.execute(InvokeApplicationExecutor.java:32)
   at org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:95)
   at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:70)

When the error occurs the system doesn´t work: we can´t access to Alfresco and if we are already working in Alfresco, it returns an error.

Thank you very much for your time.