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

0
3 comments

Does it happen when javac task is executed from Ant? Is it forked?

If so, please refer to http://stackoverflow.com/a/12953493/104891.

0

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.

1
Avatar
Permanently deleted user

@Serge

Thank you very much, -J-XX:MaxPermSize=1024M solved it. 

0

Please sign in to leave a comment.