日期:2014-05-16 浏览次数:20669 次
在tomcat bin目录下有一个 catalina.sh
增加红色数据
# ----- Execute The Requested
Command -----------------------------------------
JAVA_OPTS="-server -Xms60m -Xmx150m"
# Bugzilla 37848:
only output this if we have a TTY
<%
Runtime lRuntime =
Runtime.getRuntime();
out.println("*** BEGIN MEMORY STATISTICS
***<br/>");
out.println("Free Memory:
"+lRuntime.freeMemory()+"<br/>");
out.println("Max?? Memory:
"+lRuntime.maxMemory()+"<br/>");
out.println("Total Memory:
"+lRuntime.totalMemory()+"<br/>");
out.println("Available Processors :
"+lRuntime.availableProcessors()+"<br/>");
out.println("*** END MEMORY
STATISTICS ***");
%>