情况描述:今天下载了KETTLE 绿色版,测试了JAVA -VERSION正常,双击Spoon.bat后弹出下面错误。
错误提示:Could not create the java virtual machine
SpoonDebug.txt错误信息:
DEBUG: Using JAVA_HOME
DEBUG: _PENTAHO_JAVA_HOME=C:\Program Files (x86)\Java\jdk1.6.0_02
DEBUG: _PENTAHO_JAVA=C:\Program Files (x86)\Java\jdk1.6.0_02\bin\java.exe
G:\data-integration>"C:\Program Files (x86)\Java\jdk1.6.0_02\bin\java.exe" "-Xms1024m" "-Xmx2048m" "-XX:MaxPermSize=256m" "-Dhttps.protocols=TLSv1,TLSv1.1,TLSv1.2" "-Djava.library.path=libswt\win32" "-DKETTLE_HOME=" "-DKETTLE_REPOSITORY=" "-DKETTLE_USER=" "-DKETTLE_PASSWORD=" "-DKETTLE_PLUGIN_PACKAGES=" "-DKETTLE_LOG_SIZE_LIMIT=" "-DKETTLE_JNDI_ROOT=" -jar launcher\pentaho-application-launcher-6.0.1.0-386.jar -lib ..\libswt\win32 /level:Debug
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.
错误原因:
程序启动设置的内存,大于物理机的内存,修改Spoon.bat文件设置就可以正常启动啦!
解决办法:
打开Spoon.bat内存配置:
if "%PENTAHO_DI_JAVA_OPTIONS%"=="" set PENTAHO_DI_JAVA_OPTIONS="-Xms1024m" "-Xmx2048m" "-XX:MaxPermSize=256m"
改为
if "%PENTAHO_DI_JAVA_OPTIONS%"=="" set PENTAHO_DI_JAVA_OPTIONS="-Xms 512m" "-Xmx512m" "-XX:MaxPermSize=256m"