/** * Checks to make sure that the {@linkplain * ProcessStats#getProcessSize VM's process size} is less than the * {@linkplain MemberHealthConfig#getMaxVMProcessSize threshold}. * If not, the status is "okay" health. */ void checkVMProcessSize(List status) { // There is no need to check isFirstEvaluation() if (this.processStats == null) { return; } long vmSize = this.processStats.getProcessSize(); long threshold = this.config.getMaxVMProcessSize(); if (vmSize > threshold) { String s = LocalizedStrings.MemberHealthEvaluator_THE_SIZE_OF_THIS_VM_0_MEGABYTES_EXCEEDS_THE_THRESHOLD_1_MEGABYTES.toLocalizedString(new Object[] {Long.valueOf(vmSize), Long.valueOf(threshold)}); status.add(okayHealth(s)); } }
@Override protected final void closeProcessStats() { if (PureJavaMode.osStatsAreAvailable()) { if (!osStatsDisabled()) { if (this.processStats != null) { this.processStats.close(); } HostStatHelper.closeOSStats(); } } }
public void addSystemStats() { GemFireStatSampler sampler = system.getStatSampler(); ProcessStats processStats = sampler.getProcessStats(); StatSamplerStats samplerStats = sampler.getStatSamplerStats(); if (processStats != null) { systemStatsMonitor.addStatisticsToMonitor(processStats.getStatistics()); } if(samplerStats != null){ systemStatsMonitor.addStatisticsToMonitor(samplerStats.getStats()); } }
public void addSystemStats() { GemFireStatSampler sampler = system.getStatSampler(); ProcessStats processStats = sampler.getProcessStats(); StatSamplerStats samplerStats = sampler.getStatSamplerStats(); if (processStats != null) { systemStatsMonitor.addStatisticsToMonitor(processStats.getStatistics()); } if(samplerStats != null){ systemStatsMonitor.addStatisticsToMonitor(samplerStats.getStats()); } }
/** * Checks to make sure that the {@linkplain * ProcessStats#getProcessSize VM's process size} is less than the * {@linkplain MemberHealthConfig#getMaxVMProcessSize threshold}. * If not, the status is "okay" health. */ void checkVMProcessSize(List status) { // There is no need to check isFirstEvaluation() if (this.processStats == null) { return; } long vmSize = this.processStats.getProcessSize(); long threshold = this.config.getMaxVMProcessSize(); if (vmSize > threshold) { String s = LocalizedStrings.MemberHealthEvaluator_THE_SIZE_OF_THIS_VM_0_MEGABYTES_EXCEEDS_THE_THRESHOLD_1_MEGABYTES.toLocalizedString(new Object[] {Long.valueOf(vmSize), Long.valueOf(threshold)}); status.add(okayHealth(s)); } }
@Override protected final void closeProcessStats() { if (PureJavaMode.osStatsAreAvailable()) { if (!osStatsDisabled()) { if (this.processStats != null) { this.processStats.close(); } HostStatHelper.closeOSStats(); } } }
long threshold = stats.getProcessSize() * 2; long processSize = stats.getProcessSize(); threshold = processSize / 2; assertTrue("Threshold (" + threshold + ") is > 0. " +