cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco hangs every morning

etzapata
Champ in-the-making
Champ in-the-making
Hi All,

Our Alfresco server should be running 24/7 but every morning (at least two weeks ago), the JBoss application server hangs. The log says out of memory error: java heap space.

javax.faces.FacesException: Error calling action method of component with id loginForm:submit
caused by:
javax.faces.el.EvaluationException: Exception while invoking expression #{LoginBean.login}
caused by:
java.lang.OutOfMemoryError: Java heap space

I tried searching for ages but none solved my problem. I tried editing my alfresco.bat to look like:

set JAVA_OPTS=-Xms512m -Xmx1024m -Xss64k -server -XX:+CMSPermGenSweepingEnabled -XX:MaxPermSize=128m

I also modified the run.conf located in C:\ALFRESCO\jboss\bin\:

# Specify options to pass to the Java VM.
#
if [ "x$JAVA_OPTS" = "x" ]; then
   JAVA_OPTS="-server -Xms128m -Xmx512m"
fi

but still get the said error.

What did I miss? This happens every morning for two weeks now. I need to restart JBoss so that Alfresco works again but the following morning, it stops again saying the above error. I always restart the server every morning…

Does anyone knows how to make this work? Please help anyone.

I am running Alfresco v1.4 with JBoss under windows 2003 server.

Thank you very much.

EriCtZ
6 REPLIES 6

etzapata
Champ in-the-making
Champ in-the-making
Hello everyone again,

This morning, I have this error again and the application server hangs. This happens every morning. please help anyone. :cry:
Thank you very much.

EriCtZ

pmonks
Star Contributor
Star Contributor
Have you looked through the logs, starting the previous evening, to see if there are any errant jobs running that are leaking memory?  There are a couple of background jobs that run overnight, including:
  1. the Lucene Index Backup Job (backs up the Lucene indexes) - runs at 3am by default

  2. the ContentStore Cleaner (permanently deletes orphaned files from the contentstore) - runs at 4am by default
It's highly unlikely that these jobs have memory leaks (since by default they're running every night in every Alfresco installation in existence), but there may be something specific to your configuration that's causing problems.

Also, do you have any other applications running in the same app server as Alfresco?

Cheers,
Peter

etzapata
Champ in-the-making
Champ in-the-making
Hi Peter,

Firstly, thank you very much for attending my concern. Really means a lot. For your query, there is no other application running in our server. This server is dedicated for Alfresco alone so the only application running is JBoss application server.

I have looked at last night's log (it's too long so I've just deleted the first hundred lines or so):

