AnsweredAssumed Answered

Open Office Memory Allocation issue

Question asked by gmurphy on Aug 22, 2011
Latest reply on Nov 9, 2011 by ezah
Folks,

I have Linux, MYSQL, Alfresco stack and I'm having an issue with Open Office. It seems to intermittently use all available memory until it falls over and you get the message cannot load the previewer on the share interface. This seems to happen because Open Office does not release memory it has been allocated and then at times spikes all of a sudden to use all available memory. I cannot seem to get to the root cause of the issue and was wondering has anyone seen the issue before. Below is a extract of errors from the alfresco.log relating to the issue.




09:48:59,896 ERROR [org.alfresco.repo.action.AsynchronousActionExecutionQueueImpl] Failed to execute asynchronous action: Action[ id=3be24ddf-6a63-460f-bd71-73c34f648539, node=null ]
org.alfresco.service.cmr.repository.ContentIOException: 07220025 Content conversion failed:
   reader: ContentAccessor[ contentUrl=store://2011/8/22/9/40/04a452bc-3bb1-4642-9186-bc34ff0f2ffb.bin, mimetype=application/msword, size=1242624, encoding=UTF-8, locale=en_US]
   writer: ContentAccessor[ contentUrl=store://2011/8/22/9/47/6f5bbc4f-25ca-4b6e-8154-b3c5a03250b0.bin, mimetype=image/png, size=0, encoding=UTF-8, locale=en_US]
   options: ImageTransformationOptions[ commandOptions=, resizeOptions=org.alfresco.repo.content.transform.magick.ImageResizeOptions@6d758b05]
   at org.alfresco.repo.content.transform.AbstractContentTransformer2.transform(AbstractContentTransformer2.java:176)
   at org.alfresco.repo.content.ContentServiceImpl.transform(ContentServiceImpl.java:537)
   at org.alfresco.repo.thumbnail.ThumbnailServiceImpl$2.doWork(ThumbnailServiceImpl.java:349)
   at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(AuthenticationUtil.java:514)
   at org.alfresco.repo.thumbnail.ThumbnailServiceImpl.updateThumbnail(ThumbnailServiceImpl.java:298)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:304)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
   at org.alfresco.repo.security.permissions.impl.AlwaysProceedMethodInterceptor.invoke(AlwaysProceedMethodInterceptor.java:40)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
   at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:49)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
   at org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInterceptor.java:148)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
   at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
   at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
   at $Proxy99.updateThumbnail(Unknown Source)
   at org.alfresco.repo.thumbnail.UpdateThumbnailActionExecuter.executeImpl(UpdateThumbnailActionExecuter.java:117)
   at org.alfresco.repo.action.executer.ActionExecuterAbstractBase.execute(ActionExecuterAbstractBase.java:127)
   at org.alfresco.repo.action.ActionServiceImpl.directActionExecution(ActionServiceImpl.java:711)
   at org.alfresco.repo.action.executer.CompositeActionExecuter.executeImpl(CompositeActionExecuter.java:72)
   at org.alfresco.repo.action.executer.ActionExecuterAbstractBase.execute(ActionExecuterAbstractBase.java:127)
   at org.alfresco.repo.action.ActionServiceImpl.directActionExecution(ActionServiceImpl.java:711)
   at org.alfresco.repo.action.ActionServiceImpl.executeActionImpl(ActionServiceImpl.java:648)
   at org.alfresco.repo.action.AsynchronousActionExecutionQueueImpl$ActionExecutionWrapper$1$1.execute(AsynchronousActionExecutionQueueImpl.java:369)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:327)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:234)
   at org.alfresco.repo.action.AsynchronousActionExecutionQueueImpl$ActionExecutionWrapper$1.doWork(AsynchronousActionExecutionQueueImpl.java:378)
   at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(AuthenticationUtil.java:514)
   at org.alfresco.repo.action.AsynchronousActionExecutionQueueImpl$ActionExecutionWrapper.run(AsynchronousActionExecutionQueueImpl.java:381)
   at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)
