Sunday, 20 March 2016

How to set JVM arguments in application deployed at Tomcat server ?


Edit the catalina configuration
vi /home/apache-tomcat-6.0.33/bin/catalina.sh

Set JAVA_OPTS in this file
Find the place, where JAVA_OPTS intialized and insert following line : 
JAVA_OPTS="$JAVA_OPTS -Xms256m -Xmx512m -XX:PermSize=512m -XX:MaxPermSize=512m"

Start the server

Check the process
ps -aef | grep java

No comments:

Post a Comment

Note: only a member of this blog may post a comment.