-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Pid,
On 1/26/12 5:35 PM, Pid wrote: > On 26/01/2012 20:33, Christopher Schultz wrote: >> Chuck >> >> On 1/26/12 1:41 PM, Caldarale, Charles R wrote: >>>> From: Christopher Schultz >>>> [mailto:ch...@christopherschultz.net] Subject: [OT] >>>> Inspecting JMX >> >>>> Should I just give up and use JmxRemoteLifecycleListener? >> >>> Yes. You really aren't get to get anywhere on EC2 without it. >> >> Okay, so I enabled the JmxRemoteLifecycleListener like this: >> >> <Listener >> className="org.apache.catalina.mbeans.JmxRemoteLifecycleListener" >> >> rmiRegistryPortPlatform="1234" >> rmiServerPortPlatform="1235" /> >> >> ... and had the same problem: the client connects to the registry >> port and then tries to connect to [public IP]:1235. >> >> So, I tried adding useLocalPorts="true" to the above and not I'm >> able to connect -- using the same URL as before, actually: > > In addition to the valve... > > See if you can get the unauthenticated version to work first, you > will probably need to set the hostname, too: > > -Djava.rmi.server.hostname=www.externalhostname.com > -Dcom.sun.management.jmxremote=true > -Dcom.sun.management.jmxremote.ssl=false > -Dcom.sun.management.jmxremote.authenticate=false Hmm... I'll have to look at using the hostname: that might solve the initial problem. The problem is that the RMI server is using the public hostname of the server to redirect connections, and I want it to use localhost because I don't intend to expose JMX services to the world. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.17 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk8oTdgACgkQ9CaO5/Lv0PCStgCeKziudhrsOYhW9/Zed3eQrIsc V6QAn0qcPWrla2owvcSk6i9qNcz6PU2c =yWRu -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org