FULL PRODUCT VERSION :
java version "1.6.0"
Java(TM) SE Runtime Environment (build 1.6.0-b105)
Java HotSpot(TM) Client VM (build 1.6.0-b105, mixed mode, sharing)
FULL OS VERSION :
Linux vertex.dottedmag.net 2.6.22 #1 SMP Mon Jul 9 06:58:04 UTC 2007 i686 GNU/Linux
A DESCRIPTION OF THE PROBLEM :
JRE wakes up 20 times per second while program does nothing (e.g. sleeping or waiting for GUI events).
This drains power and dramatically decreases laptops' life on battery (kernel can't turn CPU into ACPI C3 powersaving state or deeper due to constant wakeups).
THE PROBLEM WAS REPRODUCIBLE WITH -Xint FLAG: Yes
THE PROBLEM WAS REPRODUCIBLE WITH -server FLAG: Yes
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1. Install PowerTOP tool (http://www.linuxpowertop.org/)
2. Run any Java program (e.g. trivial attached one)
3. Watch for the java wakeups in PowerTOP.
EXPECTED VERSUS ACTUAL BEHAVIOR :
JRE wakes up 20 times per second, while it is not doing anything. It is supposed to wake up only on events to consume as little power as possible.
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
public class HelloWorld {
public static void main(String args[]) throws Exception {
while(true)
Thread.sleep(10000);
}
}
---------- END SOURCE ----------