cancel
Showing results for 
Search instead for 
Did you mean: 

java.lang.OutOfMemoryError: Java heap space

blinco
Champ in-the-making
Champ in-the-making
Hi,

i got the souce code of Alfresco from svn by
co svn://svn.alfresco.com/alfresco/HEAD in command line.
i am using Eclipse 3.3 as IDE.
when i run the application using Tomcat5.5 after deploying the alfresco.war in to the tomcat server, i got the following error.

INFO: Installing web application at context path /alfresco from URL file:C:
l/Tomcat_5.0/webapps/alfresco
15:22:32,785 UserSmiley Frustratedystem WARN  [remoting.rmi.RmiRegistryFactoryBean] Could
etect RMI registry - creating new one
15:22:37,350 UserSmiley Frustratedystem INFO  [domain.schema.SchemaBootstrap] Schema manag
database dialect org.hibernate.dialect.MySQLInnoDBDialect.
15:22:45,578 UserSmiley Frustratedystem INFO  [domain.schema.SchemaBootstrap] No changes w
ade to the schema.
15:23:31,642 UserSmiley Frustratedystem ERROR [web.context.ContextLoader] Context initiali
n failed
org.alfresco.error.AlfrescoRuntimeException: Bootstrap failed
        at org.alfresco.repo.importer.ImporterBootstrap.bootstrap(ImporterB
rap.java:441)
        at org.alfresco.repo.importer.ImporterBootstrap.onBootstrap(Importe
strap.java:663)
        at org.alfresco.util.AbstractLifecycleBean.onApplicationEvent(Abstr
fecycleBean.java:62)
        at org.springframework.context.event.SimpleApplicationEventMulticas
.run(SimpleApplicationEventMulticaster.java:77)
        at org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskE
or.java:49)
        at org.springframework.context.event.SimpleApplicationEventMulticas
ulticastEvent(SimpleApplicationEventMulticaster.java:75)
        at org.springframework.context.support.AbstractApplicationContext.p
hEvent(AbstractApplicationContext.java:241)
        at org.springframework.context.support.AbstractApplicationContext.r
h(AbstractApplicationContext.java:349)
        at org.springframework.web.context.support.AbstractRefreshableWebAp
tionContext.refresh(AbstractRefreshableWebApplicationContext.java:156)
        at org.springframework.web.context.ContextLoader.createWebApplicati
text(ContextLoader.java:246)
        at org.springframework.web.context.ContextLoader.initWebApplication
xt(ContextLoader.java:184)
        at org.springframework.web.context.ContextLoaderListener.contextIni
zed(ContextLoaderListener.java:49)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardC
t.java:3827)
        at org.apache.catalina.core.StandardContext.start(StandardContext.j
343)
        at org.apache.catalina.core.ContainerBase.addChildInternal(Containe
.java:823)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.ja
7)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java

        at org.apache.catalina.core.StandardHostDeployer.install(StandardHo
loyer.java:277)
        at org.apache.catalina.core.StandardHost.install(StandardHost.java:
        at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.jav
)
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.jav
)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:983
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig
:349)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lif
eSupport.java:119)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:

        at org.apache.catalina.core.StandardHost.start(StandardHost.java:78
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:

        at org.apache.catalina.core.StandardEngine.start(StandardEngine.jav
)
        at org.apache.catalina.core.StandardService.start(StandardService.j
80)
        at org.apache.catalina.core.StandardServer.start(StandardServer.jav
3)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessor
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethod
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
Caused by: java.lang.OutOfMemoryError: Java heap space
14-Jan-2008 15:23:31 org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
14-Jan-2008 15:23:31 org.apache.catalina.core.StandardContext start
SEVERE: Context startup failed due to previous errors
14-Jan-2008 15:23:32 org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path /jsp-examples from URL fil
local\Tomcat_5.0\webapps\jsp-examples
14-Jan-2008 15:23:33 org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path  from URL file:C:\local\To
5.0\webapps\ROOT
14-Jan-2008 15:23:33 org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path /servlets-examples from UR
e:C:\local\Tomcat_5.0\webapps\servlets-examples
14-Jan-2008 15:23:33 org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path /tomcat-docs from URL file
ocal\Tomcat_5.0\webapps\tomcat-docs
14-Jan-2008 15:23:33 org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path /webdav from URL file:C:\l
Tomcat_5.0\webapps\webdav
14-Jan-2008 15:23:33 org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
14-Jan-2008 15:23:33 org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
14-Jan-2008 15:23:33 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/32  config=C:\local\Tomcat_5.0\conf\jk2.proper
14-Jan-2008 15:23:33 org.apache.catalina.startup.Catalina start
INFO: Server startup in 186039 ms

i also increased the heap space in catalina.bat upto
JAVA_OPTS="$JAVA_OPTS -Xms1024m -Xmx4096m"
but still i am getting same error.

what are the minimum requirements of system to run the Alfresco application?
please help to solve my problem.
Thanks in advance
1 REPLY 1

steve
Champ in-the-making
Champ in-the-making
Hi,

Are you 100% sure your JAVA_OPTS changes are being picked up?
You can modify the Tomcat startup script to output the JAVA_OPTS so you can check.