Fix up jvm metrics, when run in raw JVM.