How to use the `Java Options` in jenkins ant build tool to set ANT_OPTS

前端 未结 2 942
别跟我提以往
别跟我提以往 2021-01-17 23:00

I have a problem with a junit ant build, i\'m getting a java.lang.OutOfMemoryError: PermGen space error.

I\'m trying to set ANT_OPTS

相关标签:
2条回答
  • 2021-01-17 23:14

    Also, u can add memory option in the build file also, like memoryInitialSize="256m" memoryMaximumSize="512m". this will help. as i am using the same, and it caused no problem till now.

    0 讨论(0)
  • 2021-01-17 23:33

    Set the JAVA OPTIONS as -Xmx512m -XX:MaxPermSize=256m only without the ANT_OPTS=

    0 讨论(0)
提交回复
热议问题