We are having a problem where we are not able to increase PermSize for a build we are running. With the addition of more unit tests to an application our PermGen reaches 74M when run from the command line on a local developer workstation. However the same command run on our TeamCity Agent stays limited to 64M, causing the build to fail.
I have tried specifying the PermSize parameters in the agent.bat file, in the wrapper.conf file and in the build as JVM parameters. Any ideas what might be forcing the agent to limit PermSize to 64M?
Our build is setup as follows.
Build Runner: Maven2
Goals: clean compile test
Additional Params: -U
JVM command line params: -Xmx512M -Xms128M -XX:MaxPermSize=128M -XX:PermSize=128M -XX:+CMSClassUnloadingEnabled
The error thrown is
org.apache.maven.surefire.booter.SurefireExecutionException: PermGen space; nested exception is java.lang.OutOfMemoryError: PermGen space
Here is our environment
Windows XP x64
CSA Travel Protection
Unable to adjust PermSize or MaxPermSize for a build