2008-04-18 18:08:57,468 INFO  [org.alfresco.repo.cache.EhCacheManagerFactoryBean] Initializing EHCache CacheManager
2008-04-18 18:08:57,515 WARN  [net.sf.ehcache.CacheManager] Creating a new instance of CacheManager using the diskStorePath "C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\" which is already used by an existing CacheManager.
The source of the configuration was URL of file:/C:/ALFRESCO/jboss/server/default/tmp/deploy/tmp65149alfresco-exp.war/WEB-INF/classes/alfresco/ehcache-transactional.xml.
The diskStore path for this CacheManager will be set to C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\\ehcache_auto_created_1208513337515.
To avoid this warning consider using the CacheManager factory methods to create a singleton CacheManager or specifying a separate ehcache configuration (ehcache.xml) for each CacheManager instance.
2008-04-18 18:08:59,968 INFO  [org.alfresco.repo.dictionary.DictionaryDAO] Loading model from alfresco/model/defaultCustomModel.xml
2008-04-18 18:08:59,984 INFO  [org.alfresco.repo.dictionary.DictionaryDAO] Registered model custom:customModel
2008-04-18 18:09:00,000 INFO  [org.alfresco.repo.dictionary.DictionaryDAO] Registered namespace 'custom.model' (prefix 'custom')
2008-04-18 18:09:01,718 INFO  [org.quartz.simpl.RAMJobStore] RAMJobStore initialized.
2008-04-18 18:09:01,734 INFO  [org.quartz.impl.StdSchedulerFactory] Quartz scheduler 'DefaultScheduler' initialized from an externally provided properties instance.
2008-04-18 18:09:01,750 INFO  [org.quartz.impl.StdSchedulerFactory] Quartz scheduler version: 1.4.5
2008-04-18 18:09:01,765 INFO  [org.quartz.core.QuartzScheduler] Scheduler DefaultScheduler_$_NON_CLUSTERED started.
2008-04-18 18:09:01,812 INFO  [org.alfresco.util.AbstractTriggerBean] Job ftsIndexerTrigger is active
2008-04-18 18:09:01,843 INFO  [org.alfresco.util.AbstractTriggerBean] Job missingContentReindexTrigger is active
2008-04-18 18:09:01,875 INFO  [org.alfresco.util.AbstractTriggerBean] Job indexRecoveryTrigger is active
2008-04-18 18:09:01,890 INFO  [org.alfresco.util.AbstractTriggerBean] Job tempFileCleanerTrigger is active
2008-04-18 18:09:01,921 INFO  [org.alfresco.util.AbstractTriggerBean] Job contentStoreCleanerTrigger is active
2008-04-18 18:09:01,953 INFO  [org.alfresco.util.AbstractTriggerBean] Job indexBackupTrigger is active
2008-04-18 18:09:01,968 WARN  [org.alfresco.util.AbstractTriggerBean] Job ehCacheTracerJob is not active
2008-04-18 18:09:04,421 WARN  [org.alfresco.repo.content.transform.OpenOfficeContentTransformer] connection failed: socket,host=localhost,port=8100,tcpNoDelay=1: java.net.ConnectException: Connection refused: connect
2008-04-18 18:09:05,031 INFO  [org.springmodules.workflow.jbpm31.LocalJbpmConfigurationFactoryBean] creating JbpmConfiguration from resource class path resource [org/alfresco/repo/workflow/jbpm/jbpm.cfg.xml]
2008-04-18 18:09:05,062 INFO  [org.springmodules.workflow.jbpm31.LocalJbpmConfigurationFactoryBean] using given Hibernate session factory
2008-04-18 18:09:05,187 INFO  [org.alfresco.repo.workflow] Registered Workflow Component 'jbpm' (class org.alfresco.repo.workflow.jbpm.JBPMEngine)
2008-04-18 18:09:05,203 INFO  [org.alfresco.repo.workflow] Registered Task Component 'jbpm' (class org.alfresco.repo.workflow.jbpm.JBPMEngine)
2008-04-18 18:09:05,265 INFO  [org.alfresco.repo.dictionary.DictionaryDAO] Loading model from alfresco/model/jcrModel.xml
2008-04-18 18:09:05,281 INFO  [org.alfresco.repo.dictionary.DictionaryDAO] Registered model jcr:jcrmodel
2008-04-18 18:09:05,296 INFO  [org.alfresco.repo.dictionary.DictionaryDAO] Registered namespace 'http://www.jcp.org/jcr/1.0' (prefix 'jcr')
2008-04-18 18:09:05,312 INFO  [org.alfresco.repo.dictionary.DictionaryDAO] Registered namespace 'http://www.jcp.org/jcr/nt/1.0' (prefix 'nt')
2008-04-18 18:09:05,328 INFO  [org.alfresco.repo.dictionary.DictionaryDAO] Registered namespace 'http://www.jcp.org/jcr/mix/1.0' (prefix 'mix')
2008-04-18 18:09:05,343 INFO  [org.alfresco.repo.dictionary.DictionaryDAO] Registered namespace 'http://www.jcp.org/jcr/sv/1.0' (prefix 'sv')
2008-04-18 18:09:05,359 INFO  [org.alfresco.repo.dictionary.DictionaryDAO] Registered namespace 'http://www.w3.org/XML/1998/namespace' (prefix 'xml')
2008-04-18 18:09:12,140 INFO  [org.alfresco.repo.dictionary.DictionaryDAO] Loading model from alfresco/workflow/workflowModel.xml
2008-04-18 18:09:12,156 INFO  [org.alfresco.repo.dictionary.DictionaryDAO] Registered model wf:workflowmodel
2008-04-18 18:09:12,171 INFO  [org.alfresco.repo.dictionary.DictionaryDAO] Registered namespace 'http://www.alfresco.org/model/workflow/1.0' (prefix 'wf')
2008-04-18 18:09:12,359 WARN  [org.jbpm.jpdl.xml.JpdlXmlReader] process xml warning: swimlane 'initiator' does not have an assignment
2008-04-18 18:09:12,406 WARN  [org.jbpm.jpdl.xml.JpdlXmlReader] process xml warning: swimlane 'reviewer' does not have an assignment
2008-04-18 18:09:12,593 WARN  [org.jbpm.jpdl.xml.JpdlXmlReader] process xml warning: swimlane 'initiator' does not have an assignment
2008-04-18 18:09:12,640 WARN  [org.jbpm.jpdl.xml.JpdlXmlReader] process xml warning: swimlane 'assignee' does not have an assignment
2008-04-18 18:09:14,156 INFO  [org.alfresco.repo.admin.patch.PatchExecuter] Checking for patches to apply …
2008-04-18 18:09:14,218 INFO  [org.alfresco.repo.admin.patch.PatchExecuter] No patches were required.
2008-04-18 18:09:14,375 INFO  [org.alfresco.filesys.smb.server.repo.ContentDiskDriver] Locked files will be marked as offline
2008-04-18 18:09:14,718 INFO  [org.alfresco.smb.protocol] CIFS server started
2008-04-18 18:09:14,718 INFO  [org.alfresco.smb.protocol] FTP server started
2008-04-18 18:09:14,750 INFO  [org.alfresco.smb.server] Starting server SMB …
2008-04-18 18:09:14,765 INFO  [org.alfresco.smb.protocol] SMB Server ALFRESCO-SERVER_A starting
2008-04-18 18:09:14,765 INFO  [org.alfresco.smb.protocol] GUID c8ccc5ae-740a-3a68-bf01-9fb26499aafa
2008-04-18 18:09:14,781 INFO  [org.alfresco.ftp.server] Starting server FTP …
2008-04-18 18:09:14,781 INFO  [org.alfresco.smb.protocol] Using authenticator org.alfresco.filesys.server.auth.AlfrescoAuthenticator
2008-04-18 18:09:14,796 INFO  [org.alfresco.service.descriptor.DescriptorService] Alfresco JVM - v1.5.0_09-b01; maximum heap size 986.125MB
2008-04-18 18:09:14,796 INFO  [org.alfresco.smb.protocol] Server timezone GMT+08:00, offset from UTC = -8hrs
2008-04-18 18:09:14,812 INFO  [org.alfresco.service.descriptor.DescriptorService] Alfresco started (Community Network): Current version 1.4.0 (build-105) schema 21 - Installed version 1.4.0 (build-105) schema 21
2008-04-18 18:09:14,828 INFO  [org.alfresco.smb.protocol] Shares:
2008-04-18 18:09:14,875 INFO  [org.alfresco.smb.protocol]  [Alfresco,DISK,,[workspace://SpacesStore/546c54c3-1c4c-11dc-9d07-25eb7d5e2264]] [workspace://SpacesStore/546c54c3-1c4c-11dc-9d07-25eb7d5e2264]
2008-04-18 18:09:14,890 INFO  [org.alfresco.smb.protocol] Add Share [IPC$,IPC$,,Admin,Hidden] : true
2008-04-18 18:09:19,828 INFO  [org.apache.coyote.http11.Http11Protocol] Starting Coyote HTTP/1.1 on http-0.0.0.0-8080
2008-04-18 18:09:19,984 INFO  [org.apache.jk.common.ChannelSocket] JK: ajp13 listening on /0.0.0.0:8009
2008-04-18 18:09:20,000 INFO  [org.apache.jk.server.JkMain] Jk running ID=0 time=0/63  config=null
2008-04-18 18:09:14,875 INFO  [org.alfresco.smb.protocol]  [Alfresco,DISK,,[workspace://SpacesStore/546c54c3-1c4c-11dc-9d07-25eb7d5e2264]] [workspace://SpacesStore/546c54c3-1c4c-11dc-9d07-25eb7d5e2264]
2008-04-18 18:09:14,890 INFO  [org.alfresco.smb.protocol] Add Share [IPC$,IPC$,,Admin,Hidden] : true
2008-04-18 18:09:19,828 INFO  [org.apache.coyote.http11.Http11Protocol] Starting Coyote HTTP/1.1 on http-0.0.0.0-8080
2008-04-18 18:09:19,984 INFO  [org.apache.jk.common.ChannelSocket] JK: ajp13 listening on /0.0.0.0:8009
2008-04-18 18:09:20,000 INFO  [org.apache.jk.server.JkMain] Jk running ID=0 time=0/63  config=null
2008-04-18 18:31:31,046 ERROR [org.alfresco.repo.action.executer.MailActionExecuter] Failed to send email to null
org.springframework.mail.MailSendException: Mail server connection failed; nested exception is javax.mail.MessagingException: Could not connect to SMTP host: mail.unionbankph.com, port: 25;
  nested exception is:
   java.net.ConnectException: Connection timed out: connect
javax.mail.MessagingException: Could not connect to SMTP host: mail.unionbankph.com, port: 25;
  nested exception is:
   java.net.ConnectException: Connection timed out: connect
   at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1213)
   at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:311)
   at javax.mail.Service.connect(Service.java:233)
   at org.springframework.mail.javamail.JavaMailSenderImpl.doSend(JavaMailSenderImpl.java:373)
   at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:326)
   at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:341)
   at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:330)
   at org.alfresco.repo.action.executer.MailActionExecuter.executeImpl(MailActionExecuter.java:291)
   at org.alfresco.repo.action.executer.ActionExecuterAbstractBase.execute(ActionExecuterAbstractBase.java:112)
   at org.alfresco.repo.action.ActionServiceImpl.directActionExecution(ActionServiceImpl.java:524)
   at org.alfresco.repo.action.executer.CompositeActionExecuter.executeImpl(CompositeActionExecuter.java:64)
   at org.alfresco.repo.action.executer.ActionExecuterAbstractBase.execute(ActionExecuterAbstractBase.java:112)
   at org.alfresco.repo.action.ActionServiceImpl.directActionExecution(ActionServiceImpl.java:524)
   at org.alfresco.repo.action.ActionServiceImpl.executeActionImpl(ActionServiceImpl.java:456)
   at org.alfresco.repo.action.ActionServiceImpl.executeAction(ActionServiceImpl.java:383)
   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:585)
   at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:335)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:181)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:148)
   at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:116)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170)
   at org.alfresco.repo.security.permissions.impl.AlwaysProceedMethodInterceptor.invoke(AlwaysProceedMethodInterceptor.java:32)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170)
   at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:41)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170)
   at org.alfresco.repo.audit.AuditComponentImpl.auditImpl(AuditComponentImpl.java:210)
   at org.alfresco.repo.audit.AuditComponentImpl.audit(AuditComponentImpl.java:156)
   at org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInterceptor.java:61)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170)
   at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170)
   at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:176)
   at $Proxy148.executeAction(Unknown Source)
   at org.alfresco.repo.rule.RuleServiceImpl.executeRule(RuleServiceImpl.java:907)
   at org.alfresco.repo.rule.RuleServiceImpl.executePendingRule(RuleServiceImpl.java:875)
   at org.alfresco.repo.rule.RuleServiceImpl.executePendingRulesImpl(RuleServiceImpl.java:846)
   at org.alfresco.repo.rule.RuleServiceImpl.executePendingRules(RuleServiceImpl.java:819)
   at org.alfresco.repo.rule.RuleTransactionListener.beforeCommit(RuleTransactionListener.java:61)
   at org.alfresco.repo.transaction.AlfrescoTransactionSupport$TransactionSynchronizationImpl.beforeCommit(AlfrescoTransactionSupport.java:585)
   at org.springframework.transaction.support.AbstractPlatformTransactionManager.triggerBeforeCommit(AbstractPlatformTransactionManager.java:657)
   at org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:482)
   at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:469)
   at org.springframework.transaction.interceptor.TransactionAspectSupport.doCommitTransactionAfterReturning(TransactionAspectSupport.java:266)
   at org.alfresco.util.transaction.SpringAwareUserTransaction.commit(SpringAwareUserTransaction.java:397)
   at org.alfresco.web.bean.BaseDetailsBean.approve(BaseDetailsBean.java:498)
   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:585)
   at org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:129)
   at javax.faces.component.UICommand.broadcast(UICommand.java:86)
   at javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:90)
   at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:164)
   at org.apache.myfaces.lifecycle.LifecycleImpl.invokeApplication(LifecycleImpl.java:316)
   at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:86)
   at javax.faces.webapp.FacesServlet.service(FacesServlet.java:105)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
   at org.alfresco.web.app.servlet.AuthenticationFilter.doFilter(AuthenticationFilter.java:73)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
   at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
   at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
   at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159)
   at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
   at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
   at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
   at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
   at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
   at java.lang.Thread.run(Thread.java:595)
