h**********c 发帖数: 4120 | 1 Centos distro,
Compile the following Java program, the program freezes before "slept".
"top" shows very high CPU utilization.
Ctrl-C not work. kill -9 pid in another console.
Not sure JVM problem or kernel problem, both Java 6 and 7 have this problem.
Ask for blind sweep.
Other servers have similar problem. Reboot server, the problem gone.
Suspect it is because of leap second. Run "top", check your servers!
public static void main (String [] args) {
System.out.println("before sleep");
try {
//TimeUnit.MILLISECONDS.sleep(1000);
Thread.sleep(1000);
System.out.println("slept");
} catch (InterruptedException e) {
}
System.out.println("quiting");
} |
|