|
@@ -671,6 +671,11 @@ public class NameNode implements NameNodeStatusMXBean {
|
|
|
NameNode.initMetrics(conf, this.getRole());
|
|
|
StartupProgressMetrics.register(startupProgress);
|
|
|
|
|
|
+ pauseMonitor = new JvmPauseMonitor();
|
|
|
+ pauseMonitor.init(conf);
|
|
|
+ pauseMonitor.start();
|
|
|
+ metrics.getJvmMetrics().setPauseMonitor(pauseMonitor);
|
|
|
+
|
|
|
if (NamenodeRole.NAMENODE == role) {
|
|
|
startHttpServer(conf);
|
|
|
}
|
|
@@ -690,12 +695,7 @@ public class NameNode implements NameNodeStatusMXBean {
|
|
|
httpServer.setNameNodeAddress(getNameNodeAddress());
|
|
|
httpServer.setFSImage(getFSImage());
|
|
|
}
|
|
|
-
|
|
|
- pauseMonitor = new JvmPauseMonitor();
|
|
|
- pauseMonitor.init(conf);
|
|
|
- pauseMonitor.start();
|
|
|
- metrics.getJvmMetrics().setPauseMonitor(pauseMonitor);
|
|
|
-
|
|
|
+
|
|
|
startCommonServices(conf);
|
|
|
startMetricsLogger(conf);
|
|
|
}
|