org.apache.cocoon.webservices.memory
Class Memory

java.lang.Object
  extended by org.apache.cocoon.webservices.memory.Memory

public class Memory
extends Object

Class which provides JVM memory related SOAP services.

Version:
CVS $Id: Memory.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
Marcus Crafter

Constructor Summary
Memory()
           
 
Method Summary
static long getFreeMemory()
          getFreeMemory returns the amount of free memory in the system.
static long getTotalMemory()
          getTotalMemory returns the total amount of memory in the JVM.
static void invokeGC()
          invokeGC calls upon the JVM Garbage Collector to recycle unused objects.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Memory

public Memory()
Method Detail

getFreeMemory

public static long getFreeMemory()
getFreeMemory returns the amount of free memory in the system.

Returns:
the amount of free memory in the system

getTotalMemory

public static long getTotalMemory()
getTotalMemory returns the total amount of memory in the JVM.

Returns:
the total amount of memory in the JVM

invokeGC

public static void invokeGC()
invokeGC calls upon the JVM Garbage Collector to recycle unused objects.



Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.