📄 sysinfo.jsp
字号:
<%--
* Licensed under the GPL License. You may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://probe.jstripe.com/d/license.shtml
*
* THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" session="false" %>
<%@ taglib uri='http://java.sun.com/jsp/jstl/core' prefix='c' %>
<%@ taglib uri='http://java.sun.com/jsp/jstl/fmt' prefix='fmt' %>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring" %>
<%@ taglib uri="http://displaytag.sf.net" prefix="display" %>
<%@ taglib uri="http://www.jstripe.com/tags" prefix="js" %>
<%--
Displays various system information including System.properties. This page helps to evaluate
the environment Tomcat is running in.
Author: Vlad Ilyushchenko
--%>
<html>
<head>
<title><spring:message code="probe.jsp.title.sysinfo"/></title>
</head>
<body>
<c:set var="navTabSystem" value="active" scope="request"/>
<c:set var="systemTabOverview" value="active" scope="request"/>
<c:set var="use_decorator" value="system" scope="request"/>
<div id="memoryInfo">
<h3><spring:message code="probe.jsp.sysinfo.memory.title"/></h3>
<c:set var="memUsed"
value="${(systemInformation.totalMemory - systemInformation.freeMemory) * 100 / systemInformation.maxMemory}"/>
<table cellspacing="0">
<tr>
<td><span class="name"><spring:message code="probe.jsp.sysinfo.memory.usage"/></span> </td>
<td style="padding:0; margin:0">
<js:score value="${memUsed}" partialBlocks="5" fullBlocks="10" showEmptyBlocks="true" showA="true" showB="true">
<img src="<c:url value="/css/classic/gifs/rb_{0}.gif"/>" alt="+"
title="<spring:message code="probe.jsp.sysinfo.memory.usage.alt"/>"/>
</js:score>
</td>
<td> <fmt:formatNumber maxFractionDigits="1" value="${memUsed}"/>%</td>
<td> <a href="<c:url value="/adm/forcegc.htm"/>"><spring:message code="probe.jsp.sysinfo.memory.forceGC"/></a></td>
</tr>
</table>
<span class="name"><spring:message code="probe.jsp.sysinfo.memory.free"/></span> <fmt:formatNumber maxFractionDigits="2" value="${systemInformation.freeMemory / 1024 / 1024}"/> MB
<span class="name"><spring:message code="probe.jsp.sysinfo.memory.total"/></span> <fmt:formatNumber maxFractionDigits="2" value="${systemInformation.totalMemory / 1024 / 1024}"/> MB
<span class="name"><spring:message code="probe.jsp.sysinfo.memory.max"/></span> <fmt:formatNumber maxFractionDigits="2" value="${systemInformation.maxMemory / 1024 / 1024}"/> MB
</div>
<div id="osInformation">
<h3><spring:message code="probe.jsp.sysinfo.os.title"/></h3>
<span class="name"><spring:message code="probe.jsp.sysinfo.os.jvm"/></span> <a href="${systemInformation.systemProperties['java.vendor.url']}" target="_blank">
${systemInformation.systemProperties['java.runtime.name'] }
${systemInformation.systemProperties['java.runtime.version'] }
${systemInformation.systemProperties['java.vm.name'] })
</a>
<br/>
<span class="name"><spring:message code="probe.jsp.sysinfo.os.name"/></span> ${systemInformation.systemProperties['os.name'] }
(${systemInformation.systemProperties['sun.os.patch.level'] })
${systemInformation.systemProperties['os.arch'] }
${systemInformation.systemProperties['os.version'] }<br/>
<span class="name"><spring:message code="probe.jsp.sysinfo.os.processors"/></span> ${systemInformation.cpuCount }<br/>
<span class="name"><spring:message code="probe.jsp.sysinfo.os.currentTime"/></span> ${systemInformation.date}<br/>
<span class="name"><spring:message code="probe.jsp.sysinfo.os.workingDir"/></span> ${systemInformation.workingDir}<br/>
</div>
<div>
<h3><spring:message code="probe.jsp.sysinfo.container.title"/></h3>
<span class="name"><spring:message code="probe.jsp.sysinfo.os.container"/></span> ${systemInformation.serverInfo}<br/>
<span class="name"><spring:message code="probe.jsp.sysinfo.os.catalinaBase"/></span> ${systemInformation.systemProperties['catalina.base'] }<br/>
<span class="name"><spring:message code="probe.jsp.sysinfo.os.catalinaHome"/></span> ${systemInformation.systemProperties['catalina.home'] }<br/>
<span class="name"><spring:message code="probe.jsp.sysinfo.os.applicationBase"/></span> ${systemInformation.appBase}<br/>
<span class="name"><spring:message code="probe.jsp.sysinfo.os.configBase"/></span> ${systemInformation.configBase}<br/>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -