Re: java.lang.OutOf MemoryError: PermGen space

Antoine Levy-Lambert <[email protected]>
Newsgroups gmane.comp.java.cruise-control.user
Message-ID <[email protected]>
Hello Gaurav,

you should write a wrapper script around ant.
JVM options like Perm size should be set in an environment variable 
called ANT_OPTS

I have written a script looking like this :

set ANT_OPTS=-Xmx768M -Xms512M -XX:MaxPermSize=200m -XX:PermSize=200m 
-XX:+HeapDumpOnOutOfMemoryError
call "%~dp0"\ant_182_sun_jdk16.cmd %*

and called ant_182_sun_jdk16_large_mem_perms.cmd

Then in your cruisecontrol configuration file you need to use the 
antscript attribute to say that you want to run 
ant_182_sun_jdk16_large_mem_perms.cmd

A snippet from my configuration :

<ant 
antscript="${script.dir}/ant_182_sun_jdk16_large_mem_perms.${shell.ext}"
        antworkingdir="${location}"
        buildfile="${projecthome}/build.xml"
        saveLogDir="${logs}"
        target="cruise-build"
 >

Regards,

Antoine



On 1/27/2011 2:41 PM, gaurav midha wrote:
> Hi ,
> I am getting the following error when executing the build file on 
> windows build server for java builds.
> BUILD FAILED
>
> D:\CruiseControl\admin\shared\master.xml:601: java.lang.OutOf
>
> MemoryError: PermGen space
>
>         at 
> org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.jav
>
> a:115)
>
>

------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d

_______________________________________________
Cruisecontrol-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.