com.oy.shared.lw.samples.gc
Class TestGCThread

java.lang.Object
  extended byjava.lang.Thread
      extended bycom.oy.shared.lw.misc.PoliteThread
          extended bycom.oy.shared.lw.samples.gc.TestGCThread
All Implemented Interfaces:
java.lang.Runnable

public class TestGCThread
extends PoliteThread

This test are designed to monitor behavior of Java garbage collector. Please note that overriding finalize() in TestGCCLass significanly changes the behavior of garbage collection. To see this test at work set the following JVM options and run this test, while monitoring it via SNMP. Options: 1) Copying [default]: -Xms256M -Xmx256M 2) Incremental: -Xms256M -Xmx256M -Xincgc 3) Parallel copying: -Xms256M -Xmx256M -XX:+UseParNewGC 4) Parallel scavenging: -Xms256M -Xmx256M -XX:+UseParallelGC 5) Concurrent mark and sweep: -Xms256M -Xmx256M -XX:+UseConcMarkSweepGC


Field Summary
 
Fields inherited from class com.oy.shared.lw.misc.PoliteThread
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
TestGCThread()
           
 
Method Summary
static void main(java.lang.String[] args)
           
 void run()
           
 
Methods inherited from class com.oy.shared.lw.misc.PoliteThread
isTerminated, terminate
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TestGCThread

public TestGCThread()
Method Detail

main

public static void main(java.lang.String[] args)

run

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


Copyright (C) 2005-2006 Pavel Simakov
http://www.softwaresecretweapons.com