Java GUI apps disrupting rest of the Win XP system - have you seen this?

Hi,

I'm seeing strange interference between Swing applications (including SwingSet2 demo and Netbeans) and rest of the system on one of my Windows XP machines.

It looks like whenever JVM runs a full GC, not only my app is blocked, but also whole system.

Mouse stops moving, WinAMP playing in background is disrupted.

It's not because of the 100% CPU utilization, other heavy CPU processes never cause any of these problems, including Java apps not using GUI. I have tested it.

It seems that JVM is holding some system global lock or blocking important OS thread (one that delivers window messages?) for the duration of the GC.

First I thought it was the JIT compilation, but it does it even with -Xint.

Whats puzzling is, it only does on some machines.

I'm currently seeing it with JDK 5 on Athlon XP machine with AOpen AK77-8XN motherboard and GeForce 4, with practically any Swing app.

Another machine, with diffrerent motherboard (Epox 8KHA+) and GeFOrce FX5600 (identical drivers verion with problem machine) does not show the symptoms.

Before I call it a bug, I'd like to see if anyone else has encountered this problem.

Any tips for diagnosing the cause? Is this a known bug?

[1258 byte] By [hlavac] at [2007-9-30 20:33:12]
# 1
Update: It is not Swing. It's the GC alone! Calling System.gc() from console app manifests the problem too.What nasty thing may they be doing during GC that may do something like that? Stop ALL threads in system instead of only JVM ones?
hlavac at 2007-7-7 1:22:43 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 2
Try disabling OpenGL and DirectDraw hardware enhancements. They're -D options to java, Sun has the information in some of the Release Notes. Might want to check your video drivers, also.GC has been known to stall the machine (including mouse, etc).
ChuckBing at 2007-7-7 1:22:43 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 3
Ok, I updated the chipset and audio drivers on the machine.It still stalls the mouse at 100% CPU usage, but at least it does not disrupt the audio any more.
hlavac at 2007-7-7 1:22:43 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 4
Try running your app without anything else running. It sounds like you're running it from NetBeans, that's a resource hog, figure out how to run it without NB and see what the results are.
ChuckBing at 2007-7-7 1:22:43 > top of Java-index,Java HotSpot Virtual Machine,Specifications...