Since upgrading from TeamCity 6.0.3 to 6.5 we are getting consistent 'java.lang.OutOfMemoryError: PermGen' space errors during compilation while running 'mvn clean install'. I have tried changing both the server and all of our 6 agent's MaxPermSize. But it has not helped. This problem only happens when running maven commands. I noticed that the maven libraries bundled with the version of maven included with TeamCity have changed. So, I changed our build configs to use a local instance of maven. This has not helped. I am getting to the point of rolling back to 6.0.3 (if possible).
JAVA_OPTS='-Xms256m -Xmx1024m -XX:MaxPermSize=512m'
MAVEN_OPTS='-Xms256m -Xmx1024m -XX:MaxPermSize=512m'
JAVA_OPTS='-Xms256m -Xmx1024m -XX:PermSize=256m -XX:MaxPermSize=512m'
MAVEN_OPTS='-Xms256m -Xmx1024m -XX:PermSize=256m -XX:MaxPermSize=512m'
TEAMCITY_AGENT_MEM_OPTS="-Xms256m -Xmx1024m -XX:MaxPermSize=512m"
TEAMCITY_SERVER_MEM_OPTS="-Xms512m -Xmx2048m -XX:MaxPermSize=1024m"
These errors never occured before the upgrade. Any suggestions?
Attached is a recent thread dump.