Java 1.5 HotSpot VM halts the entire system during garbage collection.

The Java 1.5 HotSpot VM for Windows has an error which cause the entire system to halt during garbage collection. This error affects at least the CMS garbage collector. The reason for this is apparently that the garbage collection takes place in a thread which has its priority set to time-critical. This causes all other threads in the system to halt while garbage collection takes place. This will cause even the mouse cursor the stop.

This error seems to be in all 1.5 versions. This error is at least a year old and has not been fixed.

This bug has been discussed in the following forum:

Java Games Forums - A Java.Net Community

http://javagaming.org

Forum: Performance Tuning

Java 1.5 pauses my PC for some seconds reqularly (October 27, 2004)

http://192.18.37.44/forums/index.php?topic=6381.0

GC Bomb - CMS GC starves high priority system threads (August 08, 2005)

http://192.18.37.44/forums/index.php?topic=10269.0

[983 byte] By [erianteria] at [2007-10-2 0:44:51]
# 1
This sounds like 5101898 which is fixed in mustang b53. It might be worth download b53 from https://mustang.dev.java.net to check that the problem is resolved.
alan.batemana at 2007-7-15 16:59:45 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 2
Yes, that is very likely the same bug. Thanks for the info. I still hope that Sun fill fix this error in the 1.5 series as fast as possible.
erianteria at 2007-7-15 16:59:45 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 3
In the evaluation section of http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5101898 it provides some flags that can be used to workaround the issue in 5.0. It looks like it has been fixed for 5.0u6 too.
alan.batemana at 2007-7-15 16:59:45 > top of Java-index,Java HotSpot Virtual Machine,Specifications...