File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes Windows XP + Java 1.4 =  Poor Performance? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Windows XP + Java 1.4 =  Poor Performance?" Watch "Windows XP + Java 1.4 =  Poor Performance?" New topic
Author

Windows XP + Java 1.4 = Poor Performance?

Timothy Chen Allen
Ranch Hand

Joined: Mar 16, 2003
Posts: 161
I have Windows XP with the J2SE 1.4 SDK (and plugin) installed.
The behavior and performance of Java GUI apps and applets on my machine is pretty bad. For example, in the Java Cow Quiz applet on JavaRanch (which is infinitely cool, by the way), the screen will come up blank sometimes, and I have to drag another window on top of it and then minimize that window to see all the graphics.
The same thing happens with applets in appletviewer and regular Java apps, even very simple ones.
Even the Java Control Panel does this.
What might I have configured wrong? Is this a common problem? Because if it is, I'm not sure I want to invest more time learning a language which just makes users want to pull the balls out of their mouses in frustration . Okay, I do want to learn it just because it's a very cool language, but I *would* like it to work well. Thanks in advance.
Un abrazo.
--
Tim Allen
Especialista General
Layne Lund
Ranch Hand

Joined: Dec 06, 2001
Posts: 3061
It doesn't sound like Java is the problem. You should switch to Linux
[ June 12, 2003: Message edited by: Layne Lund ]

Java API Documentation
The Java Tutorial
Barry Andrews
Ranch Hand

Joined: Sep 05, 2000
Posts: 523

I have also noticed Java GUI performance problems when I upgraded to Windows XP. You could try playing with your XP theme to see if it helps. By default XP enables a lot of useless gizmos to enhance the GUI, which mostly just makes things slower.
Thomas Paul
mister krabs
Ranch Hand

Joined: May 05, 2000
Posts: 13974
How much RAM do you have? I had problems until I increased RM and then everything went much better.


Associate Instructor - Hofstra University
Amazon Top 750 reviewer - Blog - Unresolved References - Book Review Blog
Timothy Chen Allen
Ranch Hand

Joined: Mar 16, 2003
Posts: 161
Originally posted by Layne Lund:
It doesn't sound like Java is the problem. You should switch to Linux
[ June 12, 2003: Message edited by: Layne Lund ]

Already do-- I run Slackware on my machine, XP on my wife's (I love her even if she does use Windows).
Timothy Chen Allen
Ranch Hand

Joined: Mar 16, 2003
Posts: 161
Originally posted by Thomas Paul:
How much RAM do you have? I had problems until I increased RM and then everything went much better.

I've got 184MB of RAM-- I mean, it's not a GB, but still pretty good. The processor is an AMD K6 @ 500MHz.
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

Originally posted by Tim Allen:
The processor is an AMD K6 @ 500MHz.

There is a lot of you XP problem right there. The AMD K6's were not a very good processor. Even in its day. Pile XP on top of a poor performing processor, and that's what you get. I have a K6 400 on my wifes PC and I have another PC that is a PIII 500 and you would not believe the difference between the 2. And the 100 MHz has nothing to do with it. Both running XP by the way.


GenRocket - Experts at Building Test Data
Timothy Chen Allen
Ranch Hand

Joined: Mar 16, 2003
Posts: 161
Originally posted by Gregg Bolinger:
[QB]
There is a lot of you XP problem right there. The AMD K6's were not a very good processor. Even in its day. Pile XP on top of a poor performing processor, and that's what you get.

A very good point-- I hadn't thought of that until you mentioned it. *sigh*, not much to do about it until I upgrade my wife's machine (except fire up my Linux box to do Java work!).
Timothy Chen Allen
Ranch Hand

Joined: Mar 16, 2003
Posts: 161
Originally posted by Barry Andrews:
I have also noticed Java GUI performance problems when I upgraded to Windows XP. You could try playing with your XP theme to see if it helps. By default XP enables a lot of useless gizmos to enhance the GUI, which mostly just makes things slower.

I'm not running much on the Themes-- I actually use the classic interface.
But I did find something that helps a *lot* on Applets-- in Advanced Options for INternet Explorer, I unchecked "Use Java 2 1.4.1_02 for <applet>". The performance of applets is very good now.
Thomas Paul
mister krabs
Ranch Hand

Joined: May 05, 2000
Posts: 13974
I think 256 is an absolute minimum amount of RAM for XP with Java.
Timothy Chen Allen
Ranch Hand

Joined: Mar 16, 2003
Posts: 161
Originally posted by Tim Allen:
I have Windows XP with the J2SE 1.4 SDK (and plugin) installed.
The behavior and performance of Java GUI apps and applets on my machine is pretty bad.

SOLVED!
Here is the answer-- and I think it will work for others, as well. I turned down level of "Hardware Acceleration" of the video card (I've got a Trident Video Accelerator Blade 3D; that is, the one that came with the machine)
This setting, which I believe exists all the way back to Windows 95, is in the Video settings section, in the same place where you set set screen resolution. There is a button for "Advanced Options", and then a place for "Problem Solving" (could be "Trouble Shooting"-- I'm translating this from Spanish Windows XP).
There is a slider which runs from Acceleration Off to Maximum. I turned it off first, then ran a Java application that was causing me trouble (my test app does nothing at all-- just paints a JButton on a JFrame). My test app worked perfectly. Then I started edging the setting up a notch at a time. Basically, the app gave me no trouble until the second click up. So I dropped the setting back down one.
That's it for me. I haven't noticed any trouble with other applications-- for example, running Windows Media Viewer doesn't seem to be more problematic.
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
Thanks for sharing, Tim!


[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Windows XP + Java 1.4 = Poor Performance?