Caused by: org.alfresco.service.cmr.repository.ContentIOException: 07220024 Content conversion failed:
   reader: ContentAccessor[ contentUrl=store:///var/software/alfresco/tomcat/temp/Alfresco/ComplextTransformer_intermediate_doc_4015313584401009275.pdf, mimetype=application/pdf, size=14475279, encoding=UTF-8, locale=en_US]
   writer: ContentAccessor[ contentUrl=store://2011/8/22/9/47/6f5bbc4f-25ca-4b6e-8154-b3c5a03250b0.bin, mimetype=image/png, size=0, encoding=UTF-8, locale=en_US]
   options: ImageTransformationOptions[ commandOptions=, resizeOptions=org.alfresco.repo.content.transform.magick.ImageResizeOptions@6d758b05]
   at org.alfresco.repo.content.transform.AbstractContentTransformer2.transform(AbstractContentTransformer2.java:176)
   at org.alfresco.repo.content.transform.ComplexContentTransformer.transformInternal(ComplexContentTransformer.java:154)
   at org.alfresco.repo.content.transform.AbstractContentTransformer2.transform(AbstractContentTransformer2.java:167)
   … 37 more
Caused by: org.alfresco.service.cmr.repository.ContentIOException: 07220023 Content conversion failed:
   reader: ContentAccessor[ contentUrl=store:///var/software/alfresco/tomcat/temp/Alfresco/ComplextTransformer_intermediate_pdf_658569504107025536.png, mimetype=image/png, size=38009, encoding=UTF-8, locale=en_US]
   writer: ContentAccessor[ contentUrl=store://2011/8/22/9/47/6f5bbc4f-25ca-4b6e-8154-b3c5a03250b0.bin, mimetype=image/png, size=0, encoding=UTF-8, locale=en_US]
   options: ImageTransformationOptions[ commandOptions=, resizeOptions=org.alfresco.repo.content.transform.magick.ImageResizeOptions@6d758b05]
   at org.alfresco.repo.content.transform.AbstractContentTransformer2.transform(AbstractContentTransformer2.java:176)
   at org.alfresco.repo.content.transform.ComplexContentTransformer.transformInternal(ComplexContentTransformer.java:154)
   at org.alfresco.repo.content.transform.AbstractContentTransformer2.transform(AbstractContentTransformer2.java:167)
   … 39 more
Caused by: org.alfresco.service.cmr.repository.ContentIOException: 07220022 Failed to perform ImageMagick transformation:
Execution result:
   os:         Linux
   command:    [/usr/bin/convert, /var/software/alfresco/tomcat/temp/Alfresco/ImageMagickContentTransformerWorker_source_3864749123139303702.png[0], -thumbnail, 100x100, /var/software/alfresco/tomcat/temp/Alfresco/ImageMagickContentTransformerWorker_target_6982496462370035928.png]
   succeeded:  false
   exit code:  1
   out:       
   err:        Cannot run program "/usr/bin/convert": java.io.IOException: error=12, Cannot allocate memory
   at org.alfresco.repo.content.transform.magick.ImageMagickContentTransformerWorker.transformInternal(ImageMagickContentTransformerWorker.java:173)
   at org.alfresco.repo.content.transform.magick.AbstractImageMagickContentTransformerWorker.transform(AbstractImageMagickContentTransformerWorker.java:223)
   at sun.reflect.GeneratedMethodAccessor676.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at org.alfresco.repo.management.subsystems.SubsystemProxyFactory$1.invoke(SubsystemProxyFactory.java:77)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
   at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
   at $Proxy35.transform(Unknown Source)
   at org.alfresco.repo.content.transform.ProxyContentTransformer.transformInternal(ProxyContentTransformer.java:66)
   at org.alfresco.repo.content.transform.AbstractContentTransformer2.transform(AbstractContentTransformer2.java:167)
   … 41 more



Thanks,
Gerald

Outcomes