Xiaobo Sun

          Eclipse-Unix http://umlfact.berlios.de/~s_xsun/

          OutOfMemoryError

          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 on 2007-12-19 11:29 Xiaobo Sun 閱讀(274) 評論(0)  編輯  收藏 所屬分類: Java

          <2007年12月>
          2526272829301
          2345678
          9101112131415
          16171819202122
          23242526272829
          303112345

          導航

          統計

          常用鏈接

          留言簿(3)

          隨筆分類

          隨筆檔案

          搜索

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 长岛县| 鹰潭市| 公安县| 和顺县| 宁国市| 呈贡县| 杭锦旗| 周至县| 行唐县| 宿松县| 梁平县| 九龙城区| 新干县| 松溪县| 钟山县| 叙永县| 兴义市| 娄烦县| 杭锦旗| 鄂托克前旗| 巴林左旗| 西平县| 嵊泗县| 本溪市| 海淀区| 开阳县| 文登市| 明光市| 奇台县| 丹棱县| 依兰县| 清原| 广丰县| 托克逊县| 渭南市| 陈巴尔虎旗| 镇安县| 和林格尔县| 佛冈县| 交口县| 广水市|