posts - 11,  comments - 4,  trackbacks - 0

          If Java runs out of memory, the following error occurs:

          Exception in thread "main" java.lang.OutOfMemoryError: Java heap space

          This can have two reasons:

          • Your Java application has a memory leak. There are tools like YourKit Java Profiler that help you to identify such leaks.
          • Your Java application really needs a lot of memory (more than 128 MB by default!). In this case the Java heap size can be increased using the following runtime parameters:
          java -Xms<initial heap size> -Xmx<maximum heap size>

          Defaults are:

          java -Xms32m -Xmx128m

          You can set this either in the Java Control Panel or on the command line, depending on the environment you run your application.

          posted @ 2010-04-07 22:44 新蜂 閱讀(160) | 評論 (0)編輯 收藏
          僅列出標題
          共2頁: 上一頁 1 2 
          <2025年6月>
          25262728293031
          1234567
          891011121314
          15161718192021
          22232425262728
          293012345

          常用鏈接

          留言簿

          隨筆分類

          隨筆檔案

          文章檔案

          搜索

          •  

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 太保市| 白沙| 商河县| 诏安县| 延长县| 嘉义县| 津市市| 泸州市| 杨浦区| 锡林浩特市| 亚东县| 漠河县| 万年县| 灯塔市| 和龙市| 富阳市| 九江市| 唐河县| 咸丰县| 景洪市| 游戏| 荃湾区| 呼图壁县| 东城区| 盘锦市| 武安市| 呈贡县| 三原县| 茶陵县| 南汇区| 韩城市| 东明县| 常州市| 麦盖提县| 博湖县| 汉寿县| 南开区| 台州市| 宣化县| 太仆寺旗| 剑阁县|