Eclipse这是怎么了?

wufei151 2013-09-06 03:54:54
Eclipse 莫名其妙就崩溃,报错:“Perm Gen Space"内存溢出。
在eclipse.ini设置了-XX:PermSize=256M -XX:MaxPermSize=256M
还是一样,


我使用jdk自带的jvisualvm工具查看PremSpace的大小
发现不管我怎么改变PremSize和MaxPermSize的值,PermSpace的最大内存始终是67M。
而我的eclipse一打开就会占用64M,后续稍微进行一点操作,就会崩溃,
麻烦谁给看看,这是怎么了?
...全文
173 13 打赏 收藏 举报
写回复
用AI写文章
13 条回复
切换为时间正序
请发表友善的回复…
发表回复
无聊找乐 2013-09-06
  • 打赏
  • 举报
回复
忽略上面的,贴这部分 --launcher.XXMaxPermSize 256M --launcher.defaultAction openFile -vmargs -Dosgi.requiredJavaVersion=1.5 -Dhelp.lucene.tokenizer=standard -Xms512m -Xmx512m
无聊找乐 2013-09-06
  • 打赏
  • 举报
回复
引用 10 楼 wufei151 的回复:
[quote=引用 8 楼 rainbowsix 的回复:] 你机器内存多少? eclipse 设置--launcher.XXMaxPermSize 就好了, 设 -XX:PermSize=512M 没什么意义。
内存8G[/quote] 把这些贴到你的文件里,如果不行你就下个最新版的eclipse吧,貌似你的版本比较老 --------------------------------------------- org.eclipse.platform --launcher.XXMaxPermSize 256M --launcher.defaultAction openFile -vmargs -Dosgi.requiredJavaVersion=1.5 -Dhelp.lucene.tokenizer=standard -Xms512m -Xmx512m
wufei151 2013-09-06
  • 打赏
  • 举报
回复
引用 9 楼 rainbowsix 的回复:
-startup plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar --launcher.library plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.200.v20120913-144807 -product org.eclipse.epp.package.jee.product --launcher.defaultAction openFile --launcher.XXMaxPermSize 256M -showsplash org.eclipse.platform --launcher.XXMaxPermSize 256m --launcher.defaultAction openFile -vmargs -Dosgi.requiredJavaVersion=1.5 -Dhelp.lucene.tokenizer=standard -Xms512m -Xmx512m 改成128 -startup plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar --launcher.library plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.200.v20120913-144807 -product org.eclipse.epp.package.jee.product --launcher.defaultAction openFile --launcher.XXMaxPermSize 256M -showsplash org.eclipse.platform --launcher.XXMaxPermSize 128m --launcher.defaultAction openFile -vmargs -Dosgi.requiredJavaVersion=1.5 -Dhelp.lucene.tokenizer=standard -Xms512m -Xmx512m
我这个怎么改eclipse.ini里面的设置,PermSpace的内存大小始终是67M
wufei151 2013-09-06
  • 打赏
  • 举报
回复
引用 8 楼 rainbowsix 的回复:
你机器内存多少? eclipse 设置--launcher.XXMaxPermSize 就好了, 设 -XX:PermSize=512M 没什么意义。
内存8G
无聊找乐 2013-09-06
  • 打赏
  • 举报
回复
-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.200.v20120913-144807
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Dhelp.lucene.tokenizer=standard
-Xms512m
-Xmx512m


改成128
-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.200.v20120913-144807
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
128m

--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Dhelp.lucene.tokenizer=standard
-Xms512m
-Xmx512m

无聊找乐 2013-09-06
  • 打赏
  • 举报
回复
你机器内存多少? eclipse 设置--launcher.XXMaxPermSize 就好了, 设 -XX:PermSize=512M 没什么意义。
wufei151 2013-09-06
  • 打赏
  • 举报
回复
引用 2 楼 wufei151 的回复:
引用 1 楼 yqstrive 的回复:
在配置文件设置不行 ,就启动eclipse,在工具里面直接设置。上次我也遇到同样的问题了。
怎么设置?
不管在eclipse.ini里面设置PermGen,PermGen Space的大小就是不变, 重新装了eclipse。也不行。,
wufei151 2013-09-06
  • 打赏
  • 举报
回复
引用 3 楼 rainbowsix 的回复:
设成 -XX:PermSize=512M -XX:MaxPermSize=512M
还是不行,
无聊找乐 2013-09-06
  • 打赏
  • 举报
回复
不好意思,看了下,eclipse·的参数有点不一样,把我的贴给你看看吧 -startup plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar --launcher.library plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.200.v20120913-144807 -product org.eclipse.epp.package.jee.product --launcher.defaultAction openFile --launcher.XXMaxPermSize 256M -showsplash org.eclipse.platform --launcher.XXMaxPermSize 256m --launcher.defaultAction openFile -vmargs -Dosgi.requiredJavaVersion=1.5 -Dhelp.lucene.tokenizer=standard -Xms512m -Xmx512m
无聊找乐 2013-09-06
  • 打赏
  • 举报
回复
如果你是在eclpse里跑tomcat崩溃就在 run configrations 里面设
无聊找乐 2013-09-06
  • 打赏
  • 举报
回复
设成 -XX:PermSize=512M -XX:MaxPermSize=512M
wufei151 2013-09-06
  • 打赏
  • 举报
回复
引用 1 楼 yqstrive 的回复:
在配置文件设置不行 ,就启动eclipse,在工具里面直接设置。上次我也遇到同样的问题了。
怎么设置?
浮缈 2013-09-06
  • 打赏
  • 举报
回复
在配置文件设置不行 ,就启动eclipse,在工具里面直接设置。上次我也遇到同样的问题了。

62,620

社区成员

发帖
与我相关
我的任务
社区描述
Java 2 Standard Edition
社区管理员
  • Java SE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