100% cpu usage on CentOS/RHEL 6
david.holmes at oracle.com
Tue Jul 3 04:22:53 PDT 2012
On 3/07/2012 9:07 PM, Amol Kulkarni wrote:
> I dont think this is the leap-second bug bcos I can simulate it at any
> time using foll script.
> while [ 1 ]
> /usr/lib/jvm/java-1.6.0-openjdk-220.127.116.11.x86_64/bin/java -version &
> sleep 1s
> The leap second bug seems to be occuring only near 30 Jun or 1 Jul.
That's when it activates but unless you take steps to fix it it remains
in your system. The time offset used by the hrtimers remains 1 second
out of sync with actual time.
> I did generate a backtrace with this prb but I dont have openjdk with
> debug symbols - can u tell me where I can get it?
No sorry, I don't know about the OpenJDK distros available for CentOS.
Further discussion should move to hotspot-dev at openjdk.java.net cc'd.
> On Tue, Jul 3, 2012 at 7:54 AM, David Holmes <david.holmes at oracle.com
> <mailto:david.holmes at oracle.com>> wrote:
> Yes this sounds like the linux leap-second bug.
> Despite a lot of ignorant comments on the web this is not a bug in Java.
> But I would really appreciate it if someone experience this can send
> me a stack trace from the problematic thread(s). I think I know what
> is happening but need to confirm.
> David Holmes
> On 3/07/2012 12:02 AM, Mark Thornton wrote:
> On 02/07/12 14:45, Amol Kulkarni wrote:
> I have a java app running on CentOS 6.0. It always runs in
> background via
> cron. Sometimes this app goes into wait state while using
> 100% cpu.
> My java version is :
> java version "1.6.0_17"
> OpenJDK Runtime Environment (IcedTea6 1.7.4)
> OpenJDK 64-Bit Server VM (build 14.0-b16, mixed mode)
> Other symptoms are :
> a. One thread of the process seems to be in a loop waiting
> for something.
> When traced using strace, it shows following o/p continuously :
> futex(0x7fb8000ac728, FUTEX_WAKE_PRIVATE, 1) = 0
> Could it be related to this:
> Mark Thornton
More information about the hotspot-dev