getLogger().warning(LocalizedStrings.HostStatSampler_HOSTSTATSAMPLER_WAS_INTERRUPTED_DURRING_SHUTDOWN); } else { this.stopRequested = false;
/** * Check the elapsed sleep time upon wakeup, and log a warning if it is longer than the delay * threshold. * * @param elapsedSleepTime duration of sleep in nanoseconds */ private void checkElapsedSleepTime(long elapsedSleepTime) { if (STAT_SAMPLER_DELAY_THRESHOLD > 0) { final long wakeupDelay = elapsedSleepTime - getNanoRate(); if (wakeupDelay > STAT_SAMPLER_DELAY_THRESHOLD_NANOS) { this.samplerStats.incJvmPauses(); getLogger().warning(LocalizedStrings.HostStatSampler_STATISTICS_SAMPLING_THREAD_DETECTED_A_WAKEUP_DELAY_OF_0_MS_INDICATING_A_POSSIBLE_RESOURCE_ISSUE, NanoTimer.nanosToMillis(wakeupDelay)); } } }
NanoTimer timer = new NanoTimer(); getLogger().fine("HostStatSampler started"); boolean latchCountedDown = false; try { ProcessorKeeper21.cleanupProcessor(); }catch(Exception ex){ getLogger().fine("HostStatSampler thread caught exception while " + "cleaning Processorkeeper:",ex); getLogger().severe(ex); throw ex; getLogger().severe(ex); throw ex; } finally { getLogger().fine("HostStatSampler stopped");