|
Hi,
perhaps this is a noob question, but: How do I increase the memory that hudson gives to my ant processes? Some unforkable processes (junit-report, emma-report) gives me OutOfMemory errors, so I'd like to increase the max memory. Setting ANT_OPTS to something useful would do the trick if this was a command line invocation, but I don't know how to do this in Hudson. Hudson runs in a glassfish server that runs as a daemon, on a Linux box. Where should I specify ANT_OPTS then? Thanks, -- Narve --------------------------------------------------------------------- To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email] |
|
On Mar 27, 2008, at 10:14 , Narve Sætre wrote: > Hi, > > perhaps this is a noob question, but: How do I increase the memory > that hudson gives to my ant processes? Some unforkable processes > (junit-report, emma-report) gives me OutOfMemory errors, so I'd like > to increase the max memory. Setting ANT_OPTS to something useful would > do the trick if this was a command line invocation, but I don't know > how to do this in Hudson. > > Hudson runs in a glassfish server that runs as a daemon, on a Linux > box. Where should I specify ANT_OPTS then? There is a specific panel "Java OPtions" in the Build panel. But beware that some tools, such as findbugs, want their own configuration in their ant task (e.g.: <findbugs home="${findbugs.dir}" output="xml" outputFile="build/test/findbugs/findbugs.xml" jvmargs="-Xmx512m" effort="max" reportLevel="low" > <sourcePath path="${basedir}/src" /> <class location="${basedir}/build/classes" /> </findbugs> -- Fabrizio Giudici, Ph.D. - Java Architect, Project Manager Tidalwave s.a.s. - "We make Java work. Everywhere." weblogs.java.net/blog/fabriziogiudici - www.tidalwave.it/blog [hidden email] - mobile: +39 348.150.6941 --------------------------------------------------------------------- To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email] |
|
On Thu, Mar 27, 2008 at 10:20 AM, Fabrizio Giudici
<[hidden email]> wrote: > > > On Mar 27, 2008, at 10:14 , Narve Sætre wrote: > > Hi, > > > > perhaps this is a noob question, but: How do I increase the memory > > that hudson gives to my ant processes? Some unforkable processes > > (junit-report, emma-report) gives me OutOfMemory errors, so I'd like > > to increase the max memory. Setting ANT_OPTS to something useful would > > do the trick if this was a command line invocation, but I don't know > > how to do this in Hudson. > > > > Hudson runs in a glassfish server that runs as a daemon, on a Linux > > box. Where should I specify ANT_OPTS then? > > > There is a specific panel "Java OPtions" in the Build panel. But > beware that some tools, such as findbugs, want their own configuration > in their ant task (e.g.: > > <findbugs home="${findbugs.dir}" > output="xml" > outputFile="build/test/findbugs/findbugs.xml" > jvmargs="-Xmx512m" > effort="max" > reportLevel="low" > > <sourcePath path="${basedir}/src" /> > <class location="${basedir}/build/classes" /> > </findbugs> Of course - I just didn't see that line :) Thanks! -- Narve |
|
In reply to this post by Narve Sætre
Go to: http://<server>/hudson/job/<jobName>/configure
Under "Invoke Ant" of the "Build" section you should see an "Advance" button, click it. You should now see an extra field called "Java Options" and in there you can specify extra java options to pass to your ant build such as -Xms256M -Xmx512m.
|
| Powered by Nabble | Edit this page |
