Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Windows XP + Java 1.4 = Poor Performance?

 
Timothy Chen Allen
Ranch Hand
Posts: 161
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3061
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It doesn't sound like Java is the problem. You should switch to Linux
[ June 12, 2003: Message edited by: Layne Lund ]
 
Barry Andrews
Ranch Hand
Posts: 523
C++ Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13974
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How much RAM do you have? I had problems until I increased RM and then everything went much better.
 
Timothy Chen Allen
Ranch Hand
Posts: 161
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 161
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Timothy Chen Allen
Ranch Hand
Posts: 161
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 161
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13974
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think 256 is an absolute minimum amount of RAM for XP with Java.
 
Timothy Chen Allen
Ranch Hand
Posts: 161
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for sharing, Tim!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic