Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Where to update memory attributes for NIFI (Xms and Xmx)?

Solved Go to solution
Highlighted

Where to update memory attributes for NIFI (Xms and Xmx)?

Explorer

Installed CFM (Nifi) on Cloudera 6.2 using parcels. I see default 512 M being allocated for Heap size and want to increase it. I did not see nifi.properties file where I could do the same... 

 

Any guidance would be appreciated.. 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

Re: Where to update memory attributes for NIFI (Xms and Xmx)?

Master Guru

@GKrishan 

You want to be very careful when setting safety valve in CM to override existing default property values in NiFi files.

@wengelbrecht screenshot shows creating a safety valve that would override "java.arg.2" in the NiFi bootstrap.conf file with a new value of "Xmx1024m".  The problem here is that "java.arg.2" is used to set Xms while "java.arg.3" is used to set Xmx.  So you would end up with two properties defining Xmx and missing the property for Xms.

 

Here is an example setting override safety valves in CM for both Xms and Xmx:

Screen Shot 2019-12-04 at 10.34.13 AM.png


Hope this helps,
Matt

View solution in original post

3 REPLIES 3

Re: Where to update memory attributes for NIFI (Xms and Xmx)?

Cloudera Employee

In CM, the bootstrap file is auto generated when you start NiFi, so it is not really something you can edit. 

 

However you can set the same parameters through name=value pairs as Java args in CM:

nifi.JPG

 

Highlighted

Re: Where to update memory attributes for NIFI (Xms and Xmx)?

Master Guru

@GKrishan 

You want to be very careful when setting safety valve in CM to override existing default property values in NiFi files.

@wengelbrecht screenshot shows creating a safety valve that would override "java.arg.2" in the NiFi bootstrap.conf file with a new value of "Xmx1024m".  The problem here is that "java.arg.2" is used to set Xms while "java.arg.3" is used to set Xmx.  So you would end up with two properties defining Xmx and missing the property for Xms.

 

Here is an example setting override safety valves in CM for both Xms and Xmx:

Screen Shot 2019-12-04 at 10.34.13 AM.png


Hope this helps,
Matt

View solution in original post

Highlighted

Re: Where to update memory attributes for NIFI (Xms and Xmx)?

Explorer

Thanks for helping out .. It worked.

Don't have an account?
Coming from Hortonworks? Activate your account here