Where to increase PermGen space for Ant
Answered
When executing an Ant target, I'm running into a java.lang.OutOfMemoryError: PermGen space. According to https://www.jetbrains.com/help/idea/2016.3/build-file-properties.html I should increase Maximum Heap Size. Unfortunately, this doesn't solve the problem. Where in the properties can I simply add the VM argument -XX:MaxPermSize=1024M?
Please sign in to leave a comment.
Does it happen when javac task is executed from Ant? Is it forked?
If so, please refer to http://stackoverflow.com/a/12953493/104891.
You can pass JVM options to Ant VM like this:
Note that you may need to use 64-bit JVM for Ant if you want to specify such high MaxPermSize and/or Xmx values because of https://intellij-support.jetbrains.com/hc/articles/207241105.
@Serge
Thank you very much, -J-XX:MaxPermSize=1024M solved it.