[SoapUI]The maximum heap size (-Xmx) might be too large

问题描述:

启动SoapUI-5.0.0时报错,导致程序启动失败:

The JVM could not be started. The maximum heap size (-Xmx) might be too large or an antivirus or firewall tool could block the execution.

 

问题分析:

从这个报错来看,可以确定是启动参数(-Xmx)配置过大,超过了系统最大可用资源

 

解决方式:

修改SoapUI-5.0.0的配置文件

在SoapUI-5.0.0安装路径的bin目录下,有一个SoapUI-5.0.0.vmoptions文件

-Xms128m
-Xmx1000m
-Dsoapui.properties=soapui.properties
-Dsoapui.home=C:\sean_app\SoapUI-5.0.0/bin
-Dsoapui.ext.libraries=C:\sean_app\SoapUI-5.0.0/bin/ext
-Dsoapui.ext.listeners=C:\sean_app\SoapUI-5.0.0/bin/listeners
-Dsoapui.ext.actions=C:\sean_app\SoapUI-5.0.0/bin/actions
-Dwsi.dir=C:\sean_app\SoapUI-5.0.0/wsi-test-tools
-Djava.library.path=C:\sean_app\SoapUI-5.0.0/bin
-Djava.util.Arrays.useLegacyMergeSort=true
-splash:soapui-splash.png

将-Xmx的值改小,直到SoapUI-5.0.0可以正常启动

你可能感兴趣的:(SOAPUI)