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 on 2010-04-07 22:44 新蜂 閱讀(160) 評論(0)  編輯  收藏 所屬分類: 技術

          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
          <2010年4月>
          28293031123
          45678910
          11121314151617
          18192021222324
          2526272829301
          2345678

          常用鏈接

          留言簿

          隨筆分類

          隨筆檔案

          文章檔案

          搜索

          •  

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 和林格尔县| 莒南县| 陆丰市| 香河县| 九江县| 太原市| 汉川市| 内江市| 邹城市| 靖州| 金华市| 台前县| 钦州市| 合川市| 南宁市| 稻城县| 长寿区| 十堰市| 偃师市| 临海市| 阿勒泰市| 朝阳市| 三原县| 南靖县| 唐海县| 百色市| 繁峙县| 锦屏县| 扶余县| 梧州市| 凉城县| 会昌县| 永川市| 靖远县| 黔东| 界首市| 通江县| 阿克苏市| 牙克石市| 镇江市| 南陵县|