Re: JMX via SSH tunnel does not work?

2006-03-07 Thread Mikolaj Rydzewski

Andreas Schildbach wrote:
I understand the problem, but do not know how to solve it. Can you 
give an example how the java.rmi.server.hostname and 
java.rmi.server.useLocalHostname properties on the client and the 
server should be set in this case?

Following setup works for me:

Server located in data center:

export CATALINA_OPTS=-Dcom.sun.management.jmxremote.authenticate=false 
-Dcom.sun.management.jmxremote.ssl=false 
-Dcom.sun.management.jmxremote.port= 
-Djava.rmi.server.useLocalHostname=true


(all in one line). Firewall blocks inbound tcp connections to port .

On my local workstation I run ssh tunnel:

ssh -L :server.com: [EMAIL PROTECTED]

I connect my jconsole to localhost:

--
Mikolaj Rydzewski  [EMAIL PROTECTED]
Becomo S.A.
tel. (12) 2927104




smime.p7s
Description: S/MIME Cryptographic Signature


Re: JMX via SSH tunnel does not work?

2006-03-06 Thread Mikolaj Rydzewski

Andreas Schildbach wrote:
I have set up the JMX server of JDK 1.5.0_06/Tomcat 5.5.15. It works 
fine locally, I'm testing with jconsole.


However, if I tunnel the JMX port over SSH, it does not work. I can 
connect to the port, but there is no flow of data. jconsole is 
hanging around for a minute, and then the connect dialog pops up. What 
is going wrong here?

http://forum.java.sun.com/thread.jspa?threadID=565139tstart=30
http://forum.java.sun.com/thread.jspa?threadID=289869messageID=1242288

--
Mikolaj Rydzewski  [EMAIL PROTECTED]
Becomo S.A.
tel. (12) 2927104




smime.p7s
Description: S/MIME Cryptographic Signature


Re: JMX via SSH tunnel does not work?

2006-03-06 Thread Andreas Schildbach

Hello Mikolaj,

I have set up the JMX server of JDK 1.5.0_06/Tomcat 5.5.15. It works 
fine locally, I'm testing with jconsole.


However, if I tunnel the JMX port over SSH, it does not work. I can 
connect to the port, but there is no flow of data. jconsole is 
hanging around for a minute, and then the connect dialog pops up. What 
is going wrong here?


http://forum.java.sun.com/thread.jspa?threadID=565139tstart=30
http://forum.java.sun.com/thread.jspa?threadID=289869messageID=1242288


I understand the problem, but do not know how to solve it. Can you give 
an example how the java.rmi.server.hostname and 
java.rmi.server.useLocalHostname properties on the client and the server 
should be set in this case?


Regards,

Andreas


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: JMX via SSH tunnel does not work?

2006-03-06 Thread Justin Greene
We had issues using jconsole remotely a while back (jdk 1.5.0_02) that we
were never able to solve.  If memory serves, jconsole opens a connection on
the specified port to that Java instance.  An additional port or two (I
can't remember) are then opened and the ports that are used are somewhat
random making it very difficult to do this through anything that needs to
port forward or needs ports opened.  I do not remember if the additional
ports are opened by jconsole or the other way, but you can see it by
connecting locally and checking netstat for connections to/from the jconsole
process.  The only solution here is to be able to specify the additional
ports, but at the time there was no way to do this.  I have not looked into
the jconsole or JMX options since so I do not know if this was added.

Justin

 -Original Message-
 From: Andreas Schildbach [mailto:[EMAIL PROTECTED] 
 Sent: Monday, March 06, 2006 4:57 PM
 To: users@tomcat.apache.org
 Subject:Re: JMX via SSH tunnel does not work?
 
 Hello Mikolaj,
 
  I have set up the JMX server of JDK 1.5.0_06/Tomcat 
 5.5.15. It works
  fine locally, I'm testing with jconsole.
 
  However, if I tunnel the JMX port over SSH, it does not work. I can
  connect to the port, but there is no flow of data. jconsole is 
  hanging around for a minute, and then the connect dialog 
 pops up. What 
  is going wrong here?
  
  http://forum.java.sun.com/thread.jspa?threadID=565139tstart=30
  
 http://forum.java.sun.com/thread.jspa?threadID=289869messageID=124228
  8
 
 I understand the problem, but do not know how to solve it. 
 Can you give 
 an example how the java.rmi.server.hostname and 
 java.rmi.server.useLocalHostname properties on the client and 
 the server 
 should be set in this case?
 
 Regards,
 
 Andreas
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



JMX via SSH tunnel does not work?

2006-03-05 Thread Andreas Schildbach

Hello everyone,

I have set up the JMX server of JDK 1.5.0_06/Tomcat 5.5.15. It works 
fine locally, I'm testing with jconsole.


However, if I tunnel the JMX port over SSH, it does not work. I can 
connect to the port, but there is no flow of data. jconsole is hanging 
around for a minute, and then the connect dialog pops up. What is going 
wrong here?


Regards,

Andreas


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]