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

          常用鏈接

          留言簿

          隨筆分類

          隨筆檔案

          文章檔案

          搜索

          •  

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 同仁县| 万宁市| 泰宁县| 肇源县| 信丰县| 名山县| 安平县| 台前县| 钦州市| 类乌齐县| 公主岭市| 郸城县| 康定县| 昌宁县| 上林县| 通许县| 常德市| 肥城市| 建始县| 光泽县| 桦南县| 安西县| 周口市| 沅江市| 闻喜县| 光泽县| 莫力| 邵阳县| 格尔木市| 沙洋县| 杨浦区| 修文县| 甘南县| 琼海市| 沧源| 柳河县| 新泰市| 焦作市| 祁东县| 花莲县| 牙克石市|