Hello, I get a “Out of memory: PermGen space” error from an ANT build roughly halfway thru completion. I understand that the recommended solution is to set the following Java options to:
…as it is mentioned here:
So I set the following options mentioned above to a the following environment variable that I created on the server:
TEAMCITY_SERVER_MEM_OPTS = -Xmx1200m –XX:MaxPermSize=270m
However even though the JVM arguments reflect those two options, as seen in the Adminstration>Diagonstics>Troubleshooting> JVM arguments section of TeamCity, I still feel uncertain that I set the JVM options correctly.
Did I interpret the instructions correctly? Because regardless if the TEAMCITY_SERVER_MEM_OPTS variable is set, the results are the same. Do I need set something else? Attached are my thread dumps prior to the exception.