PXF Out Of Memory Issue - GC overhead limit exceeded
search cancel

PXF Out Of Memory Issue - GC overhead limit exceeded

book

Article ID: 296370

calendar_today

Updated On:

Products

VMware Tanzu Greenplum

Issue/Introduction

Out of Memory (OOM) issue on the PXF can cause pxf to go down on one or more hosts:

java.lang.OutOfMemoryError: GC overhead limit exceeded
        at org.greenplum.pxf.api.io.GPDBWritable.setString(GPDBWritable.java:581)
        at org.greenplum.pxf.service.BridgeOutputBuilder.fillOneGPDBWritableField(BridgeOutputBuilder.java:412)
        at org.greenplum.pxf.service.BridgeOutputBuilder.fillGPDBWritable(BridgeOutputBuilder.java:238)



Environment

Product Version: 6.9

Resolution

  • Open the pxf-env.sh file under $PXF_CONF/conf directory on Master (here PXF_CONF is the user configuration directory that was created during initialization of PXF)
  • Edit the pxf-env.sh file
  • Change the Param PXF_JVM_OPTSThe default value for this is '-Xmx2g -Xms1g'
  • Change this value to the desired memory setting. Example:
    PXF_JVM_OPTS="-Xmx3g -Xms3g"
  • Save the file
  • Run pxf cluster sync to to copy the updated pxf-env.sh file to all the hosts in the cluster
  • Restart PXF


Note: In case, a few pxf instances are already down, restart the PXF and then follow the steps below:

https://gpdb.docs.pivotal.io/pxf/5-13/using/troubleshooting_pxf.html