系统详细信息:
Windows 7 Professional
Processor :Intel Core i3
RAM: 3GB
System Type : 32 Bit Operating System.
PDI版本:
pdi-ce-6.0.0.0-353
执行的步骤:
1. Extracted the Zip File pdi-ce-6.0.0.0-353.zip into G:\ Drive
2. Created Environment Variable PENTAHO_JAVA_HOME and set value to C:\Program Files\Java\jdk1.7.0_79\jre
从cmd执行Spoon.bat时收到错误:
DEBUG: Using PENTAHO_JAVA_HOME
DEBUG: _PENTAHO_JAVA_HOME=C:\Program Files\Java\jdk1.7.0_79\jre
DEBUG: _PENTAHO_JAVA=C:\Program Files\Java\jdk1.7.0_79\jre\bin\javaw.exe
G:\Pentaho\pdi-ce-6.0.0.0-353\data-integration>start "Spoon" "C:\Program Files\Java\jdk1.7.0_79\jre\bin\javaw.exe" "-Xms1024m" "-Xmx256m" "-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.0.0-353.jar -lib ..\libswt\win32
DEBUG: Using PENTAHO_JAVA_HOME
DEBUG: _PENTAHO_JAVA_HOME=C:\Program Files\Java\jdk1.7.0_79\jre
DEBUG: _PENTAHO_JAVA=C:\Program Files\Java\jdk1.7.0_79\jre\bin\javaw.exe
G:\Pentaho\pdi-ce-6.0.0.0-353\data-integration>start "Spoon" "C:\Program Files\Java\jdk1.7.0_79\jre\bin\javaw.exe" "-Xms1024m" "-Xmx256m" "-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.0.0-353.jar -lib ..\libswt\win32
DEBUG: Using PENTAHO_JAVA_HOME
DEBUG: _PENTAHO_JAVA_HOME=C:\Program Files\Java\jdk1.7.0_79\jre
DEBUG: _PENTAHO_JAVA=C:\Program Files\Java\jdk1.7.0_79\jre\bin\javaw.exe
G:\Pentaho\pdi-ce-6.0.0.0-353\data-integration>start "Spoon" "C:\Program Files\Java\jdk1.7.0_79\jre\bin\javaw.exe" "-Xms1024m" "-Xmx256m" "-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.0.0-353.jar -lib ..\libswt\win32
答案 0 :(得分:4)
默认情况下,spoon.bat中的XMX参数值为2048M。没有启动Jre,所以早些时候我把它改成了256M。突然之间,我在spoon.bat文件中尝试更改 XMX参数值,从 XMX256m到Xmx1024m ,并且工作。不知道XMX代表的原因或逻辑,以及在数学上支持您的系统配置的价值。
答案 1 :(得分:1)
将xmx
参数从2048M
更改为1024M
, Pentaho 开始工作。
PENTAHO_DI_JAVA_OPTIONS="-Xms1024m" "-Xmx1024m" "-XX:MaxPermSize=256m"
确保更新Pentaho启动所需的环境变量。
PENTAHO_HOME
PENTAHO_JAVA_HOME
答案 2 :(得分:0)
右键单击并打开spoon.bat文件,根据系统配置,将以下字符串中的xmx值更改为较低的值 PENTAHO_DI_JAVA_OPTIONS =“-Xms1024m”“ -Xmx1024m”“ -XX:MaxPermSize = 256m”
重新启动pdi,这应该可以工作。