Getting error while monitoring JVM via metricbeat

I have seen a similar issue: Metricbeat jolokia module: "Cannot unmarshal json response"
This might be useful for you.

Let me know if you need further assistance.