This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Performance and the fly likes Java GUI is extremely slow if accessed by X-Windows Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » Performance
Bookmark "Java GUI is extremely slow if accessed by X-Windows" Watch "Java GUI is extremely slow if accessed by X-Windows" New topic

Java GUI is extremely slow if accessed by X-Windows

Miro Ricco
Ranch Hand

Joined: Apr 16, 2002
Posts: 40

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
Ilja Preuss

Joined: Jul 11, 2001
Posts: 14112
What kind of java applications are running slowly?

I suspect the best candidate for performance optimization would be to reduce the number of repaints, and to make the regions of repaint as small as possible.

The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Ernest Friedman-Hill
author and iconoclast

Joined: Jul 08, 2003
Posts: 24189

If you're using JDK 1.3, upgrade to 1.4. The remote-X performance difference is huge.

Also consider using VNC instead of X if that's at all possible -- it's much better over a slow link, TightVNC especially.

[Jess in Action][AskingGoodQuestions]
Have you checked out Aspose?
subject: Java GUI is extremely slow if accessed by X-Windows
It's not a secret anymore!