add jvm memory test code