代码之家  ›  专栏  ›  技术社区  ›  Borek Bernard

如何将Eclipse设置为使用尽可能多的RAM运行?[副本]

  •  0
  • Borek Bernard  · 技术社区  · 16 年前


    Is there a maximum number you can set Xmx to when trying to increase jvm memory?

    在使用8GB物理RAM的x64 Windows上,我希望提高Flash Builder(构建在Eclipse之上的IDE)的性能。这通常是通过向eclipse添加类似的内容来实现的。ini:

    -Xmx1024m
    

    我想使用4096之类的东西,因为我的机器有足够的RAM,但当我这样做时,Eclipse不会以以下错误消息开始:

    JVM terminated. Exit code=-1
    

    我需要设置其他启动选项吗?Eclipse能够用这么多内存运行吗?

    1 回复  |  直到 9 年前
        1
  •  0
  •   BernardMarx    16 年前

    您是否正在运行32位Sun(Oracle)JVM?如果是这样,则不能将xmx设置为高于2GB。