2008-04-18 21:41:47,640 WARN  [org.alfresco.web.ui.repo.component.UIActions] Unable to find specified Action Group config ID: rules_actions_menu
2008-04-18 22:07:42,593 WARN  [org.springframework.util.FileCopyUtils] Could not close OutputStream
ClientAbortException:  java.net.SocketException: Connection reset by peer: socket write error
   at org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:366)
   at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:403)
   at org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:314)
   at org.apache.catalina.connector.OutputBuffer.close(OutputBuffer.java:278)
   at org.apache.catalina.connector.CoyoteOutputStream.close(CoyoteOutputStream.java:91)
   at org.springframework.util.FileCopyUtils.copy(FileCopyUtils.java:132)
   at org.alfresco.repo.content.AbstractContentReader.getContent(AbstractContentReader.java:342)
   at org.alfresco.web.app.servlet.BaseDownloadContentServlet.processDownloadRequest(BaseDownloadContentServlet.java:252)
   at org.alfresco.web.app.servlet.DownloadContentServlet.doGet(DownloadContentServlet.java:98)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
   at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
   at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
   at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159)
   at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
   at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
   at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
   at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
   at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
   at java.lang.Thread.run(Thread.java:595)
2008-04-18 22:07:42,593 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/alfresco].[downloadContent]] Servlet.service() for servlet downloadContent threw exception
org.alfresco.error.AlfrescoRuntimeException: Error during download content servlet processing: Failed to copy content to output stream:
   accessor: ContentAccessor[ contentUrl=store://2008/4/16/9/4/1f9751f9-0b51-11dd-9a3e-53e2169aa596.bin, mimetype=application/zip, size=4485036, encoding=UTF-8]
   at org.alfresco.web.app.servlet.BaseDownloadContentServlet.processDownloadRequest(BaseDownloadContentServlet.java:269)
   at org.alfresco.web.app.servlet.DownloadContentServlet.doGet(DownloadContentServlet.java:98)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
   at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
   at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
   at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159)
   at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
   at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
   at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
   at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
   at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
   at java.lang.Thread.run(Thread.java:595)
