/api/stats/jvm

线程端点用于调试 TSD 的 JVM 进程,并包括有关垃圾收集器,系统负载和内存使用情况的统计信息。 (v2.2)

Note

打印的信息将根据您在其下运行 TSD 的 JVM 而变化。特别是,池和 GC 部分将相差很多。

Verbs

  • GET

Requests

无可用参数。

Example Request

Query String

http://localhost:4242/api/stats/jvm

Response

响应是一个具有多个子对象的对象。顶级对象包括

NameData TypeDescription
osObject有关系统的信息
gcObject有关各种垃圾收集器的信息,例如 GC 发生了多少次以及该过程花费了多长时间。
runtimeObject有关 JVM 的详细信息,包括版本和供应商,启动时间戳(以毫秒为单位)和正常运行时间。
poolsObject有关每个内存池的详细信息,尤其是与分代收集器一起使用时。
memoryObject有关 JVM 内存使用情况的信息。

Example Response

{
    "os": {
        "systemLoadAverage": 4.85
    },
    "gc": {
        "parNew": {
            "collectionTime": 26027510,
            "collectionCount": 361039
        },
        "concurrentMarkSweep": {
            "collectionTime": 333710,
            "collectionCount": 396
        }
    },
    "runtime": {
        "startTime": 1441069233346,
        "vmVersion": "24.60-b09",
        "uptime": 1033439220,
        "vmVendor": "Oracle Corporation",
        "vmName": "Java HotSpot(TM) 64-Bit Server VM"
    },
    "pools": {
        "cMSPermGen": {
            "collectionUsage": {
                "init": 21757952,
                "used": 30044544,
                "committed": 50077696,
                "max": 85983232
            },
            "usage": {
                "init": 21757952,
                "used": 30045408,
                "committed": 50077696,
                "max": 85983232
            },
            "type": "NON_HEAP",
            "peakUsage": {
                "init": 21757952,
                "used": 30045408,
                "committed": 50077696,
                "max": 85983232
            }
        },
        "parSurvivorSpace": {
            "collectionUsage": {
                "init": 157024256,
                "used": 32838400,
                "committed": 157024256,
                "max": 157024256
            },
            "usage": {
                "init": 157024256,
                "used": 32838400,
                "committed": 157024256,
                "max": 157024256
            },
            "type": "HEAP",
            "peakUsage": {
                "init": 157024256,
                "used": 157024256,
                "committed": 157024256,
                "max": 157024256
            }
        },
        "codeCache": {
            "collectionUsage": null,
            "usage": {
                "init": 2555904,
                "used": 8754368,
                "committed": 8978432,
                "max": 50331648
            },
            "type": "NON_HEAP",
            "peakUsage": {
                "init": 2555904,
                "used": 8767040,
                "committed": 8978432,
                "max": 50331648
            }
        },
        "cMSOldGen": {
            "collectionUsage": {
                "init": 15609561088,
                "used": 1886862056,
                "committed": 15609561088,
                "max": 15609561088
            },
            "usage": {
                "init": 15609561088,
                "used": 5504187904,
                "committed": 15609561088,
                "max": 15609561088
            },
            "type": "HEAP",
            "peakUsage": {
                "init": 15609561088,
                "used": 11849865176,
                "committed": 15609561088,
                "max": 15609561088
            }
        },
        "parEdenSpace": {
            "collectionUsage": {
                "init": 1256259584,
                "used": 0,
                "committed": 1256259584,
                "max": 1256259584
            },
            "usage": {
                "init": 1256259584,
                "used": 825272064,
                "committed": 1256259584,
                "max": 1256259584
            },
            "type": "HEAP",
            "peakUsage": {
                "init": 1256259584,
                "used": 1256259584,
                "committed": 1256259584,
                "max": 1256259584
            }
        }
    },
    "memory": {
        "objectsPendingFinalization": 0,
        "nonHeapMemoryUsage": {
            "init": 24313856,
            "used": 38798912,
            "committed": 59056128,
            "max": 136314880
        },
        "heapMemoryUsage": {
            "init": 17179869184,
            "used": 6351794296,
            "committed": 17022844928,
            "max": 17022844928
        }
    }
}