You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
145 lines
5.1 KiB
145 lines
5.1 KiB
|
|
<%@page language="java" pageEncoding="utf-8" buffer="20kb" %>
|
|
<%@page import="java.util.Map"%>
|
|
<%@page import="java.util.Iterator"%>
|
|
<%
|
|
Map p = System.getProperties();
|
|
String gc = (String) request.getAttribute("gc");
|
|
if(gc!=null && gc.equals("1")){
|
|
Runtime.getRuntime().gc();
|
|
}
|
|
|
|
%>
|
|
<html>
|
|
<head>
|
|
<title>辅助业务管理系统</title>
|
|
<link href="/css/font.css" rel="stylesheet" type="text/css">
|
|
<script src="/js/date.js"></script>
|
|
<script src="/js/check.js"></script>
|
|
</head>
|
|
<body >
|
|
<br>
|
|
<table width="90%" border="0" align="center" cellpadding="0" cellspacing="1" class="box">
|
|
<tr>
|
|
<td valign="top"><table width="100%" height="23" border="0" cellpadding="0" cellspacing="0">
|
|
<tr>
|
|
<td width="25%" background="/images/tab_search_01.jpg"><table width="80%" height="23" border="0" align="center" cellpadding="0" cellspacing="0">
|
|
<tr>
|
|
<td width="3%"><img src="/images/little_red.jpg" width="12" height="12"></td>
|
|
<td width="97%" class="font12b"> 系统信息</td>
|
|
</tr>
|
|
</table></td>
|
|
<td width="82%" background="/images/tab_search_03.jpg"><img src="/images/tab_search_02.jpg" width="12" height="23"></td>
|
|
</tr>
|
|
</table>
|
|
|
|
|
|
<form name="form1" method="post" action="/sysinfo.jsp">
|
|
<input type="hidden" name="gc" value="1"/>
|
|
<br>
|
|
<table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
|
|
<tr>
|
|
<td width="3%"><img src="/images/little.gif" width="12" height="12"></td>
|
|
<td width="97%" class="font12">内存信息</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<table width="90%" border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="d8e9fe" class="table02">
|
|
<tr bgcolor="#FFFFFF">
|
|
<td width="23%" align="right">已使用内存
|
|
</td>
|
|
<td width="77%" class="font12bold">
|
|
<%=(Runtime.getRuntime().totalMemory() - Runtime.getRuntime().freeMemory()) /1024/1024%>MB</td>
|
|
</tr>
|
|
<tr bgcolor="#FFFFFF">
|
|
<td width="23%" align="right">空闲内存
|
|
</td>
|
|
<td width="77%" class="font12bold">
|
|
<%=Runtime.getRuntime().freeMemory()/1024/1024%>MB</td>
|
|
</tr>
|
|
<tr bgcolor="#FFFFFF">
|
|
<td width="23%" align="right">已申请总内存
|
|
</td>
|
|
<td width="77%" class="font12bold">
|
|
<%=Runtime.getRuntime().totalMemory()/1024/1024%>MB</td>
|
|
</tr>
|
|
<tr bgcolor="#FFFFFF">
|
|
<td width="23%" align="right">最多允许申请内存
|
|
</td>
|
|
<td width="77%" class="font12bold">
|
|
<%=Runtime.getRuntime().maxMemory()/1024/1024%>MB</td>
|
|
</tr>
|
|
</table>
|
|
<center>
|
|
<br>
|
|
<input type="button" value="强制内存回收" class="box_button" onclick="form1.submit();" />
|
|
</center>
|
|
|
|
|
|
<br>
|
|
<table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
|
|
<tr>
|
|
<td width="3%"><img src="/images/little.gif" width="12" height="12"></td>
|
|
<td width="97%" class="font12">系统信息</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<table width="90%" border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="d8e9fe" class="table02">
|
|
<tr bgcolor="#FFFFFF">
|
|
<td width="23%" align="right">JVM
|
|
</td>
|
|
<td width="77%" class="font12bold">
|
|
<%out.println(((String)p.get("java.runtime.name"))+ ((String)p.get("java.runtime.version")));%></td>
|
|
</tr>
|
|
<tr bgcolor="#FFFFFF">
|
|
<td width="23%" align="right">操作系统
|
|
</td>
|
|
<td width="77%" class="font12bold">
|
|
<%=(String)p.get("os.name")%>(<%=(String)p.get("sun.os.patch.level")%>) <%=(String)p.get("os.arch")%> <%=(String)p.get("os.version")%></td>
|
|
</tr>
|
|
<tr bgcolor="#FFFFFF">
|
|
<td width="23%" align="right">已使用CPU个数
|
|
</td>
|
|
<td width="77%" class="font12bold">
|
|
<%=Runtime.getRuntime().availableProcessors()%></td>
|
|
</tr>
|
|
<tr bgcolor="#FFFFFF">
|
|
<td width="23%" align="right">应用服务器
|
|
</td>
|
|
<td width="77%" class="font12bold">
|
|
<%=application.getServerInfo()%></td>
|
|
</tr>
|
|
</table>
|
|
|
|
<br>
|
|
<table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
|
|
<tr>
|
|
<td width="3%"><img src="/images/little.gif" width="12" height="12"></td>
|
|
<td width="97%" class="font12">其它信息</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<table width="90%" border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="d8e9fe" class="table02">
|
|
|
|
<%
|
|
for (Iterator iter = p.keySet().iterator(); iter.hasNext();) {
|
|
String key = (String) iter.next();
|
|
String value = (String) p.get(key);
|
|
%>
|
|
<tr bgcolor="#FFFFFF">
|
|
<td width="23%" align="right"><%=key%></td>
|
|
<td width="77%" class="font12bold"><%=value%></td>
|
|
</tr>
|
|
<%
|
|
}
|
|
%>
|
|
</table>
|
|
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
|
|
<%@include file="/foot.jsp"%>
|
|
</body>
|
|
</html> |