com.atlassian.jira.util
Class MemoryPools

java.lang.Object
  extended by com.atlassian.jira.util.MemoryPools

public class MemoryPools
extends Object

Gathers data about the JVM memory pools


Constructor Summary
MemoryPools()
           
 
Method Summary
static List<MemoryPool> getMemoryPools()
           
static String inMiB(long bytes)
           
static String memoryPoolsDump(boolean detailByPool)
          Gathers all the MemoryPool data in a String to be dumped to log file or similar.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MemoryPools

public MemoryPools()
Method Detail

getMemoryPools

public static List<MemoryPool> getMemoryPools()

memoryPoolsDump

public static String memoryPoolsDump(boolean detailByPool)
Gathers all the MemoryPool data in a String to be dumped to log file or similar.

Parameters:
detailByPool - if true, we list each pool individually, else we summarise by type - that is Heap vs non-heap
Returns:
dump of memory

inMiB

public static String inMiB(long bytes)


Copyright © 2002-2014 Atlassian. All Rights Reserved.