NameNode信息的接口

2020-12-31 11:39:45 浏览数 (2)

jmx?qry=Hadoop:service=NameNode, name=NameNodeInfo

代码语言:javascript复制
http://yyy:50070/jmx?qry=Hadoop:service=NameNode,name=NameNodeInfo

name=NameNodeStatus

代码语言:javascript复制
http://yyy:50070/jmx?qry=Hadoop:service=NameNode,name=NameNodeStatus

name=FSNamesystemState

代码语言:javascript复制
http://yyy:50070/jmx?qry=Hadoop:service=NameNode,name=FSNamesystemState

name=FSNamesystem

代码语言:javascript复制
http://yyy:50070/jmx?qry=Hadoop:service=NameNode,name=FSNamesystem

name=BlockStats

代码语言:javascript复制
http://yyy:50070/jmx?qry=Hadoop:service=NameNode,name=BlockStats

qry=java.lang:type=Memory 这个指标还是挺关键的:元数据使用内存大小/堆内存大小

代码语言:javascript复制
http://yyy:50070/jmx?qry=java.lang:type=Memory

image.png

代码语言:javascript复制
接口返回的data sample:
{
  "beans" : [ {
    "name" : "java.lang:type=Memory",
    "modelerType" : "sun.management.MemoryImpl",
    "ObjectPendingFinalizationCount" : 0,
    "HeapMemoryUsage" : {
      "committed" : 66035122176,
      "init" : 67108864000,
      "max" : 66035122176,
      "used" : 32603159920
    },
    "NonHeapMemoryUsage" : {
      "committed" : 135868416,
      "init" : 2555904,
      "max" : -1,
      "used" : 133775248
    },
    "Verbose" : true,
    "ObjectName" : "java.lang:type=Memory"
  } ]
}

0 人点赞