还有人遇到过 Eclipse 3.4 with Flex Builder 由于 OOME 不断崩溃的情况吗?

发布于 2024-07-13 23:24:05 字数 538 浏览 7 评论 0原文

首先我应该说我对配置 Eclipse 内存设置非常熟悉。 我目前正在使用已发布配置之一的变体:

... --launcher.XXMaxPermSize 256米 -vmargs -Xms40米 -Xmx512米 -Xss2m -Djava.net.preferIPv4Stack=true -Dcom.sun.management.jmxremote

根据 JConsole 和内部堆监视器,Eclipse 永远不会耗尽堆。

它所做的就是不断地因 OOME 崩溃,比如每 30-50 分钟一次。 有时它告诉我有 OOME,有时它只是默默地关闭。 奇怪的是,一直运行的另一个 eclipse 实例(J2EE 版本)从未崩溃过一次,即使有更多的源文件。

有一次或两次崩溃后它变成了僵尸进程,我看到了它的内存占用量 - 大约 1.5gigs,远高于堆监视器所说的它正在使用的内存占用量。 那么,到底是怎么回事呢? 有东西漏吗? 我确实注意到活动线程的数量似乎不断增加。

有人遇到过这个问题并解决了吗?

I should first say that I'm pretty familiar with configuring Eclipses memory settings. I'm currently using a variant of one of the posted configurations:

...
--launcher.XXMaxPermSize
256m
-vmargs
-Xms40m
-Xmx512m
-Xss2m
-Djava.net.preferIPv4Stack=true
-Dcom.sun.management.jmxremote

And according to JConsole and the internal heap monitor, Eclipse never gets close to running out of heap.

What it DOES do is crash constantly with OOMEs, like every 30-50 minutes. Sometimes it tells me there was an OOME, other times it just closes silently. Strangely, the OTHER eclipse instance that is running all the time (the J2EE version) has never crashed once, even with a lot more source files.

There's been once or twice where it's been a zombie process after the crash and I got to see its memory footprint - around 1.5gigs, well above what the heap monitor said it was using. So, what's the deal? Something leaking? I do notice that the number of active threads appears to constantly go up.

Anyone had this problem and fixed it?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

薄凉少年不暖心 2024-07-20 23:24:05

根据 此站点,Eclipse/Flex Builder 的正确内存设置是

-Xms256m
-Xmx512m

:我用于 Eclipse 的内存设置似乎工作正常。 希望有帮助。

According to this site, the proper memory settings for Eclipse/Flex Builder is:

-Xms256m
-Xmx512m

Those are the mem settings I use for eclipse and it seems to work fine. Hope that helps.

掩饰不了的爱 2024-07-20 23:24:05

根据项目的大小和复杂性,您可能需要增加分配给 FlexBuilder 的内存。 您可以尝试使用不同的 JVM。 如果 Flexbuidler 无法启动,那么您可能给了它太多的内存。

这个问题没有圣杯,但分享我的 FlexBuilder.ini 可能会有所帮助:

-vm
C:\Program Files\Java\jdk1.6.0_20\bin\javaw.exe

-vmargs
-Xms1024m
-Xmx1224m
-XX:MaxPermSize=365m
-XX:PermSize=256m
-Djava.net.preferIPv4Stack=true

Depending on the size and complexity of the project you may have to raise the memory given to FlexBuilder. You may try using different JVM. In case Flexbuidler won't start up then you probably give it too much memory.

There is no holy grail for this problem, but sharing my FlexBuilder.ini may help some:

-vm
C:\Program Files\Java\jdk1.6.0_20\bin\javaw.exe

-vmargs
-Xms1024m
-Xmx1224m
-XX:MaxPermSize=365m
-XX:PermSize=256m
-Djava.net.preferIPv4Stack=true
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文