如何增加intellij 32bit xmx超过1GB? [英] How to increase intellij 32bit xmx more than 1GB?

查看:473
本文介绍了如何增加intellij 32bit xmx超过1GB?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在32位Windows XP上使用32位Intellij,内存为4 GB。

我试图将intellij xmx增加到1.5GB: -Xmx1500m


所以我知道JVM支持1.5 32位系统中的GB RAM。


但是这个错误从JVM抛出:

I am using 32bit Intellij on my 32bit windows XP with 4 GB of RAM.
I am attempting to increase intellij xmx to 1.5GB : -Xmx1500m
So I know JVM support 1.5GB of RAM in 32bit systems.
But this error throws from JVM :

The JVM could not be started. The maximum heap size (-Xmx) might be too large ...

我无法增加intellij Xmx超过900MB


请帮助我!

I can't increase intellij Xmx more than 900MB
Please help me!

推荐答案

你不能这样做因为JVM需要在一个连续的块中分配所有堆,这可能因内存碎片而无法实现。 查看我的常见问题解答文章了解更多详情。

You can't do it as JVM needs to allocate all the heap in a single continuous chunk, which may not be possible because of the memory fragmentation. See my FAQ article for more details.

参见这张图片:

正如您所注意到的,总进程内存不仅仅是堆大小,因此更容易达到2GB操作系统限制。

As you can notice, total process memory is not just the heap size, making it much easier to hit the 2GB OS limit.

可以使用的实际堆在操作系统配置和正在运行的其他应用程序(带有挂钩的DLL注入进程空间并导致其他碎片)方面有所不同。通常它介于512M和1G之间,但在干净的系统上可以更高。

The actual heap that can be used varies on the OS configuration and on other applications that are running (DLLs with hooks inject into process space and cause additional fragmentation). Usually it's somewhere between 512M and 1G, but can be higher on a clean system.

这篇关于如何增加intellij 32bit xmx超过1GB?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