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 閱讀(273) 評論(0)  編輯  收藏 所屬分類: Java

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

          導航

          統計

          常用鏈接

          留言簿(3)

          隨筆分類

          隨筆檔案

          搜索

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 桐柏县| 桐乡市| 德安县| 苏州市| 大新县| 鄂州市| 曲沃县| 小金县| 天长市| 张掖市| 和龙市| 奎屯市| 保亭| 柯坪县| 威宁| 韶山市| 雅安市| 长垣县| 扬中市| 乳源| 玉溪市| 东莞市| 临清市| 邵武市| 阿克陶县| 米泉市| 三门峡市| 光泽县| 年辖:市辖区| 牙克石市| 汉中市| 武穴市| 麦盖提县| 兰西县| 山东省| 贡觉县| 石家庄市| 南阳市| 淮滨县| 天全县| 云龙县|