Posted on 2010-03-19 23:24
cyantide 阅读(1155)
评论(0) 编辑 收藏 所属分类:
java
<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<html>
<%= "TotalMemory :::: " + (Runtime.getRuntime().totalMemory()/(1024*1024) + "M") %>
<%="Max Memory :::: " + (Runtime.getRuntime().maxMemory()/(1024*1024) + "M")%>
<%="Free Memory :::: " + (Runtime.getRuntime().freeMemory()/(1024*1024) + "M")%>
</html>
cmd
java -Xmx1024M -Xms1024M -version