cancel
Showing results for 
Search instead for 
Did you mean: 

Context Initialisation, PermGen Space [Résolu]

unknown-user
Champ on-the-rise
Champ on-the-rise
Bonjour,

j'essaie d'installer Alfresco Community sur un serveur linux possedant deja sa propre BDD (MySQL).

J'ai installé Tomcat, j'ai modifiés les fichiers de conf de tomcat comme décrit ici: http://docs.alfresco.com/4.0/index.jsp?topic=%2Fcom.alfresco.enterprise.doc%2Ftasks%2Falf-war-instal...

J'ai ensuite suivis les étapes décrites ici http://docs.alfresco.com/4.0/index.jsp?topic=%2Fcom.alfresco.enterprise.doc%2Ftasks%2Falf-war-instal... pour déployer les .war.

Au lancement de Tomcat, j'ai les erreurs suivantes dans catalina.out:

INFO: Starting service Catalina
juin 14, 2012 1:56:29 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.35
juin 14, 2012 1:56:29 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor manager.xml
juin 14, 2012 1:56:30 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor host-manager.xml
juin 14, 2012 1:56:30 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor alfresco.xml
juin 14, 2012 1:56:38 PM 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.
2012-06-14 13:57:05,350  INFO  [management.subsystems.ChildApplicationContextFactory] [main] Starting 'sysAdmin' subsystem, ID: [sysAdmin, default]
2012-06-14 13:57:05,503  INFO  [management.subsystems.ChildApplicationContextFactory] [main] Startup of 'sysAdmin' subsystem, ID: [sysAdmin, default] complete
2012-06-14 13:57:22,795  WARN  [alfresco.util.AbstractTriggerBean] [main] Job ehCacheTracerJob is not active/enabled
2012-06-14 13:57:29,394  INFO  [extensions.webscripts.TemplateProcessorRegistry] [main] Registered template processor Repository Template Processor for extension ftl
2012-06-14 13:57:29,414  INFO  [extensions.webscripts.ScriptProcessorRegistry] [main] Registered script processor Repository Script Processor for extension js
2012-06-14 13:57:46,013  INFO  [management.subsystems.ChildApplicationContextFactory] [main] Stopping 'sysAdmin' subsystem, ID: [sysAdmin, default]
2012-06-14 13:57:46,013  INFO  [management.subsystems.ChildApplicationContextFactory] [main] Stopped 'sysAdmin' subsystem, ID: [sysAdmin, default]
2012-06-14 13:57:46,025  ERROR [web.context.ContextLoader] [main] Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.apache.cxf.jaxws.EndpointImpl—1377580774': Invocation of init method failed; nested exception is java.lang.OutOfMemoryError: PermGen space
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1420)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
   at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
   at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
   at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
   at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
   at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)
   at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
   at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
   at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)
   at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)
   at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
   at org.alfresco.web.app.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:63)
   at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4206)
   at org.apache.catalina.core.StandardContext.start(StandardContext.java:4705)
   at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
   at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
   at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
   at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:675)
   at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:601)
   at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)
   at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)
   at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
   at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
   at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)
   at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
   at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
   at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
   at org.apache.catalina.core.StandardService.start(StandardService.java:525)
   at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
   at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:601)
   at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Caused by: java.lang.OutOfMemoryError: PermGen space
   at java.lang.Class.getDeclaredMethods0(Native Method)
   at java.lang.Class.privateGetDeclaredMethods(Class.java:2442)
   at java.lang.Class.getDeclaredMethods(Class.java:1808)
   at sun.reflect.annotation.AnnotationType$1.run(AnnotationType.java:104)
   at sun.reflect.annotation.AnnotationType$1.run(AnnotationType.java:101)
   at java.security.AccessController.doPrivileged(Native Method)
   at sun.reflect.annotation.AnnotationType.<init>(AnnotationType.java:100)
   at sun.reflect.annotation.AnnotationType.getInstance(AnnotationType.java:84)
   at sun.reflect.annotation.AnnotationParser.parseAnnotation(AnnotationParser.java:221)
   at sun.reflect.annotation.AnnotationParser.parseAnnotations2(AnnotationParser.java:88)
   at sun.reflect.annotation.AnnotationParser.parseAnnotations(AnnotationParser.java:70)
   at java.lang.reflect.Method.declaredAnnotations(Method.java:699)
   at java.lang.reflect.Method.getAnnotation(Method.java:685)
   at org.apache.cxf.jaxws.support.JaxWsServiceConfiguration.getOperationName(JaxWsServiceConfiguration.java:138)
   at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.getOperationName(ReflectionServiceFactoryBean.java:1976)
   at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.createOperation(ReflectionServiceFactoryBean.java:821)
   at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.createOperation(JaxWsServiceFactoryBean.java:482)
   at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.createInterface(ReflectionServiceFactoryBean.java:813)
   at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromClass(ReflectionServiceFactoryBean.java:366)
   at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.buildServiceFromClass(JaxWsServiceFactoryBean.java:523)
   at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:439)
   at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:195)
   at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:163)
   at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:100)
   at org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:117)
   at org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:167)
   at org.apache.cxf.jaxws.EndpointImpl.getServer(EndpointImpl.java:346)
   at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:259)
   at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:209)
   at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:404)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
