Merubah JVM (java virtual memory) di tomcat

Mau merubah JVM di tomcat, dah cek di warungpedia belum ? 😛

#cd /home/tomcat/bin

#vi setenv.sh

JAVA_HOME=/usr/lib/jvm/java-8-oracle/jre/bin/java
JRE_HOME=/usr/lib/jvm/java-8-oracle/jre
JAVA_OPTS=”$JAVA_OPTS ”
export JAVA_HOME
export JRE_HOME
export JAVA_OPTS=”-Dfile.encoding=UTF-8 -Xms2048m -Xmx2048m -XX:PermSize=512m -XX:MaxPermSize=512m”

restart tomcat, dah gitu aja 🙂

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: