Link to home
Start Free TrialLog in
Avatar of MirecXP
MirecXPFlag for Slovakia

asked on

Java GUI is extremely slow if accessed by X-Windows

Hello

I'm running applications on Solaris 8 machine accessed using XWindows.
There is slow network connection to the machine.
Native applications are running slowly, but the performance is aceptable.
Java GUI applications are extremely slow.

How can I make it appear faster ?

I cannot change the connection speed, but I'm developer of the java applications, so I can modify the source code, if necessary ...

Best regards
Mirec
ASKER CERTIFIED SOLUTION
Avatar of Mick Barry
Mick Barry
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
java 5 should speed it up too...
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of MirecXP

ASKER

Thanks for comments.

To durgaprasad_j :
No. The application is running very fast when is accessed locally. But the GUI renders itself very slowly when it's accessed remotelly using XWindows (something like remote desktop on Unix systems).
It seems java renders the gui for XWindows into bitmap or something similar, sends it accross network and XWindows on my client machine displays it.
When accessing native application by XWindows, GUI is transmitted more faster. I'm not familiar with technical background of XWindows, maybe native application GUI is transmitted more optimized...

To objects:
Thanks for the tip.
SWT looks good, i'll try it, but I'm afraid, I can't afford to make such a big changes when doing Swing -> SWT migration, while it could spend much effort.

To TimYates:
Has Java5 an improvement in this issue ? I can't install new Java on the machine, now, so I'll try it next week.

I use JDK1.3.1, by the way.

Kind regards
Mirec
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of durgaprasad_j
durgaprasad_j

hi,
   when i tried "export DISPLAY " in my lab [ network speed 100MBPs] . Its working fine like other native programs. I think its the problem with version.

DP
Avatar of MirecXP

ASKER

Yes, on local network or with good connection, it's working fine, but when the connection is poor, it's worse. Even though native apps are running quite good with slow network.
What is your application doing? Is there any Socket traffic? On some older X systems or if there is plenty of networktraffic it may speed up immensely by just setting TCPDelay to false.
Avatar of MirecXP

ASKER

I think no. But i'm testing it on simple demo app now, which does nearly nothing... Just to have a gui.
check your solaris TCPDelay settings also!
Avatar of MirecXP

ASKER

What is TCPDelay ? How can I change it ? Is it possible to change it without admin rights ?

thanks
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial