Tomcat:Monitorando o Apache Tomcat com o JConsole: Difference between revisions
(New page: == Configurando o Apache Tomcat == Edite o arquivo catalina.sh e adicione a entrada JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=8004 -Dcom...) |
|||
Line 14: | Line 14: | ||
> ./startup.sh | > ./startup.sh | ||
== | Verificando | ||
> '''ps -efw | grep java''' | |||
root 12039 1 0 10:21 pts/2 00:00:10 /usr/java/latest/bin/java -server -Xms256m -Xmx512m | |||
'''-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=8004 -Dcom.sun.management.jmxremote.authenticate=false''' | |||
'''-Dcom.sun.management.jmxremote.ssl=false''' -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager | |||
-Djava.util.logging.config.file=/opt/apache-tomcat-6.0.18/conf/logging.properties -Djava.endorsed.dirs=/opt/apache-tomcat-6.0.18 | |||
/endorsed -classpath :/opt/apache-tomcat-6.0.18/bin/bootstrap.jar -Dcatalina.base=/opt/apache-tomcat-6.0.18 -Dcatalina.home=/opt | |||
/apache-tomcat-6.0.18 -Djava.io.tmpdir=/opt/apache-tomcat-6.0.18/temp org.apache.catalina.startup.Bootstrap start | |||
root 13008 10539 0 10:52 pts/2 00:00:00 grep java | |||
== Conectando via JConsole == | |||
[[Imagem:Jconsole01.JPG]] | [[Imagem:Jconsole01.JPG]] | ||
[[Imagem:Jconsole02.JPG]] | [[Imagem:Jconsole02.JPG]] |
Revision as of 13:57, 27 February 2009
Configurando o Apache Tomcat
Edite o arquivo catalina.sh e adicione a entrada
JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=8004 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false"
Salve e Feche o arquivo.
Reinicie então Tomcat
> ./shutdown.sh > ./startup.sh
Verificando
> ps -efw | grep java root 12039 1 0 10:21 pts/2 00:00:10 /usr/java/latest/bin/java -server -Xms256m -Xmx512m -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=8004 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=/opt/apache-tomcat-6.0.18/conf/logging.properties -Djava.endorsed.dirs=/opt/apache-tomcat-6.0.18 /endorsed -classpath :/opt/apache-tomcat-6.0.18/bin/bootstrap.jar -Dcatalina.base=/opt/apache-tomcat-6.0.18 -Dcatalina.home=/opt /apache-tomcat-6.0.18 -Djava.io.tmpdir=/opt/apache-tomcat-6.0.18/temp org.apache.catalina.startup.Bootstrap start root 13008 10539 0 10:52 pts/2 00:00:00 grep java