core/src/main/java/com/orientechnologies/orient/core/storage/impl/local/statistic/OPerformanceStatisticManager.java
public void unregisterMBean(String storageName, int storageId) {
    if (storageName == null) {
      OLogManager.instance().warnNoDb(this, "Can not unregister MBean for performance statistics, storage name is null");
    }
    if (mbeanIsRegistered.compareAndSet(true, false)) {
      try {
        final MBeanServer server = ManagementFactory.getPlatformMBeanServer();
        final ObjectName mbeanName = new ObjectName(getMBeanName(storageName, storageId));
        server.unregisterMBean(mbeanName);
      } catch (MalformedObjectNameException | InstanceNotFoundException | MBeanRegistrationException e) {
        throw OException.wrapException(new OStorageException("Error during unregistration of profiler MBean"), e);
      }
    }
  }
public void unregisterMBean(String storageName, int storageId) {
    if (storageName == null) {
      OLogManager.instance().warnNoDb(this, "Can not unregister MBean for performance statistics, storage name is null");
    }
    if (mbeanIsRegistered.compareAndSet(true, false)) {
      try {
        final MBeanServer server = ManagementFactory.getPlatformMBeanServer();
        final ObjectName mbeanName = new ObjectName(getMBeanName(storageName, storageId));
        server.unregisterMBean(mbeanName);
      } catch (MalformedObjectNameException | InstanceNotFoundException | MBeanRegistrationException e) {
        throw OException.wrapException(new OStorageException("Error during unregistration of profiler MBean"), e);
      }
    }
  }
Deregisters JMX bean for current manager.

@param storageName Name of storage of given manager
@param storageId   Id of storage of given manager

@see OStorage#getName()
@see OIdentifiableStorage#getId()