Running VisualVM to Examine a JVM on a Remote Host Via an SSH Tunnel/Proxy Connection

VisualVM is a great tool for peering into a running JVM.  In many cases, it won’t be one that is running on your local box.
The first thing to be done is to get jstatd running on the remote machine:
Create a security policy file on the remote machine (this assumes that you have an additional layer of security and that the outside world cannot access these ports and/or you have a VPN set-up and you are operating in that
Continue reading “Running VisualVM to Examine a JVM on a Remote Host Via an SSH Tunnel/Proxy Connection”

Setting up an HTTP Proxy over SSH in Chrome under Fedora Core 18 Linux

At least under the FC 18 distro, there was no fancy GUI controls in the Advanced Settings for setting up an HTTP proxy over SSH for Chrome.

To get it all set up:

  • Establish and ssh connection to the server to which you want to proxy:
    • $ ssh -D localhost:1234 username@remote.server,  where 1234 is the port number you want to use for the proxy
  • Run google-chrome from the command line passing it the proxy setting:
    • $ google-chrome –proxy-server=socks5://localhost:1234
Continue reading “Setting up an HTTP Proxy over SSH in Chrome under Fedora Core 18 Linux”