Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 66AB9E5E0 for ; Thu, 3 Jan 2013 22:34:00 +0000 (UTC) Received: (qmail 32305 invoked by uid 500); 3 Jan 2013 22:33:56 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 32118 invoked by uid 500); 3 Jan 2013 22:33:56 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 32106 invoked by uid 99); 3 Jan 2013 22:33:56 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Jan 2013 22:33:56 +0000 X-ASF-Spam-Status: No, hits=2.4 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [195.3.96.115] (HELO email.aon.at) (195.3.96.115) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Jan 2013 22:33:48 +0000 Received: (qmail 29616 invoked from network); 3 Jan 2013 22:33:27 -0000 Received: from 91-114-180-248.adsl.highway.telekom.at (HELO debsrv.jschadler.home) ([91.114.180.248]) (envelope-sender ) by smarthub80.res.a1.net (qmail-ldap-1.03) with SMTP for ; 3 Jan 2013 22:33:16 -0000 Received: from 7TCMG542651 (unknown [192.168.0.26]) by debsrv.jschadler.home (Postfix) with ESMTPA id 392F66A418 for ; Thu, 3 Jan 2013 23:33:36 +0100 (CET) Message-ID: <6A9747E3EBD341919ADFC4A4E230C933@austria.local> From: "Schadler Johann" To: "Tomcat Users List" References: <747793AC722E0A4FB40F138D5BBAE0A2158B5C9774@edeal-xcg3.e-deal.com> In-Reply-To: <747793AC722E0A4FB40F138D5BBAE0A2158B5C9774@edeal-xcg3.e-deal.com> Subject: Re: Tomcat JMX remote Date: Thu, 3 Jan 2013 23:33:16 +0100 MIME-Version: 1.0 Content-Type: multipart/related; type="multipart/alternative"; boundary="----=_NextPart_000_00C4_01CDEA0A.B4C05AD0" X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Mailer: Microsoft Windows Live Mail 16.4.3505.912 X-MimeOLE: Produced By Microsoft MimeOLE V16.4.3505.912 X-Virus-Checked: Checked by ClamAV on apache.org ------=_NextPart_000_00C4_01CDEA0A.B4C05AD0 Content-Type: multipart/alternative; boundary="----=_NextPart_001_00C5_01CDEA0A.B4C05AD0" ------=_NextPart_001_00C5_01CDEA0A.B4C05AD0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable I suggest the following additional params: -Dcom.sun.management.jmxremote.host=3D -Djava.rmi.server.hostname=3D For me, this (with the options below, of course) works as expected. wbr Johann From: Adrien RUFFIE=20 Sent: Thursday, December 06, 2012 4:03 PM To: users@tomcat.apache.org=20 Subject: Tomcat JMX remote Hello all, =20 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=E2=80=99t work =E2=80=A6 =20 I use following option (CATALINA_OPTS or JAVA_OPTS I have try two): set CATALINA_OPTS=3D-Dcom.sun.management.jmxremote \ -Dcom.sun.management.jmxremote.port=3D9999 \ -Dcom.sun.management.jmxremote.ssl=3Dfalse \ -Dcom.sun.management.jmxremote.authenticate=3Dtrue \ = -Dcom.sun.management.jmxremote.password.file=3D../conf/jmxremote.password= \ = -Dcom.sun.management.jmxremote.access.file=3D../conf/jmxremote.access \ =20 My tomcat is launched correctly with following jvm parameter: =20 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=3D/usr/local/tomcat6/conf/logging.propert= ies -Djava.util.logging.manager=3Dorg.apache.juli.ClassLoaderLogManager = -Dcom.sun.management.jmxremote.port=3D9999 = -Dcom.sun.management.jmxremote.authenticate=3Dfalse = -Dcom.sun.management.jmxremote.ssl=3Dfalse = -Djava.endorsed.dirs=3D/usr/local/tomcat6/endorsed -classpath = /usr/local/tomcat6/bin/bootstrap.jar = -Dcatalina.base=3D/usr/local/tomcat6 = -Dcatalina.home=3D/usr/local/tomcat6 = -Djava.io.tmpdir=3D/usr/local/tomcat6/temp = org.apache.catalina.startup.Bootstrap start =20 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 =20 Tomcat of tomcat@192.168.101.160 must be are a user on my debian ? = Because the current tomcat user is =E2=80=9Ctomcat6=E2=80=9D on file = system =20 Attached file is my catalina.sh =20 Any one have an idea ? =20 Bien cordialement, =20 =20 =20 Adrien RUFFIE Ing=C3=A9nieur R&D=20 =20 40, rue du Village d=E2=80=99Entreprises 31670 Lab=C3=A8ge www.e-deal.com=20 =20 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=20 =20 E-DEAL soutient le Pacte Mondial de l'ONU =20 -------------------------------------------------------------------------= ------- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org ------=_NextPart_001_00C5_01CDEA0A.B4C05AD0 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable
I suggest the following additional params:
 
-Dcom.sun.management.jmxremote.host=3D<ip-address>
-Djava.rmi.server.hostname=3D<ip-address, same as = above>
 
For me, this (with the options below, of course) works as = expected.
 
wbr Johann
 
Sent: Thursday, December 06, 2012 4:03 PM
Subject: Tomcat JMX remote
 

Hello all,

 

I have a tomcat6 installed in = one=20 debian,

But openjdk6 is installed and I = try to=20 active

JMX access on the throught the=20 network

On my tomcat, but it = doesn=E2=80=99t work=20 =E2=80=A6

 

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

set=20 CATALINA_OPTS=3D-Dcom.sun.management.jmxremote \

   =20 -Dcom.sun.management.jmxremote.port=3D9999 \

   =20 -Dcom.sun.management.jmxremote.ssl=3Dfalse \

   =20 -Dcom.sun.management.jmxremote.authenticate=3Dtrue = \

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

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

 

My tomcat is launched correctly = with=20 following jvm parameter:

 

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

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

 

But I cannot access with my=20 JVisualVM:

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

 

Tomcat of tomcat@192.168.101.160 must = be are a=20 user on my debian ? Because the current tomcat user is = =E2=80=9Ctomcat6=E2=80=9D on file=20 system

 

Attached file is my=20 catalina.sh

 

Any one have an idea = ?

 

Bien=20 cordialement,
 

Adrien=20 RUFFIE
Ing=C3=A9nieur=20 R&D

40,=20 rue du Village d=E2=80=99Entreprises
31670 = Lab=C3=A8ge
www.e-deal.com=20


LD : +33 1 73 03 29 50
Std : +33 1 73 03 29 = 80
Fax : +33=20 1 73 01 69 77
a.ruffie@e-deal.com=20


E-DEAL=20 soutient le Pacte Mondial de=20 l'ONU

 



---------------------------------------------------------------------=
To=20 unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For = additional=20 commands, e-mail: = users-help@tomcat.apache.org
------=_NextPart_001_00C5_01CDEA0A.B4C05AD0-- ------=_NextPart_000_00C4_01CDEA0A.B4C05AD0--