Small API enhancements to jvmmonitor to get more information, stop polling if no listeners