Nifi There is insufficient memory for the java Runtime
Hi,
I am currently facing issue with NiFi 1.7.0 (2 nodes),
My flows had been running fine since months. Couple of weeks ago we did a downgrading of the nifi machines. We went from CPU 16 RAM 128G to CPU 4 RAM 32G.
After the dowgrading we changed parameters to make sure that nifi take into consideration the new size of the machines
Initial values:
Initial memory allocation: 80G
Max memory allocation: 112g
New values:
Initial memory allocation: 20G
Max memory allocation: 26G
within nifi we did also change in NIFI Genaral Settings
from
Maximum timer driven thread count: 64
Maximum event driven thread count: 16
to
Maximum timer driven thread count: 2
Maximum event driven thread count: 4
Now some time when we try to load we get an enexpected error occured with
2020-08-18 10:57:51,942 ERROR [NiFi logging handler] org.apache.nifi.StdErr OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x0000000780000000, 218103808, 0) failed; error='Cannot allocate memory' (errno=12)
2020-08-18 10:57:51,956 INFO [NiFi logging handler] org.apache.nifi.StdOut # There is insufficient memory for the Java Runtime Environment to continue.
2020-08-18 10:57:51,957 INFO [NiFi logging handler] org.apache.nifi.StdOut # Native memory allocation (mmap) failed to map 218103808 byt
Could you please help me with this issue.

