/api/stats/jvm

The threads endpoint is used for debugging the TSD’s JVM process and includes stats about the garbage collector, system load and memory usage. (v2.2)

Note

The information printed will change depending on the JVM you are running the TSD under. In particular, the pools and GC sections will differ quite a bit.

Verbs

  • GET

Requests

No parameters available.

Example Request

Query String

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

Response

The response is an object with multiple sub objects. Top level objects include

Name

Data Type

Description

os

Object

Information about the system

gc

Object

Information about the various garbage collectors such as how many times GC occurred and how long the process spent collecting.

runtime

Object

Details about the JVM including version and vendor, start timestamp (in millieconds) and the uptime.

pools

Object

Details about each of the memory pools, particularly when used with a generational collector.

memory

Object

Information about the JVM’s memory usage.

Example Response

  1. {
  2. "os": {
  3. "systemLoadAverage": 4.85
  4. },
  5. "gc": {
  6. "parNew": {
  7. "collectionTime": 26027510,
  8. "collectionCount": 361039
  9. },
  10. "concurrentMarkSweep": {
  11. "collectionTime": 333710,
  12. "collectionCount": 396
  13. }
  14. },
  15. "runtime": {
  16. "startTime": 1441069233346,
  17. "vmVersion": "24.60-b09",
  18. "uptime": 1033439220,
  19. "vmVendor": "Oracle Corporation",
  20. "vmName": "Java HotSpot(TM) 64-Bit Server VM"
  21. },
  22. "pools": {
  23. "cMSPermGen": {
  24. "collectionUsage": {
  25. "init": 21757952,
  26. "used": 30044544,
  27. "committed": 50077696,
  28. "max": 85983232
  29. },
  30. "usage": {
  31. "init": 21757952,
  32. "used": 30045408,
  33. "committed": 50077696,
  34. "max": 85983232
  35. },
  36. "type": "NON_HEAP",
  37. "peakUsage": {
  38. "init": 21757952,
  39. "used": 30045408,
  40. "committed": 50077696,
  41. "max": 85983232
  42. }
  43. },
  44. "parSurvivorSpace": {
  45. "collectionUsage": {
  46. "init": 157024256,
  47. "used": 32838400,
  48. "committed": 157024256,
  49. "max": 157024256
  50. },
  51. "usage": {
  52. "init": 157024256,
  53. "used": 32838400,
  54. "committed": 157024256,
  55. "max": 157024256
  56. },
  57. "type": "HEAP",
  58. "peakUsage": {
  59. "init": 157024256,
  60. "used": 157024256,
  61. "committed": 157024256,
  62. "max": 157024256
  63. }
  64. },
  65. "codeCache": {
  66. "collectionUsage": null,
  67. "usage": {
  68. "init": 2555904,
  69. "used": 8754368,
  70. "committed": 8978432,
  71. "max": 50331648
  72. },
  73. "type": "NON_HEAP",
  74. "peakUsage": {
  75. "init": 2555904,
  76. "used": 8767040,
  77. "committed": 8978432,
  78. "max": 50331648
  79. }
  80. },
  81. "cMSOldGen": {
  82. "collectionUsage": {
  83. "init": 15609561088,
  84. "used": 1886862056,
  85. "committed": 15609561088,
  86. "max": 15609561088
  87. },
  88. "usage": {
  89. "init": 15609561088,
  90. "used": 5504187904,
  91. "committed": 15609561088,
  92. "max": 15609561088
  93. },
  94. "type": "HEAP",
  95. "peakUsage": {
  96. "init": 15609561088,
  97. "used": 11849865176,
  98. "committed": 15609561088,
  99. "max": 15609561088
  100. }
  101. },
  102. "parEdenSpace": {
  103. "collectionUsage": {
  104. "init": 1256259584,
  105. "used": 0,
  106. "committed": 1256259584,
  107. "max": 1256259584
  108. },
  109. "usage": {
  110. "init": 1256259584,
  111. "used": 825272064,
  112. "committed": 1256259584,
  113. "max": 1256259584
  114. },
  115. "type": "HEAP",
  116. "peakUsage": {
  117. "init": 1256259584,
  118. "used": 1256259584,
  119. "committed": 1256259584,
  120. "max": 1256259584
  121. }
  122. }
  123. },
  124. "memory": {
  125. "objectsPendingFinalization": 0,
  126. "nonHeapMemoryUsage": {
  127. "init": 24313856,
  128. "used": 38798912,
  129. "committed": 59056128,
  130. "max": 136314880
  131. },
  132. "heapMemoryUsage": {
  133. "init": 17179869184,
  134. "used": 6351794296,
  135. "committed": 17022844928,
  136. "max": 17022844928
  137. }
  138. }
  139. }