開源俱樂部

          開源框架

          eclipse增加內(nèi)存

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

          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

          主站蜘蛛池模板: 中超| 剑阁县| 宜章县| 烟台市| 贡山| 穆棱市| 邵阳市| 饶河县| 上杭县| 和田市| 延安市| 玛沁县| 岢岚县| 西乌珠穆沁旗| 彰化市| 岳池县| 禹城市| 崇礼县| 广汉市| 万荣县| 屏南县| 白朗县| 星子县| 开阳县| 湟中县| 利辛县| 常德市| 萨迦县| 志丹县| 桃园市| 五峰| 南开区| 曲水县| 色达县| 潞西市| 贵港市| 射阳县| 卓资县| 临沧市| 桂阳县| 武邑县|