2

我有带有 3Giga Ram 内存的虚拟机。我正在 Loadrunner 上使用 Java 协议。我正在尝试将附加 VM 参数设置为超过 256M,但总是出现此错误。我试过 :-Xms512 -Xmx512 没有成功。请尽快回复 - 我在过去 2 天里一直被这个问题困扰。

谢谢..(我正在使用 jdk 1.6.0,一旦尝试运行流程,我就有 2000MB 的可用内存)

通知:发现 jdk 版本:1.6.0。通知:classpath=D:\seamlessServerPerfTest\SSCallAV\;c:\program files\hp\loadrunner\classes\srv;c:\program files\hp\loadrunner\classes;D:\seamlessServerPerfTest\lib\SSCallAV_8leg.jar;D :\seamlessServerPerfTest\lib\json-lib-2.4-jdk15.jar;D:\seamlessServerPerfTest\lib\todejolt.jar;D:\seamlessServerPerfTest\lib\protobuf-java-2.4.1.jar;D:\jython2.5.2 \Lib\site-packages\trilead-ssh2-build213.jar;D:\jython2.5.2\Lib\site-packages\amessagehandler.jar;D:\jython2.5.2\Lib\site-packages\dblibrary-1.0.jar ;D:\jython2.5.2\Lib\site-packages\jolt.jar;D:\jython2.5.2\Lib\site-packages\ojdbc14.jar;D:\postgreSql\postgresql-9.1-901.jdbc4.jar; ;; 通知:路径=C:\Program Files\Java\jdk1.6.0_12\jre\bin\client;C:\PROGRA~1\HP\LOADRU~1\bin;C:\PROGRA~1\HP\LOADRU~1 \bin\tulip\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;D: 通知:VM 参数:-Xms512m -Xmx512m。通知:VM 初始化期间发生错误通知:无法为对象堆保留足够的空间

4

4 回答 4

2

So, just for clarity...you are engaging in double virtualization. You have a JAVA Virtual machine on top of an OS virtual machine so any call for resources has to thunk through two layers of arbitration before it gets to a physical resource like RAM or CPU, right?

So, have you tried this on a host with only a single layer of arbitration, such as Windows workstation ( for less than 2GB allotments) or Windows server instance (for greater than 2GB allotments) not running inside of a virtual machine? I am trying to remove complexity and moving parts to get to the simplest model which demonstrates the error to elinate the possibility that one of the complexities is the cause.

If you could share some of the end goal this might be helpful as well. Are you experiencing errors related to memory on your virtual users which are driving you to mod the default parameters for the JAVA virtual user machine execution?

于 2013-01-22T15:47:29.100 回答
2

真的可能是这样。JVM 可能真的无法保留所需的内存。

如果可行,您可以尝试以下方法

首先,运行java -XX:MaxHeapSize=512m Test1. 然后运行java -Xms512m - Xmx512m Test1

于 2013-01-22T04:07:45.067 回答
0

金星

我可以知道您是否使用“Executable\Batch”选项开始记录吗?如果是,请尝试从批处理文件中删除分配堆命令“-Xms512m -Xmx512m”并记录。希望能帮助到你。

于 2013-09-23T09:04:21.187 回答
0

Your jvm virtual machine ask too much memory in your computer, you could check out wheather your computer memory is enough.

Solution: In gradle.properties file, change org.gradle.jvmargs=-Xmx2048m into org.gradle.jvmargs=-Xmx1024m or less.

enter image description here

于 2017-09-14T07:35:44.857 回答