Simple jmx client for logging heap usage.