juin 14, 2012 1:57:49 PM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
juin 14, 2012 1:57:49 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/alfresco] startup failed due to previous errors
juin 14, 2012 1:57:49 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/alfresco] appears to have started a thread named [net.sf.ehcache.CacheManager@18a077bc] but has failed to stop it. This is very likely to create a memory leak.
juin 14, 2012 1:57:49 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [/alfresco] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@7202dc82]) and a value of type [org.apache.cxf.bus.CXFBusImpl] (value [org.apache.cxf.bus.CXFBusImpl@19db1548]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
juin 14, 2012 1:57:49 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [/alfresco] created a ThreadLocal with key of type [com.sun.xml.bind.v2.ClassFactory$1] (value [com.sun.xml.bind.v2.ClassFactory$1@6702d420]) and a value of type [java.util.WeakHashMap] (value [{class org.alfresco.repo.audit.model._3.Application=java.lang.ref.WeakReference@26141bb5, class org.alfresco.repo.audit.model._3.PathMap=java.lang.ref.WeakReference@72271b9a, class org.alfresco.repo.audit.model._3.RecordValue=java.lang.ref.WeakReference@65855602, class org.alfresco.repo.audit.model._3.AuditPath=java.lang.ref.WeakReference@14d1d160, class org.alfresco.repo.audit.model._3.GenerateValue=java.lang.ref.WeakReference@5b09004d, class org.alfresco.repo.audit.model._3.DataGenerator=java.lang.ref.WeakReference@2bf2edec, class javax.xml.bind.annotation.W3CDomHandler=java.lang.ref.WeakReference@59e2377e, class org.alfresco.repo.audit.model._3.DataGenerators=java.lang.ref.WeakReference@12a95f4c, class java.util.ArrayList=java.lang.ref.WeakReference@2daf8026, class org.alfresco.repo.audit.model._3.DataExtractors=java.lang.ref.WeakReference@5d065638, class org.alfresco.repo.audit.model._3.PathMappings=java.lang.ref.WeakReference@4b06a63e, class org.alfresco.repo.audit.model._3.Audit=java.lang.ref.WeakReference@218c56ed, class org.alfresco.repo.audit.model._3.DataExtractor=java.lang.ref.WeakReference@49ef2d0}]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
juin 14, 2012 1:57:49 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [/alfresco] created a ThreadLocal with key of type [com.sun.xml.bind.v2.runtime.Coordinator$1] (value [com.sun.xml.bind.v2.runtime.Coordinator$1@5f57380e]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@57215008]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
juin 14, 2012 1:57:49 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [/alfresco] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@4c0d69e8]) and a value of type [org.alfresco.util.CachingDateFormat] (value [yyyy-MM-dd]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.

Voici mon fichier de conf générale:

 ###############################
## Common Alfresco Properties #
###############################

#
# Sample custom content and index data location
#
#dir.root=/srv/alfresco/alf_data
#dir.keystore=${dir.root}/keystore

#
# Sample database connection properties
#
db.username=alfresco
db.password=alfresco


#
# External locations
#————-
#ooo.exe=soffice
#ooo.enabled=false
#jodconverter.officeHome=./OpenOffice.org
#jodconverter.portNumbers=8101
#jodconverter.enabled=true
#img.root=./ImageMagick
#swf.exe=./bin/pdf2swf

#
# Property to control whether schema updates are performed automatically.
# Updates must be enabled during upgrades as, apart from the static upgrade scripts,
# there are also auto-generated update scripts that will need to be executed.  After
# upgrading to a new version, this can be disabled.
#
db.schema.update=true

#
# MySQL connection
#
db.driver=com.mysql.jdbc.Driver
db.url=jdbc:mysql://servbddtest:3306/alfresco?useUnicode=yes&characterEncoding=UTF-8
hibernate.dialect=org.hibernate.dialect.MySQLInnoDBDialect

#
# Oracle connection
#
#db.driver=oracle.jdbc.OracleDriver
#db.url=jdbc:oracle:thin:@localhost:1521:alfresco

#
# SQLServer connection
# Requires jTDS driver version 1.2.5 and SNAPSHOT isolation mode
# Enable TCP protocol on fixed port 1433
# Prepare the database with:
# ALTER DATABASE alfresco SET ALLOW_SNAPSHOT_ISOLATION ON;
#
#db.driver=net.sourceforge.jtds.jdbc.Driver
#db.url=jdbc:jtds:sqlserver://localhost:1433/alfresco
#db.txn.isolation=4096

#
# PostgreSQL connection (requires postgresql-8.2-504.jdbc3.jar or equivalent)
#
#db.driver=org.postgresql.Driver
#db.url=jdbc:postgresql://localhost:5432/alfresco

#
# Index Recovery Mode
#————-
#index.recovery.mode=AUTO

#
# Outbound Email Configuration
#————-
#mail.host=
#mail.port=25
#mail.username=anonymous
#mail.password=
#mail.encoding=UTF-8
#mail.from.default=alfresco@alfresco.org
#mail.smtp.auth=false

#
# Alfresco Email Service and Email Server
#————-

# Enable/Disable the inbound email service.  The service could be used by processes other than
# the Email Server (e.g. direct RMI access) so this flag is independent of the Email Service.
#————-
#email.inbound.enabled=true

# Email Server properties
#————-
#email.server.enabled=true
#email.server.port=25
#email.server.domain=alfresco.com
#email.inbound.unknownUser=anonymous

# A comma separated list of email REGEX patterns of allowed senders.
# If there are any values in the list then all sender email addresses
# must match. For example:
#   .*\@alfresco\.com, .*\@alfresco\.org
# Allow anyone:
#————-
#email.server.allowed.senders=.*

#
# The default authentication chain
# To configure external authentication subsystems see:
# http://wiki.alfresco.com/wiki/Alfresco_Authentication_Subsystems
#————-
#authentication.chain=alfrescoNtlm1:alfrescoNtlm

#
# URL Generation Parameters (The ${localname} token is replaced by the local server name)
#————-
alfresco.context=alfresco
alfresco.host=${localname}
alfresco.port=8080
alfresco.protocol=http
#
share.context=share
share.host=${localname}
share.port=8080
share.protocol=http

#imap.server.enabled=true
#imap.server.port=143
#imap.server.host=localhost

# Default value of alfresco.rmi.services.host is 0.0.0.0 which means 'listen on all adapters'.
# This allows connections to JMX both remotely and locally.
#
alfresco.rmi.services.host=0.0.0.0

#
# RMI service ports for the individual services.
# These seven services are available remotely.
#
# Assign individual ports for each service for best performance
# or run several services on the same port. You can even run everything on 50500 if needed.
#
# Select 0 to use a random unused port.
#
#avm.rmi.service.port=50501
#avmsync.rmi.service.port=50502
#attribute.rmi.service.port=50503
#authentication.rmi.service.port=50504
#repo.rmi.service.port=50505
#action.rmi.service.port=50506
#wcm-deployment-receiver.rmi.service.port=50507
#monitor.rmi.service.port=50508

Je galere un peu, cela fait plusieurs que j'essaie d'installer Alfresco, sans succes… Smiley Sad

J'ai vu que la plupart des erreurs de permgen Space etaient du a un probleme avec JAVA_ODTS. que l'on modifie dans alfresco.sh
Mais, etant donnée que je n'ai pas utilisé le .bin pour installer alfresco, je n'ai pas ce fichier. Ou dois'je donc modifier cela?

2012-06-14 14:53:46,096  WARN  [repo.dictionary.DictionaryRepositoryBootstrap] [main] StoreRef 'workspace://SpacesStore' does not exist
2012-06-14 14:53:46,195  INFO  [management.subsystems.ChildApplicationContextFactory] [main] Starting 'Search' subsystem, ID: [Search, managed, lucene]
2012-06-14 14:53:50,445  WARN  [factory.support.DisposableBeanAdapter] [main] Invocation of destroy method failed on bean with name 'search.avmLuceneIndexerAndSearcherFactory': java.lang.OutOfMemoryError: PermGen space
2012-06-14 14:53:52,758  WARN  [factory.support.DisposableBeanAdapter] [main] Invocation of destroy method failed on bean with name 'search.admLuceneUnIndexedIndexerAndSearcherFactory': java.lang.OutOfMemoryError: PermGen space
2012-06-14 14:53:55,034  WARN  [factory.support.DisposableBeanAdapter] [main] Invocation of destroy method failed on bean with name 'search.admLuceneIndexerAndSearcherFactory': java.lang.OutOfMemoryError: PermGen space
juin 14, 2012 2:53:59 PM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
juin 14, 2012 2:53:59 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/alfresco] startup failed due to previous errors

