public ProcessInfo processInfo(long refreshInterval) { return new ProcessInfo(jvmInfo().pid(), BootstrapInfo.isMemoryLocked(), refreshInterval); }
@Override public BootstrapCheckResult check(BootstrapContext context) { if (getMaxNumberOfThreads() != -1 && getMaxNumberOfThreads() < MAX_NUMBER_OF_THREADS_THRESHOLD) { final String message = String.format( Locale.ROOT, "max number of threads [%d] for user [%s] is too low, increase to at least [%d]", getMaxNumberOfThreads(), BootstrapInfo.getSystemProperties().get("user.name"), MAX_NUMBER_OF_THREADS_THRESHOLD); return BootstrapCheckResult.failure(message); } else { return BootstrapCheckResult.success(); } }
BootstrapInfo.init();
@Override public BootstrapCheckResult check(BootstrapContext context) { final long maxFileSize = getMaxFileSize(); if (maxFileSize != Long.MIN_VALUE && maxFileSize != getRlimInfinity()) { final String message = String.format( Locale.ROOT, "max file size [%d] for user [%s] is too low, increase to [unlimited]", getMaxFileSize(), BootstrapInfo.getSystemProperties().get("user.name")); return BootstrapCheckResult.failure(message); } else { return BootstrapCheckResult.success(); } }
public ProcessInfo processInfo(long refreshInterval) { return new ProcessInfo(jvmInfo().pid(), BootstrapInfo.isMemoryLocked(), refreshInterval); }
BootstrapInfo.init();
@Override public BootstrapCheckResult check(BootstrapContext context) { if (getMaxSizeVirtualMemory() != Long.MIN_VALUE && getMaxSizeVirtualMemory() != getRlimInfinity()) { final String message = String.format( Locale.ROOT, "max size virtual memory [%d] for user [%s] is too low, increase to [unlimited]", getMaxSizeVirtualMemory(), BootstrapInfo.getSystemProperties().get("user.name")); return BootstrapCheckResult.failure(message); } else { return BootstrapCheckResult.success(); } }
public ProcessInfo processInfo(long refreshInterval) { return new ProcessInfo(jvmInfo().pid(), BootstrapInfo.isMemoryLocked(), refreshInterval); }
BootstrapInfo.init();
@Override public String errorMessage() { return String.format( Locale.ROOT, "max size virtual memory [%d] for user [%s] is too low, increase to [unlimited]", getMaxSizeVirtualMemory(), BootstrapInfo.getSystemProperties().get("user.name")); }
public ProcessInfo processInfo() { return new ProcessInfo(jvmInfo().pid(), BootstrapInfo.isMemoryLocked()); }
BootstrapInfo.init();
@Override public String errorMessage() { return String.format( Locale.ROOT, "max number of threads [%d] for user [%s] is too low, increase to at least [%d]", getMaxNumberOfThreads(), BootstrapInfo.getSystemProperties().get("user.name"), MAX_NUMBER_OF_THREADS_THRESHOLD); }
public ProcessInfo processInfo(long refreshInterval) { return new ProcessInfo(jvmInfo().pid(), BootstrapInfo.isMemoryLocked(), refreshInterval); }
@Override public BootstrapCheckResult check(BootstrapContext context) { final long maxFileSize = getMaxFileSize(); if (maxFileSize != Long.MIN_VALUE && maxFileSize != getRlimInfinity()) { final String message = String.format( Locale.ROOT, "max file size [%d] for user [%s] is too low, increase to [unlimited]", getMaxFileSize(), BootstrapInfo.getSystemProperties().get("user.name")); return BootstrapCheckResult.failure(message); } else { return BootstrapCheckResult.success(); } }
@Override public BootstrapCheckResult check(BootstrapContext context) { if (getMaxNumberOfThreads() != -1 && getMaxNumberOfThreads() < MAX_NUMBER_OF_THREADS_THRESHOLD) { final String message = String.format( Locale.ROOT, "max number of threads [%d] for user [%s] is too low, increase to at least [%d]", getMaxNumberOfThreads(), BootstrapInfo.getSystemProperties().get("user.name"), MAX_NUMBER_OF_THREADS_THRESHOLD); return BootstrapCheckResult.failure(message); } else { return BootstrapCheckResult.success(); } }
@Override public BootstrapCheckResult check(BootstrapContext context) { if (getMaxNumberOfThreads() != -1 && getMaxNumberOfThreads() < MAX_NUMBER_OF_THREADS_THRESHOLD) { final String message = String.format( Locale.ROOT, "max number of threads [%d] for user [%s] is too low, increase to at least [%d]", getMaxNumberOfThreads(), BootstrapInfo.getSystemProperties().get("user.name"), MAX_NUMBER_OF_THREADS_THRESHOLD); return BootstrapCheckResult.failure(message); } else { return BootstrapCheckResult.success(); } }
@Override public BootstrapCheckResult check(BootstrapContext context) { final long maxFileSize = getMaxFileSize(); if (maxFileSize != Long.MIN_VALUE && maxFileSize != getRlimInfinity()) { final String message = String.format( Locale.ROOT, "max file size [%d] for user [%s] is too low, increase to [unlimited]", getMaxFileSize(), BootstrapInfo.getSystemProperties().get("user.name")); return BootstrapCheckResult.failure(message); } else { return BootstrapCheckResult.success(); } }
@Override public BootstrapCheckResult check(BootstrapContext context) { if (getMaxSizeVirtualMemory() != Long.MIN_VALUE && getMaxSizeVirtualMemory() != getRlimInfinity()) { final String message = String.format( Locale.ROOT, "max size virtual memory [%d] for user [%s] is too low, increase to [unlimited]", getMaxSizeVirtualMemory(), BootstrapInfo.getSystemProperties().get("user.name")); return BootstrapCheckResult.failure(message); } else { return BootstrapCheckResult.success(); } }
@Override public BootstrapCheckResult check(BootstrapContext context) { if (getMaxSizeVirtualMemory() != Long.MIN_VALUE && getMaxSizeVirtualMemory() != getRlimInfinity()) { final String message = String.format( Locale.ROOT, "max size virtual memory [%d] for user [%s] is too low, increase to [unlimited]", getMaxSizeVirtualMemory(), BootstrapInfo.getSystemProperties().get("user.name")); return BootstrapCheckResult.failure(message); } else { return BootstrapCheckResult.success(); } }