By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,046 Members | 2,105 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,046 IT Pros & Developers. It's quick & easy.

Running a Java Swing on a remote box is very slow.

P: 3
I have problems running my Java Swing application remotely on a Linux machine. The application takes 20/30s to respond to events and painting takes considerable time.

This is not a special case for my app. I copied SwingSet.jar demo over and this is also very slow to response.

The command is ssh - X <remote-machine>. It is the bash shell.
I have tried setting "ForwardedX11Trusted" in ssh/ssh_config file. Setting environment variables NO_J2D_DGA, J2D_PIXMAPS=shared and -Dsun.java2d.pmoffscreen=false but none of this worked for me.

Can anyone help on this.
May 24 '07 #1
Share this Question
Share on Google+
3 Replies


Motoma
Expert 2.5K+
P: 3,235
X11 Forwarding is bound to be quite slow even when you are on the same network as your target machine.

What is the physical locations of your machines? How is your bandwidth? Is it a situation where you can send X11 traffic without the ssh tunnel?
May 24 '07 #2

P: 3
X11 Forwarding is bound to be quite slow even when you are on the same network as your target machine.

What is the physical locations of your machines? How is your bandwidth? Is it a situation where you can send X11 traffic without the ssh tunnel?
>>Machine I run is in a remote network and bandwith seems to be not bad because other application run normally. If run it on my local network there is no problem.

I tried "xhost +" and then on remote machine set the DISPLAY to my local. This seems to be the same.
Is there any other way you can suggest?
May 25 '07 #3

Motoma
Expert 2.5K+
P: 3,235
This may be the limitations of the technologies you have decided to use. Java typically renders orders of magnitude slower than standard X11 windows, and it sounds like your X11 forwarding is compounding it.
May 25 '07 #4

Post your reply

Sign in to post your reply or Sign up for a free account.