/** * 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)); } }
/** * 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)); } }
long threshold = stats.getProcessSize() * 2; long processSize = stats.getProcessSize(); threshold = processSize / 2; assertTrue("Threshold (" + threshold + ") is > 0. " +