如何给eclipse更多的内存比512M? [英] How can I give eclipse more memory than 512M?

查看:149
本文介绍了如何给eclipse更多的内存比512M?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有以下设置,但是当我把1024和1024全部替换为1024时,eclipse将不会启动。我的eclipse JVM可以有超过512M的内存吗?

I have following setup, but when I put 1024 and replace all 512 with 1024, then eclipse won't start at all. How can I have more than 512M memory for my eclipse JVM?

-startup
plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519
-product
com.springsource.sts.ide
--launcher.XXMaxPermSize
512M
-vm
C:\Program Files (x86)\Java\jdk1.6.0_18\bin\javaw 
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms512m
-Xmx512m
-XX:MaxPermSize=512m


推荐答案

我遇到了很多问题,试图让Eclipse接受尽可能多的内存我希望它能够使用(例如2到4个演出)。

I've had a lot of problems trying to get Eclipse to accept as much memory as I'd like it to be able to use (between 2 and 4 gigs for example).

打开 eclipse.ini 在Eclipse安装目录中。
您应该可以在 -vmargs 之后更改内存大小,最多为1024个,但没有问题,最大值取决于你的系统。这是我的Linux盒子上的那部分:

Open eclipse.ini in the Eclipse installation directory. You should be able to change the memory sizes after -vmargs up to 1024 without a problem up to some maximum value that's dependent on your system. Here's that section on my Linux box:

-vmargs
-Dosgi.requiredJavaVersion=1.5
-XX:MaxPermSize=512m
-Xms512m
-Xmx1024m

这里是我的Windows框:

And here's that section on my Windows box:

-vmargs
-Xms256m
-Xmx1024m

但是,我没有设置高于1024兆的。如果有人知道如何做这个工作,我很想知道。

But, I've failed at setting it higher than 1024 megs. If anybody knows how to make that work, I'd love to know.

编辑:32位版本的juno似乎不接受Xmx1024m,64位版本接受2048。

EDIT: 32bit version of juno seems to not accept more than Xmx1024m where the 64 bit version accept 2048.

编辑:Nick的帖子包含一些很棒的链接,可以解释两个不同的东西:

EDIT: Nick's post contains some great links that explain two different things:


  • 问题在于很大程度上取决于您的系统和可用的连续可用内存量,

  • 通过使用javaw.exe(在Windows上),您可能可以获得更大的分配的内存块。

  • The problem is largely dependent on your system and the amount of contiguous free memory available, and
  • By using javaw.exe (on Windows), you may be able to get a larger allocated block of memory.

I有8个演出的Ram,并且不能将 -Xmx 设置为超过1024 megs的ram,即使最少的程序加载,并且Windows / linux在4之间报告和5公斤的免费公羊。

I have 8 gigs of Ram and can't set -Xmx to more than 1024 megs of ram, even when a minimal amount of programs are loaded and both windows/linux report between 4 and 5 gigs of free ram.

这篇关于如何给eclipse更多的内存比512M?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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