Caused by: org.alfresco.service.cmr.repository.ContentIOException: Failed to copy content to output stream:
   accessor: ContentAccessor[ contentUrl=store://2008/4/16/9/4/1f9751f9-0b51-11dd-9a3e-53e2169aa596.bin, mimetype=application/zip, size=4485036, encoding=UTF-8]
   at org.alfresco.repo.content.AbstractContentReader.getContent(AbstractContentReader.java:347)
   at org.alfresco.web.app.servlet.BaseDownloadContentServlet.processDownloadRequest(BaseDownloadContentServlet.java:252)
   … 22 more
Caused by: ClientAbortException:  java.net.SocketException: Connection reset by peer: socket write error
   at org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:366)
   at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:403)
   at org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:323)
   at org.apache.catalina.connector.OutputBuffer.writeBytes(OutputBuffer.java:392)
   at org.apache.catalina.connector.OutputBuffer.write(OutputBuffer.java:381)
   at org.apache.catalina.connector.CoyoteOutputStream.write(CoyoteOutputStream.java:76)
   at org.springframework.util.FileCopyUtils.copy(FileCopyUtils.java:118)
   at org.alfresco.repo.content.AbstractContentReader.getContent(AbstractContentReader.java:342)
   … 23 more
2008-04-18 22:07:42,593 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost]] Exception Processing ErrorPage[exceptionType=java.lang.Exception, location=/jsp/error.jsp]
java.lang.IllegalStateException
   at org.apache.coyote.Response.reset(Response.java:296)
   at org.apache.catalina.connector.Response.reset(Response.java:642)
   at org.apache.catalina.connector.Response.reset(Response.java:908)
   at org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:355)
   at org.apache.catalina.core.StandardHostValve.throwable(StandardHostValve.java:211)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:134)
   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
   at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
   at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
   at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
   at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
   at java.lang.Thread.run(Thread.java:595)
