OutOfMemoryError: PermGen space problem

When installing an Oscar v12 demo on my windows laptop, I encountered Java memory problems. I added the following lines to the Tomcat parameters (in Java, Java Options) :
-XX:+CMSClassUnloadingEnabled
-XX:+CMSPermGenSweepingEnabled
-XX:+UseConcMarkSweepGC
-XX:PermSize=128m
-XX:MaxPermSize=512m