Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created on
05-31-2018
02:09 PM
- last edited on
04-21-2026
05:17 AM
by
GrazittiAPI
Hi,
I downloaded HDF 3.1 and i get NIFI java.lang.OutOfMemoryError: Java heap space after running my custom processor,
I changed the default JVM memory in Bootstrap.conf from -Xms512m -Xmx512m to -Xms1g -Xmx1g and i restarted NiFi to take the new values but when i check Bootstrap.conf after restarting NiFi it reset the values to -Xms512m -Xmx512m. why it reset the values to the old values and it didn't take the new values.
Your help is highly appreciated.
Created 05-31-2018 02:18 PM
If you will make changed in the script/conf files manually then upon every restart of Nifi (via Ambari UI/API call) the content of the file will be overwritten.
So can check the template here and should make changes from Ambari UI like.
Ambari UI --> Nifi --> Configs --> Advanced --> "Advanced nifi-bootstrap-env" --> "Template for bootstrap.conf"
.
Try changing the template snippet as following:
From:
# JVM memory settings
java.arg.2=-Xms{{nifi_initial_mem}}
java.arg.3=-Xmx{{nifi_max_mem}}To
# JVM memory settings java.arg.2=-Xms1G java.arg.3=-Xmx1G
.
Then restart NiFi
Created 05-31-2018 02:18 PM
If you will make changed in the script/conf files manually then upon every restart of Nifi (via Ambari UI/API call) the content of the file will be overwritten.
So can check the template here and should make changes from Ambari UI like.
Ambari UI --> Nifi --> Configs --> Advanced --> "Advanced nifi-bootstrap-env" --> "Template for bootstrap.conf"
.
Try changing the template snippet as following:
From:
# JVM memory settings
java.arg.2=-Xms{{nifi_initial_mem}}
java.arg.3=-Xmx{{nifi_max_mem}}To
# JVM memory settings java.arg.2=-Xms1G java.arg.3=-Xmx1G
.
Then restart NiFi
Created 06-04-2018 07:49 AM
Excellent. it works.
Thanks Mr. Jay