Change Heap Size of JVM

The aim is to change heap size of JVM.

Under the  /usr/share/tomcat6/bin , there is a file name as catalina.sh.
In the file you can write

CATALINA_OPTS="-Xms256m -Xmx256m"

at the 2nd line and then restart the tomcat.

To do that,

(I supposed that you have a root right. If not , type sudo -s)
First of all, go to the tomcat6 bin directory and stop it. 
ex. /etc/init.d/tomcat6 stop

Then, change the right of the catalina.sh file as root.
Here is;

 chown  gunay /usr/share/tomcat6/bin/catalina.sh

Important:
I have used in ubuntu machine and tomcat6 is ubuntu's tomcat not a standalone version.

At the end, you can change file rights as tomcat6 and then start the server.
/etc/init.d/tomcat6 start

Bu blogdaki popüler yayınlar

SDLC - Software Development Life Cycle

@SerializedName and @Expose annotations