2008-04-18 22:08:15,859 WARN  [org.springframework.util.FileCopyUtils] Could not close OutputStream
ClientAbortException:  java.net.SocketException: Connection reset by peer: socket write error
   at org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:366)
   at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:403)
   at org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:314)
   at org.apache.catalina.connector.OutputBuffer.close(OutputBuffer.java:278)
   at org.apache.catalina.connector.CoyoteOutputStream.close(CoyoteOutputStream.java:91)
   at org.springframework.util.FileCopyUtils.copy(FileCopyUtils.java:132)
   at org.alfresco.repo.content.AbstractContentReader.getContent(AbstractContentReader.java:342)
   at org.alfresco.web.app.servlet.BaseDownloadContentServlet.processDownloadRequest(BaseDownloadContentServlet.java:252)
   at org.alfresco.web.app.servlet.DownloadContentServlet.doGet(DownloadContentServlet.java:98)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
   at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
   at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
   at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159)
   at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
   at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
   at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
   at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
   at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
   at java.lang.Thread.run(Thread.java:595)
2008-04-18 22:08:15,859 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/alfresco].[downloadContent]] Servlet.service() for servlet downloadContent threw exception
org.alfresco.error.AlfrescoRuntimeException: Error during download content servlet processing: Failed to copy content to output stream:
   accessor: ContentAccessor[ contentUrl=store://2008/4/15/19/19/de8e49be-0add-11dd-921f-9b6f49437e3f.bin, mimetype=application/zip, size=4217771, encoding=UTF-8]
   at org.alfresco.web.app.servlet.BaseDownloadContentServlet.processDownloadRequest(BaseDownloadContentServlet.java:269)
   at org.alfresco.web.app.servlet.DownloadContentServlet.doGet(DownloadContentServlet.java:98)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
   at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
   at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
   at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159)
   at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
   at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
   at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
   at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
   at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
   at java.lang.Thread.run(Thread.java:595)
