Difference between revisions of "Tomcat increase PermGen"
(Created page with "Category:Linux Category:Development !! This is '''obsolete since Java8''' because PermGen is not supported anymore. !! See http://javaeesupportpatterns.blogspot.ie/...") |
(No difference)
|
Latest revision as of 15:48, 31 March 2015
!! This is obsolete since Java8 because PermGen is not supported anymore.
!! See http://javaeesupportpatterns.blogspot.ie/2013/02/java-8-from-permgen-to-metaspace.html
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 -Djava.net.preferIPv4Stack=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