feiguo

都说eclipse比myeclipse小巧,但是 殊不知 用起来这么这么的卡,最后查资料,才知道是 配置给他的内存太 太小了,怪不得 他一直想着罢工呢。

在eclipse.ini文件中原来的配置如下:

-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.200.v20130521-0416
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.6
-Xms40m
-Xmx512m

修改后的配置如下:

-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.200.v20130521-0416
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.6
-Xms256m
-Xmx512m

明白其中的文件配置属性的意义,才能根据自己的需求配置好:

讲解下:

XXMaxPermSize:表示最大堆大小,当报内存不足时,就说明这个值设置的有些小了,根据自己的机子内存设置大小。一般堆空间不足5%时,就会警告
Xms256m:虚拟机占用系统的最小内存
Xmx512m:虚拟机占用系统的最大内存
还有一种设置,就是将自动补全的快捷键取消掉,注释取消掉。
那个具体步骤,网上有,不再续写。
 

分类:

技术点:

相关文章:

  • 2022-01-07
  • 2022-01-07
  • 2022-01-03
  • 2022-01-03
  • 2022-01-01
  • 2022-12-23
  • 2022-01-07
  • 2022-01-07
猜你喜欢
  • 2022-01-03
  • 2021-11-28
  • 2021-04-26
  • 2021-11-28
  • 2022-01-04
  • 2022-02-07
相关资源
相似解决方案