開源俱樂部

          開源框架
            BlogJava :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理

          eclipse增加內存

          Posted on 2006-12-26 12:42 HandSoft 閱讀(1483) 評論(0)  編輯  收藏 所屬分類: 開源學習

          By default, Eclipse will allocate up to 256 megabytes of Java heap memory. This should be ample for all typical development tasks. However, depending on the JRE that you are running, the number of additional plug-ins you are using, and the number of files you will be working with, you could conceivably have to increase this amount. Eclipse allows you to pass arguments directly to the Java VM using the -vmargs command line argument, which must follow all other Eclipse specific arguments. Thus, to increase the available heap memory, you would typically use:

          eclipse -vmargs -Xmx<memory size>

          with the <memory size> value set to greater than "256M" (256 megabytes -- the default).

          When using a Sun VM, you may also need to increase the size of the permanent generation memory. The default maximum is 64 megabytes, but more may be needed depending on your plug-in configuration and use. The maximum permanent generation size is increased using the -XX:MaxPermSize=<memory size> argument:

          eclipse -vmargs -XX:MaxPermSize=<memory size>

          This argument may not be available for all VM versions and platforms; consult your VM documentation for more details.

          Note that setting memory sizes to be larger than the amount of available physical memory on your machine will cause Java to "thrash" as it copies objects back and forth to virtual memory, which will severely degrade your performance.

          在eclipse安裝根目錄下,用此命令:??? eclipse.exe -vmargs -Xms256M -Xmx512M

          主站蜘蛛池模板: 龙门县| 郸城县| 酉阳| 广汉市| 新龙县| 康平县| 二手房| 洛宁县| 安国市| 伊春市| 民权县| 武陟县| 永城市| 桑植县| 县级市| 宁陕县| 马山县| 上高县| 黎川县| 三门峡市| 当涂县| 怀来县| 平遥县| 武胜县| 衡阳市| 汾西县| 始兴县| 运城市| 宣汉县| 敖汉旗| 绥德县| 辽阳市| 临武县| 安宁市| 灵寿县| 渝北区| 广河县| 石家庄市| 河间市| 勃利县| 谷城县|