0

我在 Eclipse 中使用 IBM 理性性能测试器,并在 Eclipse 中的windows>preferences>general中设置了“显示堆状态” 。但是当我运行我的应用程序/性能测试时,它显示 java 堆空间错误。

我的 eclipse.ini 是:

-vm

C:\Program Files\IBM\SDP\jdk\jre\bin\javaw.exe

-startup

plugins/org.eclipse.equinox.launcher_1.1.1.R36x_v20101122_1400.jar

-install

C:\Program Files\IBM\SDP

--launcher.library

plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.2.R36x_v20101222

-vmargs=-Xmx1500m

-Xquickstart

-Xms40m

-Xgcpolicy:gencon

-Xscmx48m

-Xshareclasses:name=IBMSDP_%u

-Xmx1947m

-Xjit:disableValueProfiling

但是当我在eclipse的状态栏中检查堆状态时如下图所示:

在此处输入图像描述

它显示“<strong>ma​​x:512M”,但在 eclipse.ini 中我已将其设置为“-Xmx1947m ”,如上面的 eclipse 文件所示。

谁能告诉我为什么当我将它设置为1947 M 时它在 Eclipse 的堆状态栏中显示max:512M

4

1 回答 1

1

-vmargs=-Xmx1500m不是 eclipse.ini 中的有效条目。

-vmargs必须单独在一条线上,否则将无法识别。由于该-vmargs行不正确,所有 VM 参数都将被忽略。

于 2016-04-22T14:29:11.413 回答