zhyiwww
          用平實的筆,記錄編程路上的點點滴滴………
          posts - 536,comments - 394,trackbacks - 0
          The heap is the area in memory in which objects are created.
          ??? ??? ??? ???
          ??? ??? ??? ??? ??? ???
          // Get current size of heap in bytes
          ??? long heapSize = Runtime.getRuntime().totalMemory();
          ???
          ??? // Get maximum size of heap in bytes. The heap cannot grow beyond this size.
          ??? // Any attempt will result in an OutOfMemoryException.
          ??? long heapMaxSize = Runtime.getRuntime().maxMemory();
          ???
          ??? // Get amount of free memory within the heap in bytes. This size will increase
          ??? // after garbage collection and decrease as new objects are created.
          ??? long heapFreeSize = Runtime.getRuntime().freeMemory();
          ??? ??? ??? ???
          ??? ??? ??? ???


          |----------------------------------------------------------------------------------------|
                                     版權聲明  版權所有 @zhyiwww
                      引用請注明來源 http://www.aygfsteel.com/zhyiwww   
          |----------------------------------------------------------------------------------------|
          posted on 2006-06-13 13:10 zhyiwww 閱讀(467) 評論(0)  編輯  收藏 所屬分類: code demo -java
          主站蜘蛛池模板: 牡丹江市| 文水县| 浦城县| 城步| 靖边县| 烟台市| 邻水| 辉南县| 当阳市| 镇原县| 五峰| 赤城县| 辽阳县| 苏尼特左旗| 清徐县| 汽车| 拜泉县| 开鲁县| 塔城市| 永善县| 中牟县| 高唐县| 乌拉特后旗| 深州市| 祁阳县| 鄂托克旗| 遂溪县| 扬州市| 威信县| 行唐县| 开平市| 琼结县| 溧水县| 武威市| 翁牛特旗| 贵阳市| 库尔勒市| 安吉县| 滕州市| 古丈县| 利川市|