Step 2: Modify the JBoss startup script
The JBoss startup script must be modified to include the JAVA_OPTS variable.
JAVA_OPTS indicates the amount of memory to allocate. It also indicates where Pentaho licenses are installed. Specific instructions on how to modify the startup script depend on your operating system.
Perform the following steps to modify the JBoss startup script:
Make sure the JBoss web application server is not running. Open a Terminal window and type
ps -Aat the prompt.If the server is running, stop it.
Use a text editor to open the
standalone.conffile, which is in thebinsubdirectory of your JBoss home directory.Modify the Xms memory settings in the JAVA_OPTS line to be at least 4096 MB.
If you have the resources and are concerned with performance, change the Xmx value to at least 6144 MB.
Add the following options to the JAVA_OPTS line:
-Djava.awt.headless=true -Djava.io.tmpdir=/tmp/ -Dpentaho.installed.licenses.file=$PENTAHO_INSTALLED_LICENSE_PATHSpecify the option to pass to the Java VM, as shown below.
# Specify options to pass to the Java VM. if [ "x$JAVA_OPTS" = "x" ]; then JAVA_OPTS="-Xms4096m \ -Xmx6144m \ -XX:MaxPermSize=256m \ -DDI_HOME=$DI_HOME -Dsun.rmi.dgc.client.gcInterval=3600000 \ -Dsun.rmi.dgc.server.gcInterval=3600000 \ -Djava.awt.headless=true \ -Djava.io.tmpdir=/tmp/ \ -Dpentaho.installed.licenses.file=$PENTAHO_INSTALLED_LICENSE_PATHNote: You may need to adjust these settings for your environment. For instance, if you do not have a
/tmp/directory, you may want to change that setting to/var/tmp/or some other location.Save and close the file.
Locate the
binsubdirectory in the JBoss home directory and open thestandalone.shfile with a text editor.Find the section for # Setup JBOSS_HOME and add this after it.
INSTALL_HOME==`cd "$DIRNAME/../.."; pwd` DI_HOME=$INSTALL_HOME/pentaho-solutions/system/kettleSave and close the file.
Last updated

