Java using a 100% processor

I have a java application running on CentOS 6.0. It always runs in the background through cron. Sometimes this application goes into standby when using a 100% processor.

My java version:

java version "1.6.0_17"
OpenJDK Runtime Environment (IcedTea6 1.7.4) (rhel-1.21.b17.el6-x86_64)
OpenJDK 64-Bit Server VM (build 14.0-b16, mixed mode)

Other symptoms:

and. One thread of the process seems to be in a loop waiting for something. When tracking using strace, it continuously shows the following o / p:

futex(0x7fb8000ac728, FUTEX_WAKE_PRIVATE, 1) = 0
futex(0x7fb8000ac754, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 1, {1340347489,> 822867000}, ffffffff) = -1 ETIMEDOUT (Connection timed out)

b. It seems that the process has completed by looking at the files that it uses. Only a few files are left. The output of 'ls / proc / pid / fd / shows:

lr-x------ 1 root root 64 Jun 22 13:13 0 -> pipe:[77107601]
l-wx------ 1 root root 64 Jun 22 13:13 1 -> pipe:[77120162]
l-wx------ 1 root root 64 Jun 22 13:13 2 -> /var/log/mithi/mcs/agent_account_mailstore_exceed_limit.sh.log
lr-x------ 1 root root 64 Jun 22 13:13 3 -> /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/rt.jar

Has anyone encountered a similar situation? Any hints or links would be very helpful.

In particular, are there any known issues when starting openjdk-based Java processes in the background on CentOS 6?

,

#!/bin/bash

while [ 1 ]
do
    /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/bin/java -version &
    sleep 1s
done

script 3 - 4 , java-, i.e

futex(0x7fb8000ac754, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 1, {1340347489,> 822867000}, ffffffff) = -1 ETIMEDOUT (Connection timed out)

, . RHEL6, CentOS6.

+5
2

2.6.32-220, CentOS 6.2.

+1

. , :

+4

All Articles