Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Saurabh Srivastava
Tomcat Startup Error - Out of Memory : Java Heap Space
December 1, 2013 10:45 PM
Answer

Saurabh Srivastava

Rank: New Member

Posts: 3

Join Date: November 21, 2013

Recent Posts

Hi Friends,

I am using Liferay 6.1 Community Version bundled with tomcat application server.
Suddenly I am getting this error from past a few days.

INFO: Deploying configuration descriptor D:\Softwares\liferay-portal-tomcat-6.1.2-ce-ga3-20130816114619181\liferay-portal-6.1.2-ce-ga3\tomcat-7.0.40\conf\Catalina\localhost\ROOT.xml
Dec 2, 2013 5:38:08 AM org.apache.catalina.startup.HostConfig deployDescriptors
SEVERE: Error waiting for multi-thread deployment of context descriptors to complete
java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: Java heap space
at java.util.concurrent.FutureTask$Sync.innerGet(Unknown Source)
at java.util.concurrent.FutureTask.get(Unknown Source)
at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:579)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:475)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1402)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:318)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:402)
at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:347)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1140)
at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:800)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Unknown Source)
at java.lang.AbstractStringBuilder.expandCapacity(Unknown Source)
at java.lang.AbstractStringBuilder.append(Unknown Source)
at java.lang.StringBuffer.append(Unknown Source)
at org.apache.commons.configuration.PropertiesConfigurationLayout.extractComment(PropertiesConfigurationLayout.java:677)
at org.apache.commons.configuration.PropertiesConfigurationLayout.load(PropertiesConfigurationLayout.java:405)
at org.apache.commons.configuration.PropertiesConfiguration.load(PropertiesConfiguration.java:421)
at org.apache.commons.configuration.AbstractFileConfiguration.load(AbstractFileConfiguration.java:358)
at org.apache.commons.configuration.AbstractFileConfiguration.load(AbstractFileConfiguration.java:324)
at org.apache.commons.configuration.AbstractFileConfiguration.load(AbstractFileConfiguration.java:287)
at org.apache.commons.configuration.AbstractFileConfiguration.load(AbstractFileConfiguration.java:193)
at org.apache.commons.configuration.AbstractFileConfiguration.<init>(AbstractFileConfiguration.java:181)
at org.apache.commons.configuration.PropertiesConfiguration.<init>(PropertiesConfiguration.java:269)
at com.liferay.portal.configuration.easyconf.ClassLoaderAggregateProperties._addURLProperties(ClassLoaderAggregateProperties.java:307)
at com.liferay.portal.configuration.easyconf.ClassLoaderAggregateProperties._addPropertiesSource(ClassLoaderAggregateProperties.java:259)
at com.liferay.portal.configuration.easyconf.ClassLoaderAggregateProperties._addIncludedPropertiesSources(ClassLoaderAggregateProperties.java:235)
at com.liferay.portal.configuration.easyconf.ClassLoaderAggregateProperties._addURLProperties(ClassLoaderAggregateProperties.java:334)
at com.liferay.portal.configuration.easyconf.ClassLoaderAggregateProperties._addPropertiesSource(ClassLoaderAggregateProperties.java:259)
at com.liferay.portal.configuration.easyconf.ClassLoaderAggregateProperties._addIncludedPropertiesSources(ClassLoaderAggregateProperties.java:235)
at com.liferay.portal.configuration.easyconf.ClassLoaderAggregateProperties._addURLProperties(ClassLoaderAggregateProperties.java:334)
at com.liferay.portal.configuration.easyconf.ClassLoaderAggregateProperties._addPropertiesSource(ClassLoaderAggregateProperties.java:259)
at com.liferay.portal.configuration.easyconf.ClassLoaderAggregateProperties._addIncludedPropertiesSources(ClassLoaderAggregateProperties.java:235)
at com.liferay.portal.configuration.easyconf.ClassLoaderAggregateProperties._addURLProperties(ClassLoaderAggregateProperties.java:334)
at com.liferay.portal.configuration.easyconf.ClassLoaderAggregateProperties._addPropertiesSource(ClassLoaderAggregateProperties.java:259)
at com.liferay.portal.configuration.easyconf.ClassLoaderAggregateProperties._addIncludedPropertiesSources(ClassLoaderAggregateProperties.java:235)
at com.liferay.portal.configuration.easyconf.ClassLoaderAggregateProperties._addURLProperties(ClassLoaderAggregateProperties.java:334)
at com.liferay.portal.configuration.easyconf.ClassLoaderAggregateProperties._addPropertiesSource(ClassLoaderAggregateProperties.java:259)
at com.liferay.portal.configuration.easyconf.ClassLoaderAggregateProperties._addIncludedPropertiesSources(ClassLoaderAggregateProperties.java:235)
at com.liferay.portal.configuration.easyconf.ClassLoaderAggregateProperties._addURLProperties(ClassLoaderAggregateProperties.java:334)
at com.liferay.portal.configuration.easyconf.ClassLoaderAggregateProperties._addPropertiesSource(ClassLoaderAggregateProperties.java:259)
at com.liferay.portal.configuration.easyconf.ClassLoaderAggregateProperties._addIncludedPropertiesSources(ClassLoaderAggregateProperties.java:235)
at com.liferay.portal.configuration.easyconf.ClassLoaderAggregateProperties._addURLProperties(ClassLoaderAggregateProperties.java:334)
Dec 2, 2013 5:38:08 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory D:\Softwares\liferay-portal-tomcat-6.1.2-ce-ga3-20130816114619181\liferay-portal-6.1.2-ce-ga3\tomcat-7.0.40\webapps\marketplace-portlet
Dec 2, 2013 5:38:21 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory D:\Softwares\liferay-portal-tomcat-6.1.2-ce-ga3-20130816114619181\liferay-portal-6.1.2-ce-ga3\tomcat-7.0.40\webapps\portal-compat-hook
Dec 2, 2013 5:38:23 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory D:\Softwares\liferay-portal-tomcat-6.1.2-ce-ga3-20130816114619181\liferay-portal-6.1.2-ce-ga3\tomcat-7.0.40\webapps\resources-importer-web
Dec 2, 2013 5:38:24 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory D:\Softwares\liferay-portal-tomcat-6.1.2-ce-ga3-20130816114619181\liferay-portal-6.1.2-ce-ga3\tomcat-7.0.40\webapps\welcome-theme
Dec 2, 2013 5:38:25 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-6070"]
Dec 2, 2013 5:38:25 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-bio-7009"]
Dec 2, 2013 5:38:25 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 139593 ms
Dec 2, 2013 6:11:25 AM org.apache.catalina.core.StandardServer await
INFO: A valid shutdown command was received via the shutdown port. Stopping the Server instance.
Dec 2, 2013 6:11:25 AM org.apache.coyote.AbstractProtocol pause
INFO: Pausing ProtocolHandler ["http-bio-6070"]
Dec 2, 2013 6:11:25 AM org.apache.coyote.AbstractProtocol pause
INFO: Pausing ProtocolHandler ["ajp-bio-7009"]
Dec 2, 2013 6:11:25 AM org.apache.catalina.core.StandardService stopInternal
INFO: Stopping service Catalina
Dec 2, 2013 6:11:25 AM org.apache.coyote.AbstractProtocol stop
INFO: Stopping ProtocolHandler ["http-bio-6070"]
Dec 2, 2013 6:11:25 AM org.apache.coyote.AbstractProtocol stop
INFO: Stopping ProtocolHandler ["ajp-bio-7009"]
Dec 2, 2013 6:11:25 AM org.apache.coyote.AbstractProtocol destroy
INFO: Destroying ProtocolHandler ["http-bio-6070"]
Dec 2, 2013 6:11:25 AM org.apache.coyote.AbstractProtocol destroy
INFO: Destroying ProtocolHandler ["ajp-bio-7009"]
Dec 2, 2013 6:11:25 AM org.apache.catalina.core.ContainerBase removeChild
SEVERE: ContainerBase.removeChild: destroy:
org.apache.catalina.LifecycleException: An invalid Lifecycle transition was attempted ([before_destroy]) for component [StandardEngine.StandardHost.StandardContext[]] in state [STARTING_PREP]
at org.apache.catalina.util.LifecycleBase.invalidTransition(LifecycleBase.java:409)
at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:299)
at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:1041)
at org.apache.catalina.core.ContainerBase.destroyInternal(ContainerBase.java:1234)
at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:305)
at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:1041)
at org.apache.catalina.core.ContainerBase.destroyInternal(ContainerBase.java:1234)
at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:305)
at org.apache.catalina.core.StandardService.destroyInternal(StandardService.java:593)
at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:305)
at org.apache.catalina.core.StandardServer.destroyInternal(StandardServer.java:822)
at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:305)
at org.apache.catalina.startup.Catalina.stop(Catalina.java:752)
at org.apache.catalina.startup.Catalina.start(Catalina.java:713)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:322)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:456)


Also have updated the setenv windows batch file with following parameters :
-Xms1024m -Xmx1024m -XX:MaxPermSize=512m"

Waiting for your help !!
Jignesh Vachhani
RE: Tomcat Startup Error - Out of Memory : Java Heap Space
December 2, 2013 2:28 AM
Answer

Jignesh Vachhani

Rank: Liferay Master

Posts: 785

Join Date: March 10, 2008

Recent Posts

Check with your hardware configuration and make sure that you have necessary memory(RAM) space available.
If this is the issue related to Heap size only then it should work with the settings which you did.
Saurabh Srivastava
RE: Tomcat Startup Error - Out of Memory : Java Heap Space
December 2, 2013 4:08 AM
Answer

Saurabh Srivastava

Rank: New Member

Posts: 3

Join Date: November 21, 2013

Recent Posts

Thanks Jignesh for the reply.

The configurations are pretty good for running liferay. RAM is 4GB.
And I was able to run Liferay previously with the same configurations. Suddenly from past two days I am getting this error.

Do I need to install another bundle or what else can I try? Please suggest.