Created 05-31-2018 02:09 PM
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