美文网首页
NameNode信息的接口

NameNode信息的接口

作者: sparkle123 | 来源:发表于2020-12-28 22:19 被阅读0次

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

    http://yyy:50070/jmx?qry=Hadoop:service=NameNode,name=NameNodeInfo
    

    name=NameNodeStatus

    http://yyy:50070/jmx?qry=Hadoop:service=NameNode,name=NameNodeStatus
    

    name=FSNamesystemState

    http://yyy:50070/jmx?qry=Hadoop:service=NameNode,name=FSNamesystemState
    

    name=FSNamesystem

    http://yyy:50070/jmx?qry=Hadoop:service=NameNode,name=FSNamesystem
    

    name=BlockStats

    http://yyy:50070/jmx?qry=Hadoop:service=NameNode,name=BlockStats
    

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

    http://yyy:50070/jmx?qry=java.lang:type=Memory
    
    image.png
    接口返回的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"
      } ]
    }
    
    

    相关文章

      网友评论

          本文标题:NameNode信息的接口

          本文链接:https://www.haomeiwen.com/subject/ljcxoktx.html