现在的位置: 首页 > 综合 > 正文

安装SOATest时出现 “error occurred during initialization of vm”的解决办法

2017年12月20日 ⁄ 综合 ⁄ 共 965字 ⁄ 字号 评论关闭

问题出在内在分配上 

SOAPTest的官方文档说是系统的内存太大造成的,一般为3G,需要在启动时加一个参数控制一下JAVA使用的内存数。


This VM failure sometimes happens on machines with large amounts of memory, usually over 3 gigs.
To fix this, we will need to pass an argument to SOAPtest to change the amount of memory allocated to the JVM in which SOAPtest runs. You will need to find out how much memory is available on the machine you are working on. Then to fix this you can do the
following:

1) Right click on the SOAPtest shortcut icon you are using to run SOAPtest and select Properties.
2) In the Target field append the flag: -J-XmxMEMORY_TO_ALLOCATEm (where MEMORY_TO_ALLOCATE represents the amount of memory to allocate to the JVM in megabytes). Start out with half the size of the amount of memory
your machine has. If problems still persist, try lowering the amount to a smaller number . So the Target field should look something like:

"C:\Program Files\ParaSoft\SOAPtest\3.0\st.exe" -J-XmxMEMORY_TO_ALLOCATEm



所以举个例子,我们在cmd中输入如下命令行(st.exe的地址需要自己改下):

“C:\Program Files\Parasoft\SOAPtest\4.0\st.exe”
-J-Xmx512m

或者

“C:\Program Files\Parasoft\SOAPtest\4.0\st.exe”
-J-Xmx1024m

抱歉!评论已关闭.