CONFIGURE JCONSOLE FOR JVM (TOMCAT) on CENTOS:
**********************************************

1) #vi /etc/profile

insert -->
CATALINA_OPTS="-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=8999 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -Djava.rmi.server.hostname=127.0.0.1"
export CATALINA_OPTS

2) #jconsole

go to remote process,type:
localhost:8999 --> connect

Please refer to:

http://download.oracle.com/javase/1.5.0/docs/guide/management/faq.html
http://www.markomedia.com.au/blog/monitor-railo-on-tomcat-using-jconsole.html (best to refer)
https://wiki.internet2.edu/confluence/display/CPD/Monitoring+Tomcat+with+JMX

*************************************************
How to check port 8999 listening:
#netstat -anp | grep 8999

Enable 8999 to listen:
#iptables --list
#/usr/sbin/iptables -I INPUT -s 127.0.0.1/192.168.10.220 -p tcp --destination-port 8999 -j ACCEPT

**********************************************************************************
HOW TO ENABLE GC LOG IN CATALINA.OUT

In /etc/profile:
-->
CATALINA_OPTS="-verbose:gc -Xms256m -Xmx512m -XX:+PrintGCTimeStamps -XX:+PrintGCDetails"
export CATALINA_OPTS

When we talk about life..there's lot of options/decisions that need to deal with..this will determine what might be happened next...have u make a good decision to decide yours? Me?
Yes..I did it when it needed. When making a decision, there's a lot of consideration that need to be taken care of...people that u love,surrounding that makes u happy,people's feeling and so on..
Lots of things happened in my life...good and bad...but I do believe ...each of them happened for a reason and sake.

Anyway, once u make it, deal with it. Look forward and do not flip back...there's always good things happened along the journey...take it easy...enjoy your life. Sacrifice?...Yup...it's a must even if it is a win win situation.There's always a price to pay toward anything happened..deal with it...

At the end of the day....I have to leave the people that i love so that I can go along the journey alone to gain maturity and part of life lesson

About this blog

Followers

Powered By Blogger

Labels