Added JVM metrics.

Added JVM metrics for monitoring.