cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco crashes

trelp
Champ on-the-rise
Champ on-the-rise
Hi all,

My Alfresco 3.4.d seems to be working OK but, all of a suddent, it's not working.

When I see the log file I can see the following error repeated several times when Alfresco was working OK.


17:00:19,760 ERROR [org.alfresco.webdav.protocol] Internal Server Error:
org.alfresco.error.AlfrescoRuntimeException: 05182915 Exception in Transaction.
        at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:466)
        at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:272)
        at org.alfresco.repo.webdav.WebDAVMethod.execute(WebDAVMethod.java:310)
        at org.alfresco.repo.webdav.WebDAVServlet.service(WebDAVServlet.java:131)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.alfresco.repo.webdav.auth.AuthenticationFilter.doFilter(AuthenticationFilter.java:172)
        at sun.reflect.GeneratedMethodAccessor463.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.alfresco.repo.management.subsystems.ChainingSubsystemProxyFactory$1.invoke(ChainingSubsystemProxyFactory.java:116)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
        at $Proxy233.doFilter(Unknown Source)
        at org.alfresco.repo.web.filter.beans.BeanProxyFilter.doFilter(BeanProxyFilter.java:82)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.alfresco.web.app.servlet.GlobalLocalizationFilter.doFilter(GlobalLocalizationFilter.java:58)
        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:127)
        at com.googlecode.psiprobe.Tomcat60AgentValve.invoke(Tomcat60AgentValve.java:30)
        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:298)
        at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)
        at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:291)
        at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:769)
        at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:698)
        at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:891)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)
        at java.lang.Thread.run(Thread.java:619)
Caused by: java.io.IOException
        at org.apache.jk.common.JkInputStream.receive(JkInputStream.java:205)
        at org.apache.jk.common.JkInputStream.refillReadBuffer(JkInputStream.java:265)
        at org.apache.jk.common.JkInputStream.doRead(JkInputStream.java:183)
        at org.apache.coyote.Request.doRead(Request.java:428)
        at org.apache.catalina.connector.InputBuffer.realReadBytes(InputBuffer.java:304)
        at org.apache.tomcat.util.buf.ByteChunk.substract(ByteChunk.java:405)
        at org.apache.catalina.connector.InputBuffer.read(InputBuffer.java:327)
        at org.apache.catalina.connector.CoyoteInputStream.read(CoyoteInputStream.java:162)
        at org.springframework.util.FileCopyUtils.copy(FileCopyUtils.java:112)
        at org.alfresco.repo.webdav.WebDAVMethod.getRequestBodyAsFile(WebDAVMethod.java:256)
        at org.alfresco.repo.webdav.WebDAVMethod.access$200(WebDAVMethod.java:80)
        at org.alfresco.repo.webdav.WebDAVMethod$1.getInputStream(WebDAVMethod.java:162)
        at org.alfresco.repo.webdav.PutMethod.executeImpl(PutMethod.java:169)
        at org.alfresco.repo.webdav.WebDAVMethod$2.execute(WebDAVMethod.java:302)
        at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:381)
        … 34 more


After a lot of errors like this, it finally appears the following error (this is when alfresco finally crashes).


17:26:34,236 ERROR [org.alfresco.web.bean.content.BaseContentWizard] Failed to get encoding from file: TERPEL_AR_Revalidación incidentes VA mayor valor del inventario.doc
java.lang.OutOfMemoryError: Java heap space


Does anybody know what can be happening or how can I solve it?
1 REPLY 1

afaust
Legendary Innovator
Legendary Innovator
Hello,

Java heap space errors are an indication that you might have allocated too little RAM to your Alfresco tomcat Java Virtual Machine. Depending on your current configuration, you might want to think about increasing the value of -Xmx if it is not already on a reasonable level (I say at minimum 1 GiB, suggested personal minimum 2 GiB).

About the preceeding IOException it is hard to tell what might be the cause. Do you have additional logs, e.g. from your Apache HTTPd server in front of Alfresco or catalina.out / localhost.txt / localhost.log, that may shed some light?

Regards
Axel