|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
building NB, java.lang.OutOfMemoryError: PermGen spaceI've been using MB7 with Java and Ruby clusters for debugging Ruby
and JRuby programs but I can no longer build it. I've got an up-to-date clone of NB main and am running out of permgen space when building on MacOS X 10.5.6. I've had this problem before and upped the max permgen size for ant to a ridiculous level (which worked) but now even setting max permgen to 2048 MB doesn't allow building. [main]$ java -version java version "1.5.0_16" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_16-b06-284) Java HotSpot(TM) Client VM (build 1.5.0_16-133, mixed mode, sharing) [main]$ /opt/local/bin/ant -version Apache Ant version 1.7.1 compiled on June 27 2008 [main]$ hg identify b97997ded7d3 tip [main]$ export ANT_OPTS=-'Xmx2048m -XX:MaxPermSize=2048m' [main]$ /opt/local/bin/ant -Dcluster.config=basic ... compile: [mkdir] Created dir: /Users/stephen/dev/java/src/netbeans/main/apisupport.project/build/classes [nb-javac] JSR 269 not found, loading from /Users/stephen/dev/java/src/netbeans/main/apisupport.harness/external/openjdk-javac-6-b12.jar [nb-javac] Compiling 190 source files to /Users/stephen/dev/java/src/netbeans/main/apisupport.project/build/classes [repeat] [repeat] [repeat] The system is out of resources. [repeat] Consult the following stack trace for details. [repeat] java.lang.OutOfMemoryError: PermGen space [repeat] at java.lang.ClassLoader.defineClass1(Native Method) [repeat] at java.lang.ClassLoader.defineClass(ClassLoader.java:675) [repeat] at org.apache.tools.ant.AntClassLoader.defineClassFromData(AntClassLoader.java:1146) [repeat] at org.apache.tools.ant.AntClassLoader.getClassFromStream(AntClassLoader.java:1324) [repeat] at org.apache.tools.ant.AntClassLoader.findClassInComponents(AntClassLoader.java:1388) [repeat] at org.apache.tools.ant.AntClassLoader.findClass(AntClassLoader.java:1341) [repeat] at org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:1094) [repeat] at java.lang.ClassLoader.loadClass(ClassLoader.java:251) [repeat] at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:374) [repeat] at com.sun.tools.javac.comp.Attr.<init>(Attr.java:99) [repeat] at com.sun.tools.javac.comp.Attr.instance(Attr.java:87) [repeat] at com.sun.tools.javac.comp.Annotate.<init>(Annotate.java:66) [repeat] at com.sun.tools.javac.comp.Annotate.instance(Annotate.java:50) [repeat] at com.sun.tools.javac.jvm.ClassReader.<init>(ClassReader.java:229) [repeat] at com.sun.tools.javac.jvm.ClassReader.instance(ClassReader.java:182) [repeat] at com.sun.tools.javac.main.JavaCompiler.<init>(JavaCompiler.java:307) [repeat] at com.sun.tools.javac.main.JavaCompiler.instance(JavaCompiler.java:86) [repeat] at com.sun.tools.javac.main.Main.compile(Main.java:367) [repeat] at com.sun.tools.javac.main.Main.compile(Main.java:306) [repeat] at com.sun.tools.javac.main.Main.compile(Main.java:297) [repeat] at com.sun.tools.javac.Main.compile(Main.java:82) [repeat] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [repeat] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [repeat] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [repeat] at java.lang.reflect.Method.invoke(Method.java:585) [repeat] at org.netbeans.nbbuild.CustomJavac$CustomAdapter.execute(CustomJavac.java:161) [repeat] at org.netbeans.nbbuild.CustomJavac.compile(CustomJavac.java:110) [repeat] at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:882) [repeat] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288) [repeat] at sun.reflect.GeneratedMethodAccessor12.invoke(Unknown Source) [repeat] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [repeat] at java.lang.reflect.Method.invoke(Method.java:585) [nbmerge] Failed to build target: all-apisupport.project BUILD FAILED /Users/stephen/dev/java/src/netbeans/main/nbbuild/build.xml:690: The following error occurred while executing this line: /Users/stephen/dev/java/src/netbeans/main/nbbuild/build.xml:685: The following error occurred while executing this line: /Users/stephen/dev/java/src/netbeans/main/nbbuild/build.xml:732: The following error occurred while executing this line: /Users/stephen/dev/java/src/netbeans/main/nbbuild/templates/common.xml:146: Compile failed; see the compiler error output for details. Total time: 5 minutes 53 seconds [main]$ --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@... For additional commands, e-mail: dev-help@... |
|
|
Re: building NB, java.lang.OutOfMemoryError: PermGen spaceHi Stephen,
Stephen Bannasch wrote: > I've been using MB7 with Java and Ruby clusters for debugging Ruby and > JRuby programs but I can no longer build it. > > I've got an up-to-date clone of NB main and am running out of permgen > space when building on MacOS X 10.5.6. I've had this problem before > and upped the max permgen size for ant to a ridiculous level (which > worked) but now even setting max permgen to 2048 MB doesn't allow > building. > > [main]$ java -version > java version "1.5.0_16" > Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_16-b06-284) > Java HotSpot(TM) Client VM (build 1.5.0_16-133, mixed mode, sharing) > > [main]$ /opt/local/bin/ant -version > Apache Ant version 1.7.1 compiled on June 27 2008 > > [main]$ hg identify > b97997ded7d3 tip > > [main]$ export ANT_OPTS=-'Xmx2048m -XX:MaxPermSize=2048m' There seems to be an extra ' before Xmx in the above? I haven't had any OOEM problems building with -Xmx512m and default perm size, but I'm not on a Mac. If you don't get any replies here, you might want to ask also on the nbdev@... list since this seems to a general build problem. Erno > [main]$ /opt/local/bin/ant -Dcluster.config=basic > > ... > > compile: > [mkdir] Created dir: > /Users/stephen/dev/java/src/netbeans/main/apisupport.project/build/classes > > [nb-javac] JSR 269 not found, loading from > /Users/stephen/dev/java/src/netbeans/main/apisupport.harness/external/openjdk-javac-6-b12.jar > > [nb-javac] Compiling 190 source files to > /Users/stephen/dev/java/src/netbeans/main/apisupport.project/build/classes > > [repeat] > [repeat] > [repeat] The system is out of resources. > [repeat] Consult the following stack trace for details. > [repeat] java.lang.OutOfMemoryError: PermGen space > [repeat] at java.lang.ClassLoader.defineClass1(Native Method) > [repeat] at > java.lang.ClassLoader.defineClass(ClassLoader.java:675) > [repeat] at > org.apache.tools.ant.AntClassLoader.defineClassFromData(AntClassLoader.java:1146) > > [repeat] at > org.apache.tools.ant.AntClassLoader.getClassFromStream(AntClassLoader.java:1324) > > [repeat] at > org.apache.tools.ant.AntClassLoader.findClassInComponents(AntClassLoader.java:1388) > > [repeat] at > org.apache.tools.ant.AntClassLoader.findClass(AntClassLoader.java:1341) > [repeat] at > org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:1094) > [repeat] at java.lang.ClassLoader.loadClass(ClassLoader.java:251) > [repeat] at > java.lang.ClassLoader.loadClassInternal(ClassLoader.java:374) > [repeat] at com.sun.tools.javac.comp.Attr.<init>(Attr.java:99) > [repeat] at com.sun.tools.javac.comp.Attr.instance(Attr.java:87) > [repeat] at > com.sun.tools.javac.comp.Annotate.<init>(Annotate.java:66) > [repeat] at > com.sun.tools.javac.comp.Annotate.instance(Annotate.java:50) > [repeat] at > com.sun.tools.javac.jvm.ClassReader.<init>(ClassReader.java:229) > [repeat] at > com.sun.tools.javac.jvm.ClassReader.instance(ClassReader.java:182) > [repeat] at > com.sun.tools.javac.main.JavaCompiler.<init>(JavaCompiler.java:307) > [repeat] at > com.sun.tools.javac.main.JavaCompiler.instance(JavaCompiler.java:86) > [repeat] at com.sun.tools.javac.main.Main.compile(Main.java:367) > [repeat] at com.sun.tools.javac.main.Main.compile(Main.java:306) > [repeat] at com.sun.tools.javac.main.Main.compile(Main.java:297) > [repeat] at com.sun.tools.javac.Main.compile(Main.java:82) > [repeat] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native > Method) > [repeat] at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > > [repeat] at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > > [repeat] at java.lang.reflect.Method.invoke(Method.java:585) > [repeat] at > org.netbeans.nbbuild.CustomJavac$CustomAdapter.execute(CustomJavac.java:161) > > [repeat] at > org.netbeans.nbbuild.CustomJavac.compile(CustomJavac.java:110) > [repeat] at > org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:882) > [repeat] at > org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288) > [repeat] at > sun.reflect.GeneratedMethodAccessor12.invoke(Unknown Source) > [repeat] at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > > [repeat] at java.lang.reflect.Method.invoke(Method.java:585) > [nbmerge] Failed to build target: all-apisupport.project > > BUILD FAILED > /Users/stephen/dev/java/src/netbeans/main/nbbuild/build.xml:690: The > following error occurred while executing this line: > /Users/stephen/dev/java/src/netbeans/main/nbbuild/build.xml:685: The > following error occurred while executing this line: > /Users/stephen/dev/java/src/netbeans/main/nbbuild/build.xml:732: The > following error occurred while executing this line: > /Users/stephen/dev/java/src/netbeans/main/nbbuild/templates/common.xml:146: > Compile failed; see the compiler error output for details. > > Total time: 5 minutes 53 seconds > > [main]$ > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@... > For additional commands, e-mail: dev-help@... > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@... For additional commands, e-mail: dev-help@... |
|
|
Re: building NB, java.lang.OutOfMemoryError: PermGen space>Hi Stephen,
> >Stephen Bannasch wrote: >>I've been using MB7 with Java and Ruby clusters for debugging Ruby >>and JRuby programs but I can no longer build it. >> >>I've got an up-to-date clone of NB main and am running out of >>permgen space when building on MacOS X 10.5.6. I've had this >>problem before and upped the max permgen size for ant to a >>ridiculous level (which worked) but now even setting max permgen to >>2048 MB doesn't allow building. >> >>[main]$ java -version >>java version "1.5.0_16" >>Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_16-b06-284) >>Java HotSpot(TM) Client VM (build 1.5.0_16-133, mixed mode, sharing) >> >>[main]$ /opt/local/bin/ant -version >>Apache Ant version 1.7.1 compiled on June 27 2008 >> >>[main]$ hg identify >>b97997ded7d3 tip >> >>[main]$ export ANT_OPTS=-'Xmx2048m -XX:MaxPermSize=2048m' > >There seems to be an extra ' before Xmx in the above? I haven't had >any OOEM problems building with -Xmx512m and default perm size, but >I'm not on a Mac. If you don't get any replies here, you might want >to ask also on the nbdev@... list since this seems to a >general build problem. > >Erno Thanks for the reply Errno, The errors I was getting about running out of permgen space led me down a path that didn't help. I found that following your example of just increasing the regular memory worked: Here's how I am building my instance of NetBeans & (Java and Ruby modules) now: $ cat build.sh #!/bin/sh export ANT_OPTS='-Xmx1048m' /opt/local/bin/ant -Dcluster.config=basic -Dmoduleconfig=ruby merge --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@... For additional commands, e-mail: dev-help@... |
| Free embeddable forum powered by Nabble | Forum Help |