On Dec 6, 2012, at 10:03 AM, Adrien RUFFIE wrote:

> 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 \

Are jmxremote.password and jmxremote.access setup correctly?  These should 
contain your user, password and access permissions.

>  
> 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

This is not what you specified above.

> -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

Seems like you are accessing from a remote machine.  Is there a firewall in the 
way?

If so, you might also want to look at 

https://tomcat.apache.org/tomcat-7.0-doc/config/listeners.html#JMX_Remote_Lifecycle_Listener_-_org.apache.catalina.mbeans.JmxRemoteLifecycleListener

Dan


>  
> 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,
>  
> <image002.png>
> <image003.png><image004.png><image005.png>
> 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.ruf...@e-deal.com
> 
> E-DEAL soutient le Pacte Mondial de l'ONU
>  
> <catalina.txt>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to