Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java Heap Space error In Pentaho

I am using pentaho pdi version 4.1. I am getting java.lang.OutOfMemoryError: Java heap space error. My input is salesforce step and it would have more than 40000 rows. I tried setting -Xmx JVM option [in both spoon and kitchen] from 512M to 1048M. I got the same failure again.

like image 469
Karthi Avatar asked Sep 14 '25 07:09

Karthi


1 Answers

The following Java options might help diagnose your problem:

-XX:+UnlockDiagnosticVMOptions

The UnlockDiagnosticVMOptions options logs the garbage collection actions so that you can see what happens before your out of memory error. I use the following options to help make garbage collection run better for my Java server:

-XX:MaxPermSize=512m -XX:NewSize=512m -XX:MaxNewSize=512m -XX:MaxPermSize=512m -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+CMSParallelRemarkEnabled -XX:ParGCCardsPerStrideChunk=4096
like image 61
Michael Shopsin Avatar answered Sep 17 '25 19:09

Michael Shopsin