Apres avoir relancé le systeme, j'ai maintenant ces erreurs ci.
3 REPLIES 3

jeanjot
Confirmed Champ
Confirmed Champ
Y-a-t-il une raison pour utiliser cette vieille version d'Alfresco …

rguinot
Confirmed Champ
Confirmed Champ
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.apache.cxf.jaxws.EndpointImpl—1377580774': Invocation of init method failed; nested exception is java.lang.OutOfMemoryError: PermGen space

erreur très classique… vous devez augmenter la taille de l'espace permgen pour la JVM (exemple : -XXSmiley TongueermSize=192M -XX:MaxPermSize=192M).

Il ne s'agit pas de  JAVA_OPTS mais de  JAVA_OPTS.
Plusieurs options :
- exporter la variable JAVA_OPTS dans le .bashrc de l'utilisateur qui lance tomcat
- modifier le script de lancement que vous utilisez (probablement …/tomcat/bin/catalina.sh

Laissez nous savoir.

unknown-user
Champ on-the-rise
Champ on-the-rise
Y-a-t-il une raison pour utiliser cette vieille version d'Alfresco …

? C'est Alfresco 4.0d que j'essaie d'installer. Les logs disent autre chose?

J'ai réussi, merci.

Je pense que je vous recontacterais prochainement car j'aurais surement d'autres questions sur la configuration, la modification et la maintenance du logiciel.

Merci^^