jvm.html 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. <!DOCTYPE html>
  2. <html lang="zh" xmlns:th="http://www.thymeleaf.org" >
  3. <head>
  4. <th:block th:include="include :: header('JVM监控')" />
  5. </head>
  6. <body class="gray-bg">
  7. <div class="wrapper wrapper-content">
  8. <div class="col-sm-12">
  9. <div class="row">
  10. <div class="col-sm-6">
  11. <div class="ibox float-e-margins">
  12. <div class="ibox-title">
  13. <h5>JVM</h5>
  14. <div class="ibox-tools">
  15. <a class="collapse-link"><i class="fa fa-chevron-up"></i>
  16. </a>
  17. <a class="close-link"><i class="fa fa-times"></i></a>
  18. </div>
  19. </div>
  20. <div class="ibox-content">
  21. <table class="table table-hover no-margins">
  22. <thead>
  23. <tr>
  24. <th>参数</th>
  25. <th>描述</th>
  26. <th>当前值</th>
  27. </tr>
  28. </thead>
  29. <tbody>
  30. <tr>
  31. <td>jvm.memory.max</td>
  32. <td>JVM 最大内存</td>
  33. <td th:text="${jvm.jvmMemoryMax} + ' MB'">0MB</td>
  34. </tr>
  35. <tr>
  36. <td>jvm.memory.committed</td>
  37. <td>JVM 可用内存</td>
  38. <td th:text="${jvm.jvmMemoryCommitted} + ' MB'">0MB</td>
  39. </tr>
  40. <tr>
  41. <td>jvm.memory.used</td>
  42. <td>JVM 已用内存</td>
  43. <td th:text="${jvm.jvmMemoryUsed} + ' MB'">0MB</td>
  44. </tr>
  45. <tr>
  46. <td> jvm.buffer.memory.used</td>
  47. <td>JVM 缓冲区已用内存</td>
  48. <td th:text="${jvm.jvmBufferMemoryUsed} + ' MB'">0MB</td>
  49. </tr>
  50. <tr>
  51. <td> jvm.buffer.count</td>
  52. <td>当前缓冲区数量</td>
  53. <td th:text="${#numbers.formatInteger(jvm.jvmBufferCount, 0)} + ' 个'"></td>
  54. </tr>
  55. <tr>
  56. <td>jvm.threads.daemon</td>
  57. <td>JVM 守护线程数量</td>
  58. <td th:text="${#numbers.formatInteger(jvm.jvmThreadsdaemon, 0)} + ' 个'"></td>
  59. </tr>
  60. <tr>
  61. <td> jvm.threads.live</td>
  62. <td>JVM 当前活跃线程数量</td>
  63. <td th:text="${#numbers.formatInteger(jvm.jvmThreadsLive, 0)} + ' 个'"></td>
  64. </tr>
  65. <tr>
  66. <td> jvm.threads.peak</td>
  67. <td>JVM 峰值线程数量</td>
  68. <td th:text="${#numbers.formatInteger(jvm.jvmThreadsPeak, 0)} + ' 个'"></td>
  69. </tr>
  70. <tr>
  71. <td> jvm.gc.memory.allocated</td>
  72. <td>GC 时, 年轻代分配的内存空间</td>
  73. <td th:text="${jvm.jvmGcMemoryAllocated} + ' MB'"></td>
  74. </tr>
  75. <tr>
  76. <td> jvm.gc.memory.promoted</td>
  77. <td>GC 时, 老年代分配的内存空间</td>
  78. <td th:text="${jvm.jvmGcMemoryPromoted} + ' MB'"></td>
  79. </tr>
  80. <tr>
  81. <td> jvm.gc.max.data.size</td>
  82. <td>GC 时, 老年代的最大内存空间</td>
  83. <td th:text="${jvm.jvmGcMaxDataSize} + ' MB'"></td>
  84. </tr>
  85. <tr>
  86. <td> jvm.gc.live.data.size</td>
  87. <td>FullGC 时, 老年代的内存空间</td>
  88. <td th:text="${jvm.jvmGcLiveDataSize} + ' MB'"></td>
  89. </tr>
  90. <tr>
  91. <td> jvm.classes.loaded</td>
  92. <td>JVM 已加载 Class 数量</td>
  93. <td th:text="${#numbers.formatInteger(jvm.jvmClassesLoaded, 0)} + ' 个'"></td>
  94. </tr>
  95. <tr>
  96. <td> jvm.classes.unloaded</td>
  97. <td>JVM 未加载 Class 数量</td>
  98. <td th:text="${#numbers.formatInteger(jvm.jvmClassesUnloaded, 0)} + ' 个'"></td>
  99. </tr>
  100. </tbody>
  101. </table>
  102. </div>
  103. </div>
  104. </div>
  105. </div>
  106. </div>
  107. </div>
  108. </body>
  109. <th:block th:include="include :: footer" />
  110. <script>
  111. $(".modal").appendTo("body"), $("[data-toggle=popover]").popover(), $(".collapse-link").click(function() {
  112. var div_ibox = $(this).closest("div.ibox"),
  113. e = $(this).find("i"),
  114. i = div_ibox.find("div.ibox-content");
  115. i.slideToggle(200),
  116. e.toggleClass("fa-chevron-up").toggleClass("fa-chevron-down"),
  117. div_ibox.toggleClass("").toggleClass("border-bottom"),
  118. setTimeout(function() {
  119. div_ibox.resize();
  120. }, 50);
  121. }), $(".close-link").click(function () {
  122. var div_ibox = $(this).closest("div.ibox");
  123. div_ibox.remove()
  124. });
  125. </script>
  126. </html>