ssh -N -f -D 7777 dev-cass-10.mydomain.internal jconsole -J-DsocksProxyHost=localhost -J-DsocksProxyPort=7777 service:jmx:rmi:///jndi/rmi://localhost:7199/jmxrmi
Showing posts with label jmx. Show all posts
Showing posts with label jmx. Show all posts
Monday, 1 June 2015
Connect to remote JMX over ssh and jconsole
Saturday, 23 February 2013
JMX ports to open in firewall for jconsole to Cassandra
- Port 7199
- Used for about a dozen packets when JMX connection first made
- A handshake of sorts
- Probably sets up the agreement on which high port to connect to, used below
- Similar to SIP
- Similar to old FTP
- Not used again after initial handshake
- Port range 55000 to 55999
- To see these packets, on JVM server
- tcpdump -nn ! port 22 and host <jconsole client IP> (not literal, replace this)
- If jconsole starts showing graphs, you are connected
Tricks and Tips
- If you don't want to expose 1000 ports to the world for some reason
- Open all ports on firewall in front of JVM server
- On JVM server: tcpdump -nn ! port 22 and host <jconsole client IP>
- Start jconsole connection on client machine
- Watch to see which port JVM server is trying to reach jconsole client via
- Close all but that port in the firewall, will be between 55000-55999
- Do a local experiment to a local JVM JMX-able application if unsure of good jconsole connection result
- Get your external IP from where you are running jconsole client
- CLI: curl http://ipaddr.me
- Or web browser: http://ipaddr.me
Subscribe to:
Posts (Atom)
Interview questions: 2020-12
Terraform provider vs provisioner Load balancing Network Load Balancer vs Application Load Balancer Networking Layer 1 vs Layer 4 haproxy u...
-
CRITICAL: AWS now offers internal VPC DNS! Below is no longer necessary AFAIK. Woo hoo! http://aws.amazon.com/about-aws/whats-new/2014/...
-
build sudo apt-get install git gcc sudo apt-get install automake autoconf git clone git://github.com/rriley/tsunami-udp.git cd tsunam...
-
From: https://bugs.eclipse.org/bugs/show_bug.cgi?id=382972#c4 Assumptions: jEdit was installed into /Applications directory. Close any...