Caused by: org.alfresco.service.cmr.repository.ContentIOException: Failed to copy content to output stream:
   accessor: ContentAccessor[ contentUrl=store://2008/4/15/19/19/de8e49be-0add-11dd-921f-9b6f49437e3f.bin, mimetype=application/zip, size=4217771, encoding=UTF-8]
   at org.alfresco.repo.content.AbstractContentReader.getContent(AbstractContentReader.java:347)
   at org.alfresco.web.app.servlet.BaseDownloadContentServlet.processDownloadRequest(BaseDownloadContentServlet.java:252)
   … 22 more
Caused by: ClientAbortException:  java.net.SocketException: Connection reset by peer: socket write error
   at org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:366)
   at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:403)
   at org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:323)
   at org.apache.catalina.connector.OutputBuffer.writeBytes(OutputBuffer.java:392)
   at org.apache.catalina.connector.OutputBuffer.write(OutputBuffer.java:381)
   at org.apache.catalina.connector.CoyoteOutputStream.write(CoyoteOutputStream.java:76)
   at org.springframework.util.FileCopyUtils.copy(FileCopyUtils.java:118)
   at org.alfresco.repo.content.AbstractContentReader.getContent(AbstractContentReader.java:342)
   … 23 more
2008-04-18 22:08:15,875 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost]] Exception Processing ErrorPage[exceptionType=java.lang.Exception, location=/jsp/error.jsp]
java.lang.IllegalStateException
   at org.apache.coyote.Response.reset(Response.java:296)
   at org.apache.catalina.connector.Response.reset(Response.java:642)
   at org.apache.catalina.connector.Response.reset(Response.java:908)
   at org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:355)
   at org.apache.catalina.core.StandardHostValve.throwable(StandardHostValve.java:211)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:134)
   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
   at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
   at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
   at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
   at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
   at java.lang.Thread.run(Thread.java:595)

I am still googling, searching and downloading wiki pages so if you could help, I'd really be very greatful.
Thank you very much.

EriCtZ

loftux
Star Contributor
Star Contributor
Hi,

Try dowloading Process Explorer from http://technet.microsoft.com/en-gb/sysinternals/default.aspx
Using this you can check that your java_opt is actually picked up and monitor memory usage.
And maybe consider more than 1024m as your upper limit.

/Peter Löfgren

etzapata
Champ in-the-making
Champ in-the-making
Hi Peter Löfgren,

First, thank you very much for your tips. I will try increasing my JAVA_OPTS and see if something happens.
Again, thank you very much for getting involved.

EriCtZ

etzapata
Champ in-the-making
Champ in-the-making
Hi Peter Löfgren,

I tried increasing my JAVA_OPTS to 1536m and its working now. It's still running after 2 days already so I guess it's ok now. Thank you very much for your tip.

EriCtZ