Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Michael A Ikhane
java.lang.OutOfMemoryError: Java heap space: LR 6.0.6, Jettty 6.1, Mac OS X
October 27, 2011 3:39 AM
Answer

Michael A Ikhane

Rank: Junior Member

Posts: 29

Join Date: May 27, 2009

Recent Posts

Hi All,

I am trying to run a fresh copy of LR 6.0.6 bundled with Jetty 6.1.24 on a Mac OS X 10.6.8 and I get this error, even though I am running with this amount of memory:
-Xmx2048m -Xms512m -XX:MaxPermSize=512m"

I have a similar issue with same Lr and tomcat on this machine. Could it be that there is a bug with Mac, cos the tomcat ran well on Win XP?

Thanks
Michael


2011-10-27 11:19:13.922:INFO::Logging to STDERR via org.mortbay.log.StdErrLog
2011-10-27 11:19:14.085:INFO::jetty-6.1.24
Oct 27, 2011 11:19:14 AM com.liferay.portal.kernel.log.Jdk14LogImpl info
INFO: Initializing hot deploy manager 778152199
Oct 27, 2011 11:19:16 AM org.apache.shindig.config.JsonContainerConfig loadContainers
INFO: Loading resources from: containers/default/container.js
Oct 27, 2011 11:19:16 AM org.apache.shindig.config.JsonContainerConfig loadResources
INFO: Reading container config: containers/default/container.js
Oct 27, 2011 11:19:17 AM org.apache.shindig.gadgets.features.FeatureRegistry register
INFO: Loading resources from: res:features/features.txt
Oct 27, 2011 11:19:17 AM org.apache.shindig.common.xml.XmlUtil <clinit>
INFO: Not using secure XML processing.
Oct 27, 2011 11:19:17 AM org.apache.shindig.common.xml.XmlUtil <clinit>
INFO: Reusing document builders
Oct 27, 2011 11:19:19 AM org.apache.shindig.gadgets.servlet.CajaContentRewriter <init>
INFO: Cajoled cache createdorg.apache.shindig.common.cache.ehcache.EhConfiguredCache@6e73a35c
Oct 27, 2011 11:19:19 AM org.apache.shindig.gadgets.servlet.CajaContentRewriter <init>
INFO: Cajoled cache createdorg.apache.shindig.common.cache.ehcache.EhConfiguredCache@6e73a35c
Oct 27, 2011 11:19:19 AM org.apache.shindig.gadgets.oauth.OAuthModule$OAuthStoreProvider loadDefaultKey
WARNING: Couldn't load OAuth signing key. To create a key, run:
openssl req -newkey rsa:1024 -days 365 -nodes -x509 -keyout testkey.pem \
-out testkey.pem -subj '/CN=mytestkey'
openssl pkcs8 -in testkey.pem -out oauthkey.pem -topk8 -nocrypt -outform PEM

Then edit shindig.properties and add these lines:
shindig.signing.key-file=<path-to-oauthkey.pem>
shindig.signing.key-name=mykey

