AnsweredAssumed Answered

3.4b centOS - OutOfMemoryError: Java heap space

Question asked by stevegreenbaum on Nov 13, 2010
Latest reply on Nov 16, 2010 by stevegreenbaum
I installed 3.4b on centOS 5.3, but receive a 404 error when trying to connect to /alfresco.  After I start Alfresco, if I connect to /share I receive the log in screen, but can't successfully log in.  No errors were received during the installation process.  When I connect to http://ipaddress:8080, I receive the default tomcat screen.  I receive a Java heap space error in alfresco.log.  The server has 1.5g and Alfresco DM is the only thing running on it. 

I set java_opts in setenv.sh to JAVA_OPTS="$JAVA_OPTS -Xms1028m -Xmx1028m -XX:MaxPermSize=128m -server "

Here is what is running via ps command:

root     15463     1 79 17:31 pts/1    00:01:52 /opt/alfresco-3.4.b/java/bin/java
-Djava.util.logging.config.file=/opt/alfresco-3.4.b/tomcat/conf/logging.properties
-XX:MaxPermSize=128m -Xms1028m -Xmx1028m
-Dalfresco.home=/opt/alfresco-3.4.b -Dcom.sun.management.jmxremote
-Xms1280m -Xmx1280m -XX:MaxPermSize=128m -server
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.endorsed.dirs=/opt/alfresco-3.4.b/tomcat/endorsed -classpath /opt/alfresco-3.4.b/tomcat/bin/bootstrap.jar -Dcatalina.base=/opt/alfresco-3.4.b/tomcat -Dcatalina.home=/opt/alfresco-3.4.b/tomcat -Djava.io.tmpdir=/opt/alfresco-3.4.b/tomcat/temp org.apache.catalina.startup.Bootstrap

Why are there two sets of memory parameters above?  Doesn't setenv override any defaults?  Any suggestions on how to resolve this?  I looked at the jvm wiki page and didn't see anything else to try. 



01:55:23,535 ERROR [org.springframework.web.context.ContextLoader] Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.apache.cxf.jaxws.EndpointImpl–519378085': Invocation of init me$
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1401)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:512)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:450)
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:290)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:287)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:189)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:557)
        at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:842)
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:416)
        at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:261)
        at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:192)
        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:3972)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4467)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546)
        at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:637)
        at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:563)
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:498)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
        at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
Caused by: java.lang.OutOfMemoryError: Java heap space
        at java.util.HashMap.<init>(HashMap.java:209)
        at org.apache.ws.commons.schema.XmlSchemaObjectTable.<init>(XmlSchemaObjectTable.java:42)
        at org.apache.ws.commons.schema.XmlSchema.<init>(XmlSchema.java:111)
        at org.apache.ws.commons.schema.XmlSchema.<init>(XmlSchema.java:92)
        at org.apache.ws.commons.schema.SchemaBuilder.<init>(SchemaBuilder.java:97)
        at org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:508)
        at org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:493)
        at org.apache.cxf.common.xmlschema.SchemaCollection.read(SchemaCollection.java:168)


Outcomes