Optimizing Apache Tomcat for Java Application


If u user Alfresco and the other is SpagoBI there is always default setting to run java apps by apache tomcat. You can optimize and set memori parameter just edit file setclasspath.sh inside folder bin in tomcat folder and than add this line after JAVA_ENDORSED_DIRS="$CATALINA_HOME"/endorsed

export JAVA_OPTS="$JAVA_OPTS -Xms128m -Xmx716m -XX:PermSize=32m -XX:MaxPermSize=1024m -Xss2m -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled"

Then restart your tomcat to make change.
Share on Google Plus

About Rolly Maulana Awangga

This is a short description in the author block about the author. You edit it by entering text in the "Biographical Info" field in the user admin panel.
    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment