国产成人精品亚洲777人妖,欧美日韩精品一区视频,最新亚洲国产,国产乱码精品一区二区亚洲

您的位置:首頁技術(shù)文章
文章詳情頁

內(nèi)存泄漏 - eclipse新建static web project,使用中一直提示GC overhead limit exceeded

瀏覽:86日期:2024-04-03 17:01:48

問題描述

我用eclipse新建了一個static web project,在使用過程中一直提示GC overhead limit exceeded,我在百度也找了一些辦法,比如不選擇build automaticly,去掉不需要的validation,在eclipse的eclipse.ini中的-Xms和-Xmx設(shè)置大,將permsize也設(shè)置大,觀察了一下,發(fā)現(xiàn)還是不斷的在吞噬內(nèi)存。

我覺的很奇怪,只不過是靜態(tài)頁面,為什么eclipse會不斷的去做gc,又不需要編譯java代碼。

內(nèi)存泄漏 - eclipse新建static web project,使用中一直提示GC overhead limit exceeded

問題解答

回答1:

看錯誤提示,應(yīng)該是后臺索引任務(wù)吃掉你的內(nèi)存了,試試看看能不能禁用索引。 最好貼一下你最后使用的eclipse.ini永生代不需要設(shè)置的過大。

修改了你的MaxPermSize設(shè)置,并增大了最大內(nèi)存。

-startupplugins/org.eclipse.equinox.launcher_1.3.100.v20150511-1540.jar--launcher.libraryplugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.300.v20150602-1417-productorg.eclipse.epp.package.jee.product--launcher.defaultActionopenFile-showsplashorg.eclipse.platform--launcher.XXMaxPermSize256m--launcher.defaultActionopenFile--launcher.appendVmargs-vmargs-Dosgi.requiredJavaVersion=1.7-Xms512m-Xmx2048m回答2:

你好,這個是我的eclipse.ini

-startupplugins/org.eclipse.equinox.launcher_1.3.100.v20150511-1540.jar--launcher.libraryplugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.300.v20150602-1417-productorg.eclipse.epp.package.jee.product--launcher.defaultActionopenFile--launcher.XXMaxPermSize1024M-showsplashorg.eclipse.platform--launcher.XXMaxPermSize1024m--launcher.defaultActionopenFile--launcher.appendVmargs-vmargs-Dosgi.requiredJavaVersion=1.7-Xms1024m-Xmx1600m-XX:NewSize=256m-XX:MaxNewSize=256m

標(biāo)簽: web
主站蜘蛛池模板: 永州市| 东辽县| 平乐县| 宁津县| 稷山县| 阿城市| 潼南县| 巧家县| 大埔县| 闽侯县| 大方县| 上栗县| 天镇县| 浏阳市| 山丹县| 乐安县| 合江县| 蓝田县| 化州市| 南江县| 永年县| 社会| 永年县| 潞城市| 清远市| 永宁县| 仲巴县| 西充县| 犍为县| 瑞金市| 安康市| 南靖县| 富宁县| 防城港市| 偏关县| 五莲县| 咸阳市| 格尔木市| 嘉义市| 扎鲁特旗| 儋州市|