123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138 |
- <!DOCTYPE html>
- <html lang="zh" xmlns:th="http://www.thymeleaf.org" >
- <head>
- <th:block th:include="include :: header('JVM监控')" />
- </head>
- <body class="gray-bg">
- <div class="wrapper wrapper-content">
- <div class="col-sm-12">
- <div class="row">
- <div class="col-sm-6">
- <div class="ibox float-e-margins">
- <div class="ibox-title">
- <h5>JVM</h5>
- <div class="ibox-tools">
- <a class="collapse-link"><i class="fa fa-chevron-up"></i>
- </a>
- <a class="close-link"><i class="fa fa-times"></i></a>
- </div>
- </div>
- <div class="ibox-content">
- <table class="table table-hover no-margins">
- <thead>
- <tr>
- <th>参数</th>
- <th>描述</th>
- <th>当前值</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>jvm.memory.max</td>
- <td>JVM 最大内存</td>
- <td th:text="${jvm.jvmMemoryMax} + ' MB'">0MB</td>
- </tr>
- <tr>
- <td>jvm.memory.committed</td>
- <td>JVM 可用内存</td>
- <td th:text="${jvm.jvmMemoryCommitted} + ' MB'">0MB</td>
- </tr>
- <tr>
- <td>jvm.memory.used</td>
- <td>JVM 已用内存</td>
- <td th:text="${jvm.jvmMemoryUsed} + ' MB'">0MB</td>
- </tr>
- <tr>
- <td> jvm.buffer.memory.used</td>
- <td>JVM 缓冲区已用内存</td>
- <td th:text="${jvm.jvmBufferMemoryUsed} + ' MB'">0MB</td>
- </tr>
- <tr>
- <td> jvm.buffer.count</td>
- <td>当前缓冲区数量</td>
- <td th:text="${#numbers.formatInteger(jvm.jvmBufferCount, 0)} + ' 个'"></td>
- </tr>
- <tr>
- <td>jvm.threads.daemon</td>
- <td>JVM 守护线程数量</td>
- <td th:text="${#numbers.formatInteger(jvm.jvmThreadsdaemon, 0)} + ' 个'"></td>
- </tr>
- <tr>
- <td> jvm.threads.live</td>
- <td>JVM 当前活跃线程数量</td>
- <td th:text="${#numbers.formatInteger(jvm.jvmThreadsLive, 0)} + ' 个'"></td>
- </tr>
- <tr>
- <td> jvm.threads.peak</td>
- <td>JVM 峰值线程数量</td>
- <td th:text="${#numbers.formatInteger(jvm.jvmThreadsPeak, 0)} + ' 个'"></td>
- </tr>
- <tr>
- <td> jvm.gc.memory.allocated</td>
- <td>GC 时, 年轻代分配的内存空间</td>
- <td th:text="${jvm.jvmGcMemoryAllocated} + ' MB'"></td>
- </tr>
- <tr>
- <td> jvm.gc.memory.promoted</td>
- <td>GC 时, 老年代分配的内存空间</td>
- <td th:text="${jvm.jvmGcMemoryPromoted} + ' MB'"></td>
- </tr>
- <tr>
- <td> jvm.gc.max.data.size</td>
- <td>GC 时, 老年代的最大内存空间</td>
- <td th:text="${jvm.jvmGcMaxDataSize} + ' MB'"></td>
- </tr>
- <tr>
- <td> jvm.gc.live.data.size</td>
- <td>FullGC 时, 老年代的内存空间</td>
- <td th:text="${jvm.jvmGcLiveDataSize} + ' MB'"></td>
- </tr>
- <tr>
- <td> jvm.classes.loaded</td>
- <td>JVM 已加载 Class 数量</td>
- <td th:text="${#numbers.formatInteger(jvm.jvmClassesLoaded, 0)} + ' 个'"></td>
- </tr>
- <tr>
- <td> jvm.classes.unloaded</td>
- <td>JVM 未加载 Class 数量</td>
- <td th:text="${#numbers.formatInteger(jvm.jvmClassesUnloaded, 0)} + ' 个'"></td>
- </tr>
- </tbody>
- </table>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </body>
- <th:block th:include="include :: footer" />
- <script>
- $(".modal").appendTo("body"), $("[data-toggle=popover]").popover(), $(".collapse-link").click(function() {
- var div_ibox = $(this).closest("div.ibox"),
- e = $(this).find("i"),
- i = div_ibox.find("div.ibox-content");
- i.slideToggle(200),
- e.toggleClass("fa-chevron-up").toggleClass("fa-chevron-down"),
- div_ibox.toggleClass("").toggleClass("border-bottom"),
- setTimeout(function() {
- div_ibox.resize();
- }, 50);
- }), $(".close-link").click(function () {
- var div_ibox = $(this).closest("div.ibox");
- div_ibox.remove()
- });
- </script>
- </html>
|