From: Jeffrey F. <jef...@gm...> - 2008-06-29 00:06:07
|
> # Initial Java Heap Size (in MB) > wrapper.java.initmemory=3 That's really really small. I would make that much closer to your max heaps size. I've frequently had OOM errors in this sort of situation, where the JVM won't allocate enough memory fast enough, only to have it work with a larger max mem. I'd recommend making that at least 512. Jtf On Sat, Jun 28, 2008 at 11:19 PM, Ravi Roy <rav...@gm...> wrote: > Hi All, > > I am using CC 2.7.1 with Ant (version 1.7.0), I am using a java Sercie > Wrapper (as Windows Serivice for CC). > > http://wrapper.tanukisoftware.org/doc/english/download.jsp > > If I run my ant build from command line it works fine.. but running > with CC it gives "System is out of Resources" after some time.. > > [javac] The system is out of resources. > [javac] Consult the following stack trace for details. > [javac] java.lang.OutOfMemoryError: Java heap space > [javac] at com.sun.tools.javac.util.Name.fromChars(Name.java:115) > [javac] at com.sun.tools.javac.util.Name.fromString(Name.java:144) > [javac] at com.sun.tools.javac.util.Name.fromString(Name.java:150) > [javac] at com.sun.tools.javac.util.Name$Table.fromString(Name.java:529) > [javac] at > com.sun.tools.javac.jvm.ClassWriter.writePool(ClassWriter.java:510) > [javac] at > com.sun.tools.javac.jvm.ClassWriter.writeClassFile(ClassWriter.java:1565) > [javac] at > com.sun.tools.javac.jvm.ClassWriter.writeClass(ClassWriter.java:1443) > [javac] at > com.sun.tools.javac.main.JavaCompiler.genCode(JavaCompiler.java:618) > [javac] at > com.sun.tools.javac.main.JavaCompiler.generate(JavaCompiler.java:1289) > [javac] at > com.sun.tools.javac.main.JavaCompiler.generate(JavaCompiler.java:1259) > [javac] at > com.sun.tools.javac.main.JavaCompiler.compile2(JavaCompiler.java:765) > [javac] at > com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:730) > [javac] at com.sun.tools.javac.main.Main.compile(Main.java:353) > [javac] at com.sun.tools.javac.main.Main.compile(Main.java:279) > > In the Wrapper.conf i have specified minumum and max memory sizes.: > > # Initial Java Heap Size (in MB) > wrapper.java.initmemory=3 > > # Maximum Java Heap Size (in MB) > wrapper.java.maxmemory=1024 > > > My config.xml has the following settings : > <schedule> > <ant > buildfile="D:/Projects/build/build.xml" > uselogger="true" usedebug="false" > anthome="${env.ANT_HOME}" > target="main"> > <jvmarg arg="-server" /> > <jvmarg arg="-Xms1024m" /> > <jvmarg arg="-Xmx1024m" /> > </ant> > </schedule> > > > Does somebody have the clue what is wrong with this configuration ? > > Regards, > Ravi. > -- http://blog.jeffreyfredrick.com http://www.ohloh.net/accounts/JeffreyFredrick |