diff --git a/jdk/src/share/classes/sun/tools/jconsole/inspector/XPlottingViewer.java b/jdk/src/share/classes/sun/tools/jconsole/inspector/XPlottingViewer.java index 5bcf72dd719..836f28d3021 100644 --- a/jdk/src/share/classes/sun/tools/jconsole/inspector/XPlottingViewer.java +++ b/jdk/src/share/classes/sun/tools/jconsole/inspector/XPlottingViewer.java @@ -157,7 +157,7 @@ public class XPlottingViewer extends PlotterPanel implements ActionListener { public void run() { try { Number n = - (Number) xmbean.getMBeanServerConnection().getAttribute(xmbean.getObjectName(), attributeName); + (Number) xmbean.getSnapshotMBeanServerConnection().getAttribute(xmbean.getObjectName(), attributeName); long v; if (n instanceof Float || n instanceof Double) { plotter.setDecimals(PLOTTER_DECIMALS);