Just add to your JVM settings the following switchs:
This will avoid the out of memory permgen space error.
You may want to adjust these values for something smaller or bigger.
Also adjust your JVM memory with the following lines:
-Xms256m -Xmx512m for example (min and max memory)