Increase Java Memory For Pentaho Data Integration
Pentaho runs inside a Java virtual machine, and hence is bound by the properties of that VM.
These optimisations can apply to just about any Java application, including the Pentaho BI Server and GUI tools.
Method to increase memory allocation:
Open the file spoon.sh or spoon.bat in a text editor
Look for a section that looks like this:
# ******************************************************************
# ** Set java runtime options **
# ** Change 256m to higher values in case you run out of memory. **
# ******************************************************************
OPT="-Xmx256m -cp $CLASSPATH -Djava.library.path=$LIBPATH -DKETTLE_HOME=$KETTLE_HOME -DKETTLE_REPOSITORY=$KETTLE_REPOSITORY -DKETTLE_USER=$KETTLE_USER -DKETTLE_PASSWORD=$KETTLE_PASSWORD -DKETTLE_PLUGIN_PACKAGES=$KETTLE_PLUGIN_PACKAGES"
Change the -Xmx parameter to alter the maximum heap size, e.g. -Xmx1024m
Thanks!
ReplyDeleteThis was very useful
U R Welcome !!
DeleteThat's alot easier than I'd have guessed. Thank you! :)
ReplyDeleteU R Welcome !!
DeleteWell, actually that would increase only the memory used by the Spoon Designer... You must also do the same to kitchen.sh and pan.sh (or kitchen.bat and pan.bat) because kitchen and pan are who make the tough job in a data integration process in Pentaho. Good post man
ReplyDeleteBest approach seems to be setting export PENTAHO_DI_JAVA_OPTIONS="-Xmx1024m -XX:MaxPermSize=256m" as an env variable.
ReplyDeleteThis way all scripts and ui use this one.
Its not working if I increase the size from 1024 to 2048. Its giving JVM fatal error message.
ReplyDeleteWhat is the error, I guess ur memory couldn't take/find 2 GB RAM free hence the JVM fatal error.
DeleteWhat is the maximum limit to increase the memory ?
ReplyDeleteit depends how much ram ur system has free
ReplyDeleteWorked.. Great info !!
ReplyDeleteNice Guide, congratulations, just a question, where I can change the java memory in the kitchen in the version 7, in the kitchen or pan files there is no command line related to the memory..., or it takes the same as the spoon configuration?
ReplyDelete