Eclipse中Xmx和Xms的最大值?

发布于 2024-10-05 17:41:56 字数 137 浏览 0 评论 0原文

我在 eclipse.ini 中对这些值的设置是:

-Xms768M
-Xmx1024M

当将它们设置得更高时,Eclipse 将不再启动。有没有办法在 Eclipse 不崩溃的情况下增加这些值?

My settings for these values in eclipse.ini are:

-Xms768M
-Xmx1024M

When setting them higher, Eclipse doesn't start anymore. Is there a way to increase these values without Eclipse crashing?

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

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

发布评论

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

评论(4

菊凝晚露 2024-10-12 17:43:27

我已经尝试了 eclipse.ini 的以下配置:

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.6
-Xms128m
-Xmx2048m

现在 eclipse 性能比以前快了大约 2 倍。

您还可以在这里找到一个很好的帮助参考:http://help.eclipse.org/indigo/index.jsp?topic=/org.eclipse.platform.doc.isv/reference/misc/runtime-options.html

I have tried the following config for eclipse.ini:

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.6
-Xms128m
-Xmx2048m

Now eclipse performance is about 2 times faster then before.

You can also find a good help ref here: http://help.eclipse.org/indigo/index.jsp?topic=/org.eclipse.platform.doc.isv/reference/misc/runtime-options.html

上课铃就是安魂曲 2024-10-12 17:43:18

为什么需要-Xms768(小堆必须至少为768...)?

这意味着任何 java 进程(在 eclipse 中搜索)都会以分配的 768m 内存启动,不是吗?这就是为什么你的日食无法正常启动的原因。

例如,尝试 -Xms16 -Xmx2048m。

Why do you need -Xms768 (small heap must be at least 768...)?

That means any java process (search in eclipse) will start with 768m memory allocated, doesn't that? That is why your eclipse isn't able to start properly.

Try -Xms16 -Xmx2048m, for instance.

野生奥特曼 2024-10-12 17:43:06

我猜你正在使用 32 位 Eclipse 和 32 位 JVM。它不允许堆大小超过您指定的大小。

使用带有 64 位 JVM 的 64 位 Eclipse 可以帮助您以更大的内存启动 eclipse。 (我从 -Xms1024m -Xmx4000m 开始)

I am guessing you are using a 32 bit eclipse with 32 bit JVM. It wont allow heapsize above what you have specified.

Using a 64-bit Eclipse with a 64-bit JVM helps you to start up eclipse with much larger memory. (I am starting with -Xms1024m -Xmx4000m)

请持续率性 2024-10-12 17:42:57

最大值不取决于 Eclipse,它取决于您的操作系统(显然还取决于可用的物理内存)。

您可能想看看这个问题: Max Windows 中每个 java 进程的内存量?

The maximum values do not depend on Eclipse, it depends on your OS (and obviously on the physical memory available).

You may want to take a look at this question: Max amount of memory per java process in Windows?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文