|Pivotal HD, Pivotal HDP||2.x ,3.x|
This article helps you to tune the default java heap size for the Pivotal Extension Framework (PXF) service which comes with Pivotal HDB.
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.
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/
Inside the file, we would see the below line that defines the values of Java heap size and thread stack size as shown below,
- 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 .