1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889 |
- <!DOCTYPE html>
- <html lang="zh" xmlns:th="http://www.thymeleaf.org" >
- <head>
- <th:block th:include="include :: header('Tomcat监控')" />
- </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>Tomcat</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>tomcat.global.sent</td>
- <td>发送的字节数</td>
- <td th:text="${tomcat.tomcatGlobalSent} + ' bytes'"></td>
- </tr>
- <tr>
- <td>tomcat.global.request.max</td>
- <td>request 请求最长耗时</td>
- <td th:text="${tomcat.tomcatGlobalRequestMax} + ' 秒'"></td>
- </tr>
- <tr>
- <td> tomcat.global.error</td>
- <td>tomcat 全局异常数量</td>
- <td th:text="${#numbers.formatInteger(tomcat.tomcatGlobalError, 0)} + ' 个'"></td>
- </tr>
- <tr>
- <td>tomcat.threads.current</td>
- <td>tomcat 当前线程数(包括守护线程)</td>
- <td th:text="${#numbers.formatInteger(tomcat.tomcatThreadsCurrent, 0)} + ' 个'"></td>
- </tr>
- <tr>
- <td> tomcat.threads.config.max</td>
- <td>tomcat 配置的线程最大数</td>
- <td th:text="${#numbers.formatInteger(tomcat.tomcatThreadsConfigMax, 0)} + ' 个'"></td>
- </tr>
- <tr>
- <td>tomcat.threads.busy</td>
- <td>tomcat 当前繁忙线程数</td>
- <td th:text="${#numbers.formatInteger(tomcat.tomcatThreadsBusy, 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>
|