Xmanager Forum

Java applications over X extremely slow

Last post: Thursday, April 29, 2004 1:59 PM by Support, 3 reply

 
Thursday, March 18, 2004 3:38 AM - Flagg

Java applications over X extremely slow

 
Good Afternoon all, i just wanted to start a thread on what think is a big problem with java and X. I know that this might not be something that Xmanager can directly fix/address, but perhaps posting my ideas here will help someone else in the future, or get some ideas flowing as to work arounds that some of you have found.
Basically, i am connecting via VPN to my work and telnet, SSH (via putty) all work fine. The connection is not snappy by any means, but it is over a cable modem, and responds just fine. When i use Xmanager to connect, the performance drops quite a bit, but is still usable. The main issue is that i only X in when i need to run a visual app (Veritas' VM, a WebSphere install shield etc). These applications, which are all java based, and I assume make use of Swing, are almost awe inspiring in their slowness. They would be unusable if not for the fact that i HAVE to use them from time to time. So, my question is this, am i correct and is it Java based GUI's that kill X/Xmanager performance? Are there any workarounds that Xmanager implements that i don't know about? Any work arounds you other folks have found?


Flagg "Moving like Molasses in Massachusetts"

=)
Thursday, March 18, 2004 5:12 PM - Support

Re: Java applications over X extremely slow

 
With the fact that Java applications only run on Java Virtual Machine, there is some problem in performance. Especially, the program with complex UI runs very inefficiently and uses so much CPU and memory resources. This problem will be solved eventually through the performance upgrades in Java VM.

What we can suggest at this time is upgrade the performance of Linux machine and increase network bandwidth. If CPU is upgraded and memory is increased on Linux machine, Java applications can be run much faster. It also generates heavy network traffic, so larger network bandwidth makes better performance.

----
Technical Support
Thursday, April 29, 2004 1:47 PM - Jeff Dickey

Re: Java applications over X extremely slow

 
I'm also having problems with Java apps. I'm running WebMethods "Adapter Configuration" utility, which is a Java Swing app running under Java 1.3.1 on Solaris . As soon as I start the app (from a telnet command line ), the window frame around the telnet session disappears and the Java app is completely unresponsive to either mouse or keyboard. The only way to close the app window is to reset the X server. Bear in mind that this works just fine from an otherwise identically-configured NT box running Exceed/Hummingbird.

Local PC configuration:
Windows NT 4.0/SP6
256MB RAM
Sun JDK/JRE 1.3.1
Xmanager 2.0 Beta 5 (Build 1614)

Remote system:
SunOS 5.8
Sun JDK/JRE 1.3.1
Thursday, April 29, 2004 1:59 PM - Support

Re: Re: Java applications over X extremely slow

 
The window frame disappears when a Java application runs in a mutlple window mode. You can prevent it as following:

1. Run Xconfig.
2. Double-click Default Profile. A Properties dialog box appears.
3. Click the General tab.
4. Click Settings. A Window Mode Settings dialog box appears.
5. Click the Multiple Window Mode tab.
6. In the Window Manager list, select Local Only.
7. Click OK to save the change.

Hope this can help you.

----
Technical Support