tomcat.html 4.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. <!DOCTYPE html>
  2. <html lang="zh" xmlns:th="http://www.thymeleaf.org" >
  3. <head>
  4. <th:block th:include="include :: header('Tomcat监控')" />
  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>Tomcat</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>tomcat.global.sent</td>
  32. <td>发送的字节数</td>
  33. <td th:text="${tomcat.tomcatGlobalSent} + ' bytes'"></td>
  34. </tr>
  35. <tr>
  36. <td>tomcat.global.request.max</td>
  37. <td>request 请求最长耗时</td>
  38. <td th:text="${tomcat.tomcatGlobalRequestMax} + ' 秒'"></td>
  39. </tr>
  40. <tr>
  41. <td> tomcat.global.error</td>
  42. <td>tomcat 全局异常数量</td>
  43. <td th:text="${#numbers.formatInteger(tomcat.tomcatGlobalError, 0)} + ' 个'"></td>
  44. </tr>
  45. <tr>
  46. <td>tomcat.threads.current</td>
  47. <td>tomcat 当前线程数(包括守护线程)</td>
  48. <td th:text="${#numbers.formatInteger(tomcat.tomcatThreadsCurrent, 0)} + ' 个'"></td>
  49. </tr>
  50. <tr>
  51. <td> tomcat.threads.config.max</td>
  52. <td>tomcat 配置的线程最大数</td>
  53. <td th:text="${#numbers.formatInteger(tomcat.tomcatThreadsConfigMax, 0)} + ' 个'"></td>
  54. </tr>
  55. <tr>
  56. <td>tomcat.threads.busy</td>
  57. <td>tomcat 当前繁忙线程数</td>
  58. <td th:text="${#numbers.formatInteger(tomcat.tomcatThreadsBusy, 0)} + ' 个'"></td>
  59. </tr>
  60. </tbody>
  61. </table>
  62. </div>
  63. </div>
  64. </div>
  65. </div>
  66. </div>
  67. </div>
  68. </body>
  69. <th:block th:include="include :: footer" />
  70. <script>
  71. $(".modal").appendTo("body"), $("[data-toggle=popover]").popover(), $(".collapse-link").click(function() {
  72. var div_ibox = $(this).closest("div.ibox"),
  73. e = $(this).find("i"),
  74. i = div_ibox.find("div.ibox-content");
  75. i.slideToggle(200),
  76. e.toggleClass("fa-chevron-up").toggleClass("fa-chevron-down"),
  77. div_ibox.toggleClass("").toggleClass("border-bottom"),
  78. setTimeout(function() {
  79. div_ibox.resize();
  80. }, 50);
  81. }), $(".close-link").click(function () {
  82. var div_ibox = $(this).closest("div.ibox");
  83. div_ibox.remove()
  84. });
  85. </script>
  86. </html>