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

Comments

  1. That's alot easier than I'd have guessed. Thank you! :)

    ReplyDelete
  2. Well, 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

    ReplyDelete
  3. Best approach seems to be setting export PENTAHO_DI_JAVA_OPTIONS="-Xmx1024m -XX:MaxPermSize=256m" as an env variable.

    This way all scripts and ui use this one.

    ReplyDelete
  4. Its not working if I increase the size from 1024 to 2048. Its giving JVM fatal error message.

    ReplyDelete
    Replies
    1. What is the error, I guess ur memory couldn't take/find 2 GB RAM free hence the JVM fatal error.

      Delete
  5. What is the maximum limit to increase the memory ?

    ReplyDelete
  6. it depends how much ram ur system has free

    ReplyDelete
  7. Worked.. Great info !!

    ReplyDelete
  8. Nice 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

Post a Comment

Popular posts from this blog

Different Match Models in tMap with example

Simple Transformation from a csv to Excel Output