JDK-6711106 : REGRESSION: Bad usage of SnapshotMBeanServerConnection in MBeans tab and JConsole plugins.
  • Type: Bug
  • Component: tools
  • Sub-Component: jconsole
  • Affected Version: 7
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2008-06-05
  • Updated: 2011-03-08
  • Resolved: 2011-03-08
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
6u10Fixed 7 b30Fixed
Related Reports
Relates :  
Relates :  
There are two issues in the way the SnapshotMBeanServerConnection (introduced in JDK 6) is used within JConsole:

- JConsole Plugins:

  The call to JConsoleContext.getMBeanServerConnection() should return the original
  MBeanServerConnection but returns the SnapshotMBeanServerConnection.

- MBeans tab:

  The Attributes are computed by calling getAttributes first and if an error occurs
  then we call getAttribute for each individual attribute in the list.
  The problem comes from the fact that the individual getAttribute calls go through
  the SnapshotMBeanServerConnection that calls again getAttributes internally.

EVALUATION Only use SnapshotMBeanServerConnection when appropriate.

WORK AROUND Use JConsole 5 or VisualVM.