java²»ÓÃjni£¬Ò²¿ÉÒÔ»ñµÃµ±Ç°ÏµÍ³ÐÔÄÜÐÅÏ¢
×î½ü×ö¸öÏîÄ¿£¬¾ÍÊÇҪȡµÃcpuÕ¼ÓÐÂʵȵȵÄϵͳÐÅÏ¢£¬Ò»¿ªÊ¼ÒÔΪҪÓö¯Ì¬Á´½Ó¿âÁË£¬µ«ºóÀ´·¢ÏÖ¿ÉÒÔÏñÏÂÃæÕâÑù×ö£¬²»È¥µ÷ÓÃjni£¬ÕâÑùÊ¡È¥Á˺ܶ࿴м¼ÊõµÄʱ¼äo(∩_∩)o...
ÔÚJavaÖУ¬¿ÉÒÔ»ñµÃ×ܵÄÎïÀíÄڴ桢ʣÓàµÄÎïÀíÄÚ´æ¡¢ÒÑʹÓõÄÎïÀíÄÚ´æµÈÐÅÏ¢£¬ÏÂÃæÀý×Ó¿ÉÒÔÈ¡µÃÕâЩÐÅÏ¢£¬²¢ÇÒ»ñµÃÔÚWindowsϵÄÄÚ´æʹÓÃÂÊ¡£
Ê×Ïȱàдһ¸öMonitorInfoBeanÀ࣬ÓÃÀ´×°Ôؼà¿ØµÄһЩÐÅÏ¢£¬°üÀ¨ÎïÀíÄڴ桢ʣÓàµÄÎïÀíÄÚ´æ¡¢ÒÑʹÓõÄÎïÀíÄÚ´æ¡¢ÄÚ´æʹÓÃÂʵÈ×ֶΣ¬¸ÃÀàµÄ´úÂëÈçÏ£º
Java´úÂë
package com.amgkaka.performance;
/** */ /**
* ¼àÊÓÐÅÏ¢µÄJavaBeanÀà.
* @author amg
* @version 1.0
* Creation date: 2008-4-25 - ÉÏÎç10:37:00
*/
public class MonitorInfoBean {
/** */ /** ¿ÉʹÓÃÄÚ´æ. */
private long totalMemory;
/** */ /** Ê£ÓàÄÚ´æ. */
private long freeMemory;
/** */ /** ×î´ó¿ÉʹÓÃÄÚ´æ. */
private long maxMemory;
/** */ /** ²Ù×÷ϵͳ. */
private String osName;
/** */ /** ×ܵÄÎïÀíÄÚ´æ. */
private long totalMemorySize;
/** */ /** Ê£ÓàµÄÎïÀíÄÚ´æ. */
private long freePhysicalMemorySize;
/** */ /** ÒÑʹÓõÄÎïÀíÄÚ´æ. */&nb
Ïà¹ØÎĵµ£º
Javaѧϰ´ÓÈëÃŵ½¾«Í¨
Ò»¡¢ JDK (Java Development Kit)
JDKÊÇÕû¸öJavaµÄºËÐÄ£¬°üÀ¨ÁËJavaÔËÐл·¾³£¨Java Runtime Envirnment£©£¬Ò»¶ÑJava¹¤¾ßºÍJava»ù´¡µÄÀà¿â(rt.jar)¡£²»ÂÛʲôJavaÓ¦Ó÷þÎñÆ÷ʵÖʶ¼ÊÇÄÚÖÃÁËij¸ö°æ±¾µÄJDK¡£Òò´ËÕÆÎÕJDKÊÇѧºÃJavaµÄµÚÒ»²½¡£×îÖ÷Á÷µÄJ ......
javaÖÐÌṩÁËioÀà¿â£¬¿ÉÒÔÇáËɵÄÓÃjavaʵÏÖ¶ÔÎļþµÄ¸÷ÖÖ²Ù×÷¡£ÏÂÃæ¾ÍÀ´ËµÒ»ÏÂÈçºÎÓÃjavaÀ´ÊµÏÖÕâЩ²Ù×÷¡£
н¨Ä¿Â¼<%@ page contentType="text/html;charset=gb2312"%>
<%
//String URL = request.getRequestURI();
String filePath="C:\\²âÊÔ\\";
filePath=filePath.toString(); ......
Èí¼þ¿ª·¢Ö®Â·ÊdzäÂú¾£¼¬ÓëÌôս֮·,Ò²ÊdzäÂúÏ£Íû֮·¡£JavaѧϰҲÊÇÈç´Ë£¬Ã»Óнݾ¶¿É×ß¡£ÃÎÏëÏñ¡¶ÌìÁú°Ë²¿¡·ÖÐÐéÖñÒ»Ñù±»ÎÞÑÂ×Óõ®õ¹à¶¥¶øÇáËÉ»ñµÃÒ»¼××Ó¹¦Á¦£¬ÊǺܲ»ÏÖʵµÄ¡£Ã¿ÌìÑöÌì´ó½Ð"ÌìÉñ°¡£¬Çë´Í¸øÎÒÒ»±¾¿û»¨±¦µä°É"£¬Êâ²»Öª¼´Ê¹Äã»ñµÃÁË¿û»¨±¦µä£¬³ýÁËÊÜ×Ô¹¬ÆäÉíÖ®¿àÍ⣬ÄãÒ²²»Ò»¶¨³ÉµÃÁË"¶«·½² ......
-
½üÈÕÔÚ±à³ÌÖÐÓõ½½Ó¿Ú֪ʶ,ÓÉÓڿα¾ÖжԽӿÚÃèÊö½ÏÉÙ,ËùÒÔÏë´ÓÍøÉϲéÕÒ×ÊÁÏ,µ«ÍøÉϵÄ×ÊÁÏ´ó¶àÒ²Ö»ÊÇÈß³¤µÄÃèÊö,ËùÒÔÔÚ´ËÌṩһ×Ô¼ºÐ´µÄʵÀý,¹©´ó¼Ò²Î¿¼:
ÔÌâÊÇÕâÑùµÄ£ºÔÚjavaÖУ¬¶¨ÒåÒ»¸ö½Ó¿Ú£¬ÉùÃ÷¼ÆË㳤·½ÐÎÃæ»ýºÍÖܳ¤µÄ³éÏó·½·¨£¬ÔÙÓÃÒ»¸öÀàȥʵÏÖÕâ¸ö½Ó¿Ú£¬ÔÙ±àдһ¸ö²âÊÔÀàȥʹÓÃÕâ¸ö½Ó¿Ú¡£
Ê×ÏÈ£¬½Ó¿Ú±ØÐ ......