a simple monitor for java application