REST Test – Netbeans Maven and PermGen

When I tried the ‘Hello World’ within a more serious example, and running directly from the Netbeans IDE, I found I was still running into PermGen errors. The Maven pom runs org.codehaus.plexus.classworlds.launcher.Launcher with around 86Mb PermGen space allocated.

This is easily fixed. Go to Netbeans, Preferences..., Java, Maven.

netbeans_ide_maven

Select Edit Global Custon Goal Definitions... and add the verify action, using the verify goal, and set the property Env.MAVEN_OPTS="-Xmx1024m -XX:MaxPermSize=512m".

netbeans_ide_maven_verify

512m for the MaxPermSize turns out to be excessive; 256m would more than suffice.

REST Test - Continuous Integration

One thought on “REST Test – Netbeans Maven and PermGen

Comments are closed.