内存泄漏 - eclipse新建static web project,使用中一直提示GC overhead limit exceeded
黄舟
黄舟 2017-04-24 09:11:25
0
2
590

我用eclipse新建了一个static web project,在使用过程中一直提示GC overhead limit exceeded,
我在百度也找了一些办法,比如不选择build automaticly,去掉不需要的validation,在eclipse的eclipse.ini中的-Xms和-Xmx设置大,将permsize也设置大,观察了一下,发现还是不断的在吞噬内存。

我觉的很奇怪,只不过是静态页面,为什么eclipse会不断的去做gc,又不需要编译java代码。

黄舟
黄舟

人生最曼妙的风景,竟是内心的淡定与从容!

reply all (2)
左手右手慢动作

Looking at the error message, it seems that the background indexing task is eating up your memory. Try to see if you can disable indexing.
It’s best to post the eclipse.ini you last used.
The eternal generation does not need to be set too large.

Modify your MaxPermSize setting and increase the maximum memory.

-startup plugins/org.eclipse.equinox.launcher_1.3.100.v20150511-1540.jar --launcher.library plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.300.v20150602-1417 -product org.eclipse.epp.package.jee.product --launcher.defaultAction openFile -showsplash org.eclipse.platform --launcher.XXMaxPermSize 256m --launcher.defaultAction openFile --launcher.appendVmargs -vmargs -Dosgi.requiredJavaVersion=1.7 -Xms512m -Xmx2048m
    阿神

    Hello, this is my eclipse.ini

    -startup plugins/org.eclipse.equinox.launcher_1.3.100.v20150511-1540.jar --launcher.library plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.300.v20150602-1417 -product org.eclipse.epp.package.jee.product --launcher.defaultAction openFile --launcher.XXMaxPermSize 1024M -showsplash org.eclipse.platform --launcher.XXMaxPermSize 1024m --launcher.defaultAction openFile --launcher.appendVmargs -vmargs -Dosgi.requiredJavaVersion=1.7 -Xms1024m -Xmx1600m -XX:NewSize=256m -XX:MaxNewSize=256m
      Latest Downloads
      More>
      Web Effects
      Website Source Code
      Website Materials
      Front End Template
      About us Disclaimer Sitemap
      php.cn:Public welfare online PHP training,Help PHP learners grow quickly!