Reputation: 3008
# I am using Buildr as my build tool. Part of my build process generates Java source from a WSDL using JAX-WS. I have an ANT build script that does this with the wsimport ant task. Using the AntWrap Ruby module in Buildr I can do the same thing.
My problem is I am getting the OutOfMemoryError PermGen space when trying to generate source for many WSDL's. I got the same problem when running Ant by itself but resolved it by setting the ANT_OPTS environment variable to:
set ANT_OPTS=-Xmx512m -XX:PermSize=64m -XX:MaxPermSize=128m
But when I run my build using Buildr I still get the error even though this environment variable is set. I have even tried setting this variable in my build file but this hasn't helped.
My environment is as follows:
Upvotes: 2
Views: 845
Reputation: 262
Did you try setting JAVA_OPTS in the buildfile, I am not sure if buildr/antwrap picks up the ANT_OPS environment variables.
ENV['JAVA_OPTS'] ||= '-Xms1g -Xmx1g'
Upvotes: 4