tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Schadler Johann" <aon.913111...@aon.at>
Subject Re: Tomcat JMX remote
Date Thu, 03 Jan 2013 22:33:16 GMT
I suggest the following additional params:

-Dcom.sun.management.jmxremote.host=<ip-address>
-Djava.rmi.server.hostname=<ip-address, same as above>

For me, this (with the options below, of course) works as expected.

wbr Johann

From: Adrien RUFFIE 
Sent: Thursday, December 06, 2012 4:03 PM
To: users@tomcat.apache.org 
Subject: Tomcat JMX remote

Hello all,

 

I have a tomcat6 installed in one debian,

But openjdk6 is installed and I try to active

JMX access on the throught the network

On my tomcat, but it doesn’t work …

 

I use following option (CATALINA_OPTS or JAVA_OPTS I have try two):

set CATALINA_OPTS=-Dcom.sun.management.jmxremote \

    -Dcom.sun.management.jmxremote.port=9999 \

    -Dcom.sun.management.jmxremote.ssl=false \

    -Dcom.sun.management.jmxremote.authenticate=true \

    -Dcom.sun.management.jmxremote.password.file=../conf/jmxremote.password \

    -Dcom.sun.management.jmxremote.access.file=../conf/jmxremote.access \

 

My tomcat is launched correctly with following jvm parameter:

 

root@rd4-was7:/usr/local# ps -ef | grep java

root     23943     1  0 15:30 pts/2    00:00:01 /usr/lib/jvm/java-6-openjdk/jre/bin/java -Djava.util.logging.config.file=/usr/local/tomcat6/conf/logging.properties
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Dcom.sun.management.jmxremote.port=9999
-Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false
-Djava.endorsed.dirs=/usr/local/tomcat6/endorsed -classpath /usr/local/tomcat6/bin/bootstrap.jar
-Dcatalina.base=/usr/local/tomcat6 -Dcatalina.home=/usr/local/tomcat6 -Djava.io.tmpdir=/usr/local/tomcat6/temp
org.apache.catalina.startup.Bootstrap start

 

But I cannot access with my JVisualVM:

Cannot connect to tomcat@192.168.101.160:9999 using service:jmx:rmi///jndi/rmi://192.168.101.160:9999/jmxrmi

 

Tomcat of tomcat@192.168.101.160 must be are a user on my debian ? Because the current tomcat
user is “tomcat6” on file system

 

Attached file is my catalina.sh

 

Any one have an idea ?

 

Bien cordialement,
 


     
     
      Adrien RUFFIE
      Ingénieur R&D 
     
      40, rue du Village d’Entreprises
      31670 Labège
      www.e-deal.com 
     
      LD : +33 1 73 03 29 50
      Std : +33 1 73 03 29 80
      Fax : +33 1 73 01 69 77
      a.ruffie@e-deal.com 
     


E-DEAL soutient le Pacte Mondial de l'ONU

 



--------------------------------------------------------------------------------

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Mime
  • Unnamed multipart/related (inline, None, 0 bytes)
View raw message