Last active
December 26, 2015 05:49
-
-
Save AhmedKammorah/7103423 to your computer and use it in GitHub Desktop.
change heap memory config forr tomccat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
top | |
get pid | |
jmap -heap <pid> | |
add \usr\share\tomcat7\bin\setenv.sh | |
add | |
export JAVA_OPTS="-Dfile.encoding=UTF-8 -Xms128m -Xmx1024m -XX:PermSize=64m -XX:MaxPermSize=256m" | |
>/etc/init.d/tomcat6 restart | |
ref : | |
http://www.mkyong.com/tomcat/tomcat-javalangoutofmemoryerror-permgen-space/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>vi /usr/share/tomcat6/bin/catalina.sh | |
add | |
JAVA_OPTS="-Djava.awt.headless=true -Dfile.encoding=UTF-8 | |
-server -Xms512m -Xmx512m | |
-XX:NewSize=256m -XX:MaxNewSize=256m -XX:PermSize=256m | |
-XX:MaxPermSize=256m -XX:+DisableExplicitGC" | |
>/etc/init.d/tomcat6 restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment