AnsweredAssumed Answered

Alfresco crash while uploading documents

Question asked by fluca1978 on Apr 4, 2011
Latest reply on Apr 11, 2011 by fluca1978
Hi all,
I'm running 3.2 ce on a dedicated machine and while uploading documents thru web services the machine gets "crazy" (I mean the java process serving Tomcat consumes the 100% of the cpu and the web client got a socket i/o error). The stack trace found in the tomcat logs was:


10:47:57,401 User:smanico INFO  [management.subsystems.ChildApplicationContextFactory] Stopping 'fileServers' subsystem, ID: [default]
10:47:58,269 User:smanico INFO  [management.subsystems.ChildApplicationContextFactory] Stopped 'fileServers' subsystem, ID: [default]
10:47:58,270 User:smanico INFO  [management.subsystems.ChildApplicationContextFactory] Stopping 'imap' subsystem, ID: [default]
10:47:58,270 User:smanico INFO  [management.subsystems.ChildApplicationContextFactory] Stopped 'imap' subsystem, ID: [default]
10:47:58,271 User:smanico INFO  [management.subsystems.ChildApplicationContextFactory] Stopping 'Synchronization' subsystem, ID: [default]
10:47:58,271 User:smanico INFO  [management.subsystems.ChildApplicationContextFactory] Stopped 'Synchronization' subsystem, ID: [default]
10:47:58,299 User:smanico INFO  [management.subsystems.ChildApplicationContextFactory] Stopping 'thirdparty' subsystem, ID: [default]
10:47:58,303 User:smanico INFO  [management.subsystems.ChildApplicationContextFactory] Stopped 'thirdparty' subsystem, ID: [default]
10:47:58,309 User:smanico INFO  [management.subsystems.ChildApplicationContextFactory] Stopping 'Authentication' subsystem, ID: [managed, passthru1]
10:47:58,310 User:smanico INFO  [management.subsystems.ChildApplicationContextFactory] Stopped 'Authentication' subsystem, ID: [managed, passthru1]
10:47:58,310 User:smanico INFO  [management.subsystems.ChildApplicationContextFactory] Stopping 'Authentication' subsystem, ID: [managed, alfrescoNtlm1]
10:47:58,310 User:smanico INFO  [management.subsystems.ChildApplicationContextFactory] Stopped 'Authentication' subsystem, ID: [managed, alfrescoNtlm1]
log4j:ERROR LogMananger.repositorySelector was null likely due to error in class reloading, using NOPLoggerRepository.
4-apr-2011 10.48.30 org.apache.catalina.core.StandardContext addApplicationListener
INFO: The listener "org.apache.myfaces.webapp.StartupServletContextListener" is already configured for this context. The duplicate definition has been ignored.
4-apr-2011 10.48.30 org.apache.catalina.core.StandardContext addApplicationListener
INFO: The listener "org.apache.myfaces.webapp.StartupServletContextListener" is already configured for this context. The duplicate definition has been ignored.
10:48:37,181  INFO  [alfresco.config.JndiPropertiesFactoryBean] Loading properties file from class path resource [alfresco/repository.properties]
10:48:37,183  INFO  [alfresco.config.JndiPropertiesFactoryBean] Loading properties file from class path resource [alfresco/domain/transaction.properties]
10:48:37,183  INFO  [alfresco.config.JndiPropertiesFactoryBean] Loading properties file from URL [file:/usr/local/tomcat48/webapps/alfresco/WEB-INF/classes/alfresco-global.properties]
10:48:37,243  INFO  [alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
10:49:23,080  WARN  [factory.support.DefaultListableBeanFactory] Encountered FactoryBean creation exception for bean 'categoryService' - couldn't check type! org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'categoryService' defined in class path resource [alfresco/core-services-context.xml]: Invocation of init method failed; nested exception is java.lang.OutOfMemoryError: PermGen space
10:49:43,698  WARN  [factory.support.DefaultListableBeanFactory] Encountered FactoryBean creation exception for bean 'CategoryService' - couldn't check type! org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'CategoryService' defined in class path resource [alfresco/public-services-context.xml]: Cannot resolve reference to bean 'categoryService' while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'categoryService' defined in class path resource [alfresco/core-services-context.xml]: Invocation of init method failed; nested exception is java.lang.OutOfMemoryError: PermGen space
10:50:28,138  WARN  [factory.support.DefaultListableBeanFactory] Encountered FactoryBean creation exception for bean 'CheckoutCheckinService' - couldn't check type! org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'CheckoutCheckinService' defined in class path resource [alfresco/public-services-context.xml]: Cannot resolve reference to bean 'checkOutCheckInService' while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'checkOutCheckInService' defined in class path resource [alfresco/core-services-context.xml]: Instantiation of bean failed; nested exception is java.lang.OutOfMemoryError: PermGen space
Exception in thread "http-8080-24" java.lang.OutOfMemoryError: PermGen space
4-apr-2011 10.51.20 org.apache.catalina.connector.CoyoteAdapter service
GRAVE: An exception or error occurred in the container during the request processing
java.lang.OutOfMemoryError: PermGen space

The underlying machine has 2GB of memory allocated to Tomcat/Alfresco and the only solution to get the service restart seems to be rebooting the whole system (just rebooting Tomcat does not solve the problem). Any idea about what could have produced this problem?

Thanks.

Outcomes