suramadu.tests.memory.footprint
Class VMRuntimeSize

java.lang.Object
  extended bysuramadu.tests.memory.footprint.VMRuntimeSize
All Implemented Interfaces:
java.lang.Runnable

public class VMRuntimeSize
extends java.lang.Object
implements java.lang.Runnable

Measure the memory footprint of a Java application.

PURPOSE:

DESIGN: This object does not actually test the size of the VM. What it does instead is start ans stay active for a configuaable amount of time so that an external shell script can measure memory usage.

ASSUMPTIONS:

INPUTS:

Property Default Value Description
"duration" "3000" The number of test iterations to perform.

OUTPUTS:

EXAMPLES: *

ORIGINS:

Author:
briang

Nested Class Summary
static class VMRuntimeSize.TestProps
           
 
Constructor Summary
VMRuntimeSize()
          constructor for test class Instantiates testProperties.
VMRuntimeSize(VMRuntimeSize.TestProps props)
           
 
Method Summary
static void main(java.lang.String[] args)
           
 void run()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VMRuntimeSize

public VMRuntimeSize()
              throws java.lang.Exception
constructor for test class Instantiates testProperties.

Throws:
java.lang.Throwable
java.lang.IllegalAccessException
java.lang.InstantiationException
java.lang.Exception

VMRuntimeSize

public VMRuntimeSize(VMRuntimeSize.TestProps props)
              throws java.lang.Exception
Method Detail

main

public static void main(java.lang.String[] args)
Parameters:
args - the command line arguments

run

public void run()
Specified by:
run in interface java.lang.Runnable