Oct 27, 2011 11:19:19 AM org.apache.shindig.gadgets.oauth.OAuthModule$OAuthCrypterProvider <init>
INFO: Using random key for OAuth client-side state encryption
2011-10-27 11:19:20.017:WARN::Unknown realm: PortalRealm
Loading jar:file:/CodeBase/bundles/liferay-portal-6.0.6-jetty/jetty-6.1.24/webapps/root/WEB-INF/lib/portal-impl.jar!/system.properties
Oct 27, 2011 11:19:20 AM com.liferay.portal.kernel.log.Jdk14LogImpl info
INFO: Detected server jetty
2011-10-27 11:19:21.133:INFO::Initializing Spring root WebApplicationContext
Exception in thread "Attach Listener" java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:325)
at sun.instrument.InstrumentationImpl.loadClassAndCallAgentmain(InstrumentationImpl.java:348)
Caused by: java.lang.OutOfMemoryError: Java heap space
at java.nio.HeapByteBuffer.<init>(HeapByteBuffer.java:39)
at java.nio.ByteBuffer.allocate(ByteBuffer.java:312)
at sun.nio.cs.StreamEncoder.<init>(StreamEncoder.java:176)
at sun.nio.cs.StreamEncoder.<init>(StreamEncoder.java:156)
at sun.nio.cs.StreamEncoder.forOutputStreamWriter(StreamEncoder.java:40)
at java.io.OutputStreamWriter.<init>(OutputStreamWriter.java:94)
at java.util.logging.StreamHandler.setOutputStream(StreamHandler.java:116)
at java.util.logging.StreamHandler.<init>(StreamHandler.java:92)
at sun.rmi.runtime.Log$InternalStreamHandler.<init>(Log.java:263)
at sun.rmi.runtime.Log$LoggerLog$1.run(Log.java:169)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.runtime.Log$LoggerLog.<clinit>(Log.java:165)
at sun.rmi.runtime.Log$LoggerLogFactory.createLog(Log.java:155)
at sun.rmi.runtime.Log.getLog(Log.java:121)
at sun.rmi.server.Util.<clinit>(Util.java:56)
at sun.rmi.server.UnicastRef.<clinit>(UnicastRef.java:40)
at sun.management.jmxremote.ConnectorBootstrap$PermanentExporter.exportObject(ConnectorBootstrap.java:171)
at javax.management.remote.rmi.RMIJRMPServerImpl.export(RMIJRMPServerImpl.java:84)
at javax.management.remote.rmi.RMIJRMPServerImpl.export(RMIJRMPServerImpl.java:75)
at javax.management.remote.rmi.RMIConnectorServer.start(RMIConnectorServer.java:388)
at sun.management.jmxremote.ConnectorBootstrap.startLocalConnectorServer(ConnectorBootstrap.java:475)
at sun.management.Agent.startAgent(Agent.java:135)
at sun.management.Agent.agentmain(Agent.java:95)
... 6 more
Agent failed to start!
11:27:40,274 ERROR [ContextLoader:225] Context initialization failed
java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOfRange(Arrays.java:3209)
at java.lang.String.<init>(String.java:215)
at java.lang.StringBuffer.toString(StringBuffer.java:585)
at org.apache.commons.configuration.PropertiesConfigurationLayout.extractComment(PropertiesConfigurationLayout.java:679)
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:219)
at org.apache.commons.configuration.AbstractFileConfiguration.load(AbstractFileConfiguration.java:197)
at org.apache.commons.configuration.AbstractFileConfiguration.<init>(AbstractFileConfiguration.java:142)
at org.apache.commons.configuration.PropertiesConfiguration.<init>(PropertiesConfiguration.java:237)
at com.germinus.easyconf.AggregatedProperties.addFileProperties(AggregatedProperties.java:164)
at com.germinus.easyconf.AggregatedProperties.addPropertiesSource(AggregatedProperties.java:140)
at com.germinus.easyconf.AggregatedProperties.addIncludedPropertiesSources(AggregatedProperties.java:222)
at com.germinus.easyconf.AggregatedProperties.addFileProperties(AggregatedProperties.java:180)
at com.germinus.easyconf.AggregatedProperties.addPropertiesSource(AggregatedProperties.java:140)
at com.germinus.easyconf.AggregatedProperties.addIncludedPropertiesSources(AggregatedProperties.java:222)
at com.germinus.easyconf.AggregatedProperties.addFileProperties(AggregatedProperties.java:180)
at com.germinus.easyconf.AggregatedProperties.addPropertiesSource(AggregatedProperties.java:140)
at com.germinus.easyconf.AggregatedProperties.addIncludedPropertiesSources(AggregatedProperties.java:222)
at com.germinus.easyconf.AggregatedProperties.addFileProperties(AggregatedProperties.java:180)
at com.germinus.easyconf.AggregatedProperties.addPropertiesSource(AggregatedProperties.java:140)
at com.germinus.easyconf.AggregatedProperties.addIncludedPropertiesSources(AggregatedProperties.java:222)
at com.germinus.easyconf.AggregatedProperties.addFileProperties(AggregatedProperties.java:180)
at com.germinus.easyconf.AggregatedProperties.addPropertiesSource(AggregatedProperties.java:140)
at com.germinus.easyconf.AggregatedProperties.addIncludedPropertiesSources(AggregatedProperties.java:222)
at com.germinus.easyconf.AggregatedProperties.addFileProperties(AggregatedProperties.java:180)
at com.germinus.easyconf.AggregatedProperties.addPropertiesSource(AggregatedProperties.java:140)
at com.germinus.easyconf.AggregatedProperties.addIncludedPropertiesSources(AggregatedProperties.java:222)
at com.germinus.easyconf.AggregatedProperties.addFileProperties(AggregatedProperties.java:180)
2011-10-27 11:27:40.277:WARN::failed org.mortbay.jetty.webapp.WebAppContext@32b64ba2{,file:/CodeBase/bundles/liferay-portal-6.0.6-jetty/jetty-6.1.24/webapps/root/}: java.lang.OutOfMemoryError: Java heap space
2011-10-27 11:27:42.437:WARN::failed ContextHandlerCollection@735dc05f: java.lang.OutOfMemoryError: Java heap space
2011-10-27 11:27:42.440:INFO:emoticonpened /CodeBase/bundles/liferay-portal-6.0.6-jetty/jetty-6.1.24/logs/2011_10_27.request.log
2011-10-27 11:27:42.440:WARN::failed HandlerCollection@42ccc0a1: java.lang.OutOfMemoryError: Java heap space
2011-10-27 11:27:42.440:WARN::Error starting handlers
java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOfRange(Arrays.java:3209)
at java.lang.String.<init>(String.java:215)
at java.lang.StringBuffer.toString(StringBuffer.java:585)
at org.apache.commons.configuration.PropertiesConfigurationLayout.extractComment(PropertiesConfigurationLayout.java:679)
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:219)
at org.apache.commons.configuration.AbstractFileConfiguration.load(AbstractFileConfiguration.java:197)
at org.apache.commons.configuration.AbstractFileConfiguration.<init>(AbstractFileConfiguration.java:142)
at org.apache.commons.configuration.PropertiesConfiguration.<init>(PropertiesConfiguration.java:237)
at com.germinus.easyconf.AggregatedProperties.addFileProperties(AggregatedProperties.java:164)
at com.germinus.easyconf.AggregatedProperties.addPropertiesSource(AggregatedProperties.java:140)
at com.germinus.easyconf.AggregatedProperties.addIncludedPropertiesSources(AggregatedProperties.java:222)
at com.germinus.easyconf.AggregatedProperties.addFileProperties(AggregatedProperties.java:180)
at com.germinus.easyconf.AggregatedProperties.addPropertiesSource(AggregatedProperties.java:140)
at com.germinus.easyconf.AggregatedProperties.addIncludedPropertiesSources(AggregatedProperties.java:222)
at com.germinus.easyconf.AggregatedProperties.addFileProperties(AggregatedProperties.java:180)
at com.germinus.easyconf.AggregatedProperties.addPropertiesSource(AggregatedProperties.java:140)
at com.germinus.easyconf.AggregatedProperties.addIncludedPropertiesSources(AggregatedProperties.java:222)
at com.germinus.easyconf.AggregatedProperties.addFileProperties(AggregatedProperties.java:180)
at com.germinus.easyconf.AggregatedProperties.addPropertiesSource(AggregatedProperties.java:140)
at com.germinus.easyconf.AggregatedProperties.addIncludedPropertiesSources(AggregatedProperties.java:222)
at com.germinus.easyconf.AggregatedProperties.addFileProperties(AggregatedProperties.java:180)
at com.germinus.easyconf.AggregatedProperties.addPropertiesSource(AggregatedProperties.java:140)
at com.germinus.easyconf.AggregatedProperties.addIncludedPropertiesSources(AggregatedProperties.java:222)
at com.germinus.easyconf.AggregatedProperties.addFileProperties(AggregatedProperties.java:180)
at com.germinus.easyconf.AggregatedProperties.addPropertiesSource(AggregatedProperties.java:140)
at com.germinus.easyconf.AggregatedProperties.addIncludedPropertiesSources(AggregatedProperties.java:222)
at com.germinus.easyconf.AggregatedProperties.addFileProperties(AggregatedProperties.java:180)
2011-10-27 11:27:42.481:INFO::Started SelectChannelConnector@0.0.0.0:8080

David H Nebinger
RE: java.lang.OutOfMemoryError: Java heap space: LR 6.0.6, Jettty 6.1, Mac
October 31, 2011 11:11 AM
Answer

David H Nebinger

Rank: Liferay Legend

Posts: 4496

Join Date: September 1, 2006

Recent Posts

Looks like you have a loop in your properties files stuff that EasyConf is reloading...

Look to your local properties file and make sure you do not have the "include-and-override" pointing to the current filename...

i.e. your portal-ext.properties file should not have a line "include-and-override=portal-ext.properties" in it.
Michael A Ikhane
RE: java.lang.OutOfMemoryError: Java heap space: LR 6.0.6, Jettty 6.1, Mac
May 4, 2012 2:05 AM
Answer

Michael A Ikhane

Rank: Junior Member

Posts: 29

Join Date: May 27, 2009

Recent Posts

Thanks
aime_yang yang
RE: java.lang.OutOfMemoryError: Java heap space: LR 6.0.6, Jettty 6.1, Mac
June 18, 2012 7:52 PM
Answer

aime_yang yang

Rank: New Member

Posts: 1

Join Date: June 18, 2012

Recent Posts

Hi david ,
I am a test engineer from china .Now have a problem when using hudson with mac OS X 10.7.3

java.lang.OutOfMemoryError: Java heap space
at java.util.Collections.synchronizedList(Collections.java:1778)
at javax.jmdns.impl.DNSMessage.<init>(DNSMessage.java:62)
at javax.jmdns.impl.DNSIncoming.<init>(DNSIncoming.java:184)
at javax.jmdns.impl.SocketListener.run(SocketListener.java:50)
2012-6-19 9:52:11 hudson.triggers.SafeTimerTask run
????: Timer task hudson.model.LoadStatistics$LoadStatisticsUpdater@1b1aee10 failed
java.lang.OutOfMemoryError: Java heap space
at java.text.PatternEntry$Parser.next(PatternEntry.java:265)
at java.text.MergeCollation.addPattern(MergeCollation.java:166)
at java.text.MergeCollation.setPattern(MergeCollation.java:149)
at java.text.MergeCollation.<init>(MergeCollation.java:56)
at java.text.RBTableBuilder.build(RBTableBuilder.java:99)
at java.text.RBCollationTables.<init>(RBCollationTables.java:65)
at java.text.RuleBasedCollator.<init>(RuleBasedCollator.java:276)
at java.text.Collator.getInstance(Collator.java:251)
at java.text.Collator.getInstance(Collator.java:207)
at hudson.model.Hudson$6.<init>(Hudson.java:1439)
at hudson.model.Hudson.getComputers(Hudson.java:1437)
at hudson.model.ComputerSet.get_all(ComputerSet.java:90)
at hudson.model.ComputerSet.getTotalExecutors(ComputerSet.java:141)
at hudson.model.LoadStatistics$LoadStatisticsUpdater.doRun(LoadStatistics.java:215)
at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:54)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)
Exception in thread "Poller SunPKCS11-Darwin" java.lang.OutOfMemoryError: Java heap space
[Winstone 2012/06/19 09:52:23] - Error during HTTP listener init or shutdown
java.lang.OutOfMemoryError: Java heap space

[Winstone 2012/06/19 09:52:31] - HTTP Listener shutdown successfully
at sun.security.pkcs11.wrapper.PKCS11.C_GetSlotInfo(Native Method)
at sun.security.pkcs11.SunPKCS11.initToken(SunPKCS11.java:767)
at sun.security.pkcs11.SunPKCS11.access$100(SunPKCS11.java:42)
at sun.security.pkcs11.SunPKCS11$TokenPoller.run(SunPKCS11.java:700)
at java.lang.Thread.run(Thread.java:680)
Exception in thread "RequestHandlerThread[#0]" java.lang.OutOfMemoryError: Java heap space

But I have set the Memory big as: java -jar /Users/zhd32/hudson/hudson.war --httpPort=8081 -Xms2048m -Xmx2048m -Xmn=512m
Please kind give me help.thanks~~