Pivotal Knowledge Base

Follow

How to change java heap size of PXF service

Environment

Product Version
Pivotal HD, Pivotal HDP 2.x ,3.x
OS RHEL 6.x
HDB  1.x,2.x

Purpose

This article helps you to tune the default java heap size for the Pivotal Extension Framework (PXF) service which comes with Pivotal HDB. 

Cause

The default PXF service heap size is 512 MB and there are situations that we  may need to fine tune the heap size for better memory management in the environment. 

Procedure

The PXF service JVM command line options can be added and modified for each pxf-service instance on one of the below files:

  • HDP 2.4: /var/pxf/pxf-service/bin/setenv.sh
  • PHD 3.x: /var/gphd/pxf/pxf-service/bin/setenv.sh

Inside the file, we would see the below line that defines the values of Java heap size and thread stack size as shown below,

JVM_OPTS="-Xmx512M -Xss256K"
  • Xmx512M  - Java Heap Size
  • Xss256K - Thread Stack Size

Once JVM command line options have been changed/modified the PXF service needs to be restarted to reflect the new Java Heap Size and Thread Stack Size .

Comments

Powered by Zendesk