Example usage for java.lang.management MemoryMXBean setVerbose

List of usage examples for java.lang.management MemoryMXBean setVerbose

Introduction

In this page you can find the example usage for java.lang.management MemoryMXBean setVerbose.

Prototype

public void setVerbose(boolean value);

Source Link

Document

Enables or disables verbose output for the memory system.

Usage

From source file:org.rhq.enterprise.agent.promptcmd.GCPromptCommand.java

private void setVerbosity(boolean verbose) {
    final MemoryMXBean memoryMxBean = ManagementFactory.getMemoryMXBean();
    memoryMxBean.setVerbose(verbose);
}