<%@ page contentType="text/html; charset=UTF-8"%> <%@ page import="com.csc.library.system.*,com.csc.library.utilities.*,com.csc.library.cscimport.*,java.util.*,java.lang.*"%> <%@ page import="com.csc.library.entry.*,com.csc.library.database.*,com.csc.library.session.*,org.jfree.chart.demo.*, org.jfree.chart.renderer.xy.XYItemRenderer,org.jfree.util.PublicCloneable" %> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <HTML> <HEAD> <META http-equiv="Content-Type" content="text/html; charset=UTF-8"> <META http-equiv="Content-Style-Type" content="text/css"> <TITLE>TEST.jsp</TITLE> <link href="./CSS/MYNOTE.css" rel="stylesheet" type="text/css"> </HEAD> <BODY> <% Runtime.getRuntime().gc(); Vector vper=StaticProperties.PermanentTable; long MEGABYTE = 1024L; long max=(Runtime.getRuntime().totalMemory());///MEGABYTE; long free=(Runtime.getRuntime().freeMemory());///MEGABYTE; long used=max-free; java.text.DecimalFormat df=new java.text.DecimalFormat("#,##0"); %> <form name="cscform" > <table align="center"> <tr> <td class="title1" nowrap><div align="center">max(KB)</div></td> <td class="title1" nowrap><div align="center">used(KB)</div></td> <td class="title1" nowrap><div align="center">free(KB)</div></td> </tr> <tr> <td class="title1" nowrap><div align="center"><%=df.format(max)%> </div></td> <td class="title1" nowrap><div align="center"><%=df.format(used)%> </div></td> <td class="title1" nowrap><div align="center"><%=df.format(free)%> </div></td> </tr> </table> </form> </BODY> </HTML>