It looks like I solved the problem by passing in the following VM arguments on the JRE tab of my Run Jetty configuration:
-XX:PermSize=64M -XX:MaxPermSize=128M On Mon, Apr 29, 2013 at 1:15 PM, Mike Tutkowski < [email protected]> wrote: > Interesting...I changed my settings as were recommended here ( > http://rainer.4950.net/wordpress/blog/2009/09/15/how-to-give-eclipse-a-bit-more-ram-on-a-mac/ > ), > but still get the following when trying to run the CS MS from Eclipse: > > java.lang.OutOfMemoryError: PermGen space > > at java.lang.String.intern(Native Method) > > at java.util.jar.Attributes$Name.<init>(Attributes.java:449) > > at java.util.jar.Attributes.putValue(Attributes.java:151) > > at java.util.jar.Attributes.read(Attributes.java:404) > > at java.util.jar.Manifest.read(Manifest.java:180) > > at java.util.jar.Manifest.<init>(Manifest.java:50) > > at java.util.jar.JarFile.getManifestFromReference(JarFile.java:168) > > at java.util.jar.JarFile.getManifest(JarFile.java:149) > > at sun.misc.URLClassPath$JarLoader$2.getManifest(URLClassPath.java:696) > > at java.net.URLClassLoader.defineClass(URLClassLoader.java:228) > > at java.net.URLClassLoader.access$000(URLClassLoader.java:58) > > at java.net.URLClassLoader$1.run(URLClassLoader.java:197) > > at java.security.AccessController.doPrivileged(Native Method) > > at java.net.URLClassLoader.findClass(URLClassLoader.java:190) > > at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass( > WebAppClassLoader.java:392) > > at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass( > WebAppClassLoader.java:363) > > at org.apache.log4j.spi.LoggingEvent.<init>(LoggingEvent.java:165) > > at org.apache.log4j.Category.forcedLog(Category.java:391) > > at org.apache.log4j.Category.log(Category.java:856) > > at org.apache.commons.logging.impl.Log4JLogger.error(Log4JLogger.java:257) > > at org.springframework.web.context.ContextLoader.initWebApplicationContext( > ContextLoader.java:307) > > at > org.springframework.web.context.ContextLoaderListener.contextInitialized( > ContextLoaderListener.java:111) > > at org.mortbay.jetty.handler.ContextHandler.startContext( > ContextHandler.java:549) > > at org.mortbay.jetty.servlet.Context.startContext(Context.java:136) > > at org.mortbay.jetty.webapp.WebAppContext.startContext( > WebAppContext.java:1282) > > at org.mortbay.jetty.handler.ContextHandler.doStart( > ContextHandler.java:518) > > at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:499) > > at org.mortbay.jetty.plugin.Jetty6PluginWebAppContext.doStart( > Jetty6PluginWebAppContext.java:115) > > at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50 > ) > > at org.mortbay.jetty.handler.HandlerCollection.doStart( > HandlerCollection.java:152) > > at org.mortbay.jetty.handler.ContextHandlerCollection.doStart( > ContextHandlerCollection.java:156) > > at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50 > ) > > > On Fri, Apr 26, 2013 at 12:10 AM, Alex Huang <[email protected]>wrote: > >> Mike, >> >> If you're using the default eclipse, it's very likely that your eclipse >> is using a much lower memory requirement. I'm not sure when you run within >> eclipse, if it's the same jvm or a different jvm. If it's the same jvm, >> you need to change eclipse to have more memory. >> >> You should be able to check by doing ps on your machine and see if two >> jvms are running. >> >> --Alex >> >> > -----Original Message----- >> > From: Mike Tutkowski [mailto:[email protected]] >> > Sent: Friday, April 26, 2013 7:39 AM >> > To: [email protected] >> > Subject: Re: Trouble running CS MS from Eclipse >> > >> > Hi Alex, >> > >> > This file is not present on my computer. Eclipse must be using >> defaults for >> > whatever values would have been in this file. >> > >> > Thanks, >> > >> > >> > On Thu, Apr 25, 2013 at 7:54 PM, Alex Huang <[email protected]> >> wrote: >> > >> > > What's your eclipse settings in eclipse.ini? >> > > >> > > --Alex >> > > >> > > > -----Original Message----- >> > > > From: Mike Tutkowski [mailto:[email protected]] >> > > > Sent: Friday, April 26, 2013 12:35 AM >> > > > To: [email protected] >> > > > Subject: Trouble running CS MS from Eclipse >> > > > >> > > > Hi, >> > > > >> > > > I'm getting an out of memory error when trying to run the management >> > > > server from Eclipse. >> > > > >> > > > In my Debug Configuration, for my Goal I use the following: >> > > > >> > > > -pl client jetty:run >> > > > >> > > > Under the Environment tab, I have MAVEN_OPTS set to the following: >> > > > >> > > > -XX:MaxPermSize=1024m -Xmx1024m -Xdebug >> > > > -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n >> > > > >> > > > Any thoughts on this? Originally, I had 512 for MaxPermSize, but I >> > > bumped it >> > > > up to 1024 to see if that would fix the problem. >> > > > >> > > > Thanks!! >> > > > >> > > > java.lang.OutOfMemoryError: PermGen space >> > > > >> > > > at java.lang.ClassLoader.findBootstrapClass(Native Method) >> > > > >> > > > at >> > > > java.lang.ClassLoader.findBootstrapClassOrNull(ClassLoader.java:926) >> > > > >> > > > at java.lang.ClassLoader.loadClass(ClassLoader.java:297) >> > > > >> > > > at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass( >> > > > ClassRealm.java:239) >> > > > >> > > > at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass( >> > > > ClassRealm.java:230) >> > > > >> > > > at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass( >> > > > WebAppClassLoader.java:378) >> > > > >> > > > at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass( >> > > > WebAppClassLoader.java:363) >> > > > >> > > > at >> > > > org.apache.log4j.helpers.SyslogWriter.write(SyslogWriter.java:130) >> > > > >> > > > at org.apache.log4j.helpers.QuietWriter.write(QuietWriter.java:48) >> > > > >> > > > at org.apache.log4j.helpers.SyslogQuietWriter.write( >> > > > SyslogQuietWriter.java:54) >> > > > >> > > > at >> > > > org.apache.log4j.net.SyslogAppender.append(SyslogAppender.java:338) >> > > > >> > > > at >> > > > >> > org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:251 >> > > > ) >> > > > >> > > > at >> > > > >> > org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppende >> > > > rs( >> > > > AppenderAttachableImpl.java:66) >> > > > >> > > > at org.apache.log4j.Category.callAppenders(Category.java:206) >> > > > >> > > > at org.apache.log4j.Category.forcedLog(Category.java:391) >> > > > >> > > > at org.apache.log4j.Category.log(Category.java:856) >> > > > >> > > > at >> > > org.apache.commons.logging.impl.Log4JLogger.error(Log4JLogger.java:257 >> > > ) >> > > > >> > > > at >> > > > >> > org.springframework.web.context.ContextLoader.initWebApplicationCont >> > > > ex >> > > > t( >> > > > ContextLoader.java:307) >> > > > >> > > > at >> > > > org.springframework.web.context.ContextLoaderListener.contextInitial >> > > > ized( >> > > > ContextLoaderListener.java:111) >> > > > >> > > > at org.mortbay.jetty.handler.ContextHandler.startContext( >> > > > ContextHandler.java:549) >> > > > >> > > > at org.mortbay.jetty.servlet.Context.startContext(Context.java:136) >> > > > >> > > > at org.mortbay.jetty.webapp.WebAppContext.startContext( >> > > > WebAppContext.java:1282) >> > > > >> > > > at >> > > > org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java >> > > > :518) >> > > > >> > > > at >> > > > >> > org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:4 >> > > > 99) >> > > > >> > > > at org.mortbay.jetty.plugin.Jetty6PluginWebAppContext.doStart( >> > > > Jetty6PluginWebAppContext.java:115) >> > > > >> > > > at >> > > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:5 >> > > 0) >> > > > >> > > > at org.mortbay.jetty.handler.HandlerCollection.doStart( >> > > > HandlerCollection.java:152) >> > > > >> > > > at org.mortbay.jetty.handler.ContextHandlerCollection.doStart( >> > > > ContextHandlerCollection.java:156) >> > > > >> > > > at >> > > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:5 >> > > 0) >> > > > >> > > > at org.mortbay.jetty.handler.HandlerCollection.doStart( >> > > > HandlerCollection.java:152) >> > > > >> > > > at >> > > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:5 >> > > 0) >> > > > >> > > > at >> > > > >> > org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java >> > > > :13 >> > > > 0) >> > > > >> > > > -- >> > > > *Mike Tutkowski* >> > > > *Senior CloudStack Developer, SolidFire Inc.* >> > > > e: [email protected] >> > > > o: 303.746.7302 >> > > > Advancing the way the world uses the >> > > > cloud<http://solidfire.com/solution/overview/?video=play> >> > > > *(tm)* >> > > >> > >> > >> > >> > -- >> > *Mike Tutkowski* >> > *Senior CloudStack Developer, SolidFire Inc.* >> > e: [email protected] >> > o: 303.746.7302 >> > Advancing the way the world uses the >> > cloud<http://solidfire.com/solution/overview/?video=play> >> > *(tm)* >> > > > > -- > *Mike Tutkowski* > *Senior CloudStack Developer, SolidFire Inc.* > e: [email protected] > o: 303.746.7302 > Advancing the way the world uses the > cloud<http://solidfire.com/solution/overview/?video=play> > *™* > -- *Mike Tutkowski* *Senior CloudStack Developer, SolidFire Inc.* e: [email protected] o: 303.746.7302 Advancing the way the world uses the cloud<http://solidfire.com/solution/overview/?video=play> *™*
