By default, Tomcat has a relatively low memory allotment. This can cause out-of-memory errors in the BA Server from time to time. To avoid errors, increase the memory allocation so you can start the BA Server automatically.
These instructions apply if you installed Pentaho Business Analytics using the graphical installer as opposed to manual installer and are Linux users.
- Go to /pentaho/server/biserver-ee/tomcat/bin/ directory and run the ./shutdown.sh command to stop the appropriate server.
- Change the directory to biserver-ee/tomcat/scripts.
- Edit the ctl.sh file.
- Locate the line under start tomcat, which looks like this:
export JAVA OPTS="-Dpentaho.installed.licenses.file=/opt/pentaho/.installedLicenses.xml -Xms128m Xmx768m -XX-MaxPermSize=256m -Dsun.rmi.dyc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000"
- Set the memory to a minimum of 4096 M and a maximum of 6144 M, depending on your computer's memory capabilities.
- Start the Tomcat server or service.