port jvmstat to avoid tools.jar dependency