Tomcat increase PermGen

!! This is obsolete since Java8 because PermGen is not supported anymore.

!! See

Increase permgen space

The easiest way is to change the JAVA_OPTS variable.

Edit your Tomcat launcher script:

vim /etc/default/tomcat7

Adjust your JAVA_OPTS line, it should look like JAVA_OPTS="-Djava.awt.headiless=true ":

JAVA_OPTS="${JAVA_OPTS} -Xms1024m -Xmx1024m -XX:NewSize=256m -XX:MaxNewSize=256m -XX:PermSize=256m -XX:MaxPermSize=512m"

Take changes into account

service tomcat7 restart