posts - 66, comments - 12, trackbacks - 0, articles - 0

java vm xms xmx查看

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

只有注册用户登录后才能发表评论。


网站导航: