⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sysinfo.jsp

📁 Lambda Probe(Tomcat Probe)是一个基于Web以实时的方式来管理单个Tomcat主机的工具。它除了具备标准Tomcat Manager大部份功能之外还提供一些能够帮助Web开发者
💻 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>&nbsp;</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>&nbsp;<fmt:formatNumber maxFractionDigits="1" value="${memUsed}"/>%</td>
            <td>&nbsp;<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>&nbsp;<fmt:formatNumber maxFractionDigits="2" value="${systemInformation.freeMemory / 1024 / 1024}"/> MB
    <span class="name"><spring:message code="probe.jsp.sysinfo.memory.total"/></span>&nbsp;<fmt:formatNumber maxFractionDigits="2" value="${systemInformation.totalMemory / 1024 / 1024}"/> MB
    <span class="name"><spring:message code="probe.jsp.sysinfo.memory.max"/></span>&nbsp;<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>&nbsp;<a href="${systemInformation.systemProperties['java.vendor.url']}" target="_blank">
    ${systemInformation.systemProperties['java.runtime.name'] }&nbsp;
    ${systemInformation.systemProperties['java.runtime.version'] }&nbsp;
    ${systemInformation.systemProperties['java.vm.name'] })
    </a>
    <br/>
    <span class="name"><spring:message code="probe.jsp.sysinfo.os.name"/></span>&nbsp;${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>&nbsp;${systemInformation.cpuCount }<br/>
    <span class="name"><spring:message code="probe.jsp.sysinfo.os.currentTime"/></span>&nbsp;${systemInformation.date}<br/>
    <span class="name"><spring:message code="probe.jsp.sysinfo.os.workingDir"/></span>&nbsp;${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>&nbsp;${systemInformation.serverInfo}<br/>
    <span class="name"><spring:message code="probe.jsp.sysinfo.os.catalinaBase"/></span>&nbsp;${systemInformation.systemProperties['catalina.base'] }<br/>
    <span class="name"><spring:message code="probe.jsp.sysinfo.os.catalinaHome"/></span>&nbsp;${systemInformation.systemProperties['catalina.home'] }<br/>
    <span class="name"><spring:message code="probe.jsp.sysinfo.os.applicationBase"/></span>&nbsp;${systemInformation.appBase}<br/>
    <span class="name"><spring:message code="probe.jsp.sysinfo.os.configBase"/></span>&nbsp;${systemInformation.configBase}<br/>

</div>
</body>

</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -