帮助更改 OSX Eclipse Java 堆分配
我需要增加堆分配,但我认为我错过了一个步骤,我按照此说明进行操作 http://wiki .eclipse.org/Eclipse.ini 但 ini 文件与我的不同,这就是我得到的
-startup
../../../plugins/org.eclipse.equinox.launcher_1.1.1.R36x_v20101122_1400.jar
--launcher.library
../../../plugins/org.eclipse.equinox.launcher.cocoa.macosx_1.1.2.R36x_v20101019_1345
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-product
org.eclipse.epp.package.java.product
--launcher.defaultAction
openFile
-vmargs
-Xdock:icon=../Resources/Eclipse.icns
-XstartOnFirstThread
-Dorg.eclipse.swt.internal.carbon.smallFonts
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx1536m
-XstartOnFirstThread
-Dorg.eclipse.swt.internal.carbon.smallFonts
-XX:MaxPermSize=256m
我更改行 -Xmx1536m 但仍然遇到内存不足问题,有什么想法吗还有我需要设置吗?我有最新的 64 位 Eclipse IDE 并在 OSX 10.6.7 上运行
谢谢
I need to increase the heap allocation but I think I am missing a step, I follow this instructions http://wiki.eclipse.org/Eclipse.ini but the ini file is different from mine, this is what I get
-startup
../../../plugins/org.eclipse.equinox.launcher_1.1.1.R36x_v20101122_1400.jar
--launcher.library
../../../plugins/org.eclipse.equinox.launcher.cocoa.macosx_1.1.2.R36x_v20101019_1345
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-product
org.eclipse.epp.package.java.product
--launcher.defaultAction
openFile
-vmargs
-Xdock:icon=../Resources/Eclipse.icns
-XstartOnFirstThread
-Dorg.eclipse.swt.internal.carbon.smallFonts
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx1536m
-XstartOnFirstThread
-Dorg.eclipse.swt.internal.carbon.smallFonts
-XX:MaxPermSize=256m
I change line -Xmx1536m but still get the out of memory problem, any ideas what else I need to setup? I have the latest 64bit Eclipse IDE and running on OSX 10.6.7
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
在您的评论中,您澄清了您正在尝试增加在 Eclipse 中运行的应用程序的内存。您一直在尝试增加 Eclipse 本身的内存。要将在 Eclipse 中运行的应用程序的内存增加到 1536m,请按照下列步骤操作:
-Xmx1536m
添加到您的 VM 参数In your comments you clarified that you're trying to increase the memory for an application you're running in Eclipse. What you've been trying increases the memory for Eclipse itself. To increase the memory for an application you're running in Eclipse to 1536m follow these steps:
-Xmx1536m
to the your VM arguments可以直接在eclipse中增加JVM分配的堆大小在eclipse IDE中转到
Enter
(用于设置最大大小,如Xmx256m或Xmx1g……m-->mb g--->国标)
It is possible to increase heap size allocated by the JVM in eclipse directly In eclipse IDE goto
Enter
(It is used to set the max size like Xmx256m or Xmx1g...... m-->mb g--->gb)