Friday, June 5, 2009

XP Connecting to a Solaris Server via X11 XWindows

I'm working out the details of how to view the JConsole profiling information from my Windows XP desktop.

I began with the misconception, that unless one is running jconsole locally (e.g. on the same server) as the one the JVM is running, then the amount of jconsole information you can see is limited. From the Java documentation at Sun, you are led to believe that remote sessions are unable to access certain tabs.

Having busted that, I'm now left with some valuable info that I know will be useful later, so here it is.

HOW TO GET AN XWindows connection to a Solaris Server.

One requirement is to have an XWindows session running on XP.
The other is to enable X11 over SSH on the Solaris server.

I used Cygwin/X on the desktop. It's great and there's plenty of easy documentation on cygwin's web site to get you going here <http://www.javapassion.com/handsonlabs/jconsole/index.html#Configure_a_simple_app>.

On Solaris modify the file /etc/ssh/sshd_config. Enable X11 tunneling by finding the section labeled "X11 tunneling" and make it match the following:

X11Forwarding yes
X11DisplayOffset 10
X11UseLocalhost yes

No comments:

Post a Comment

Followers