Nifi 老是死机

1. nifi服务器配置

CPU:4核

内存:7G

 

2. 改动如下:

nifi.provenance.repository.rollover.time=30 secs --> 36000 sec (10 hours)

nifi.provenance.repository.query.threads=2 --> 1

nifi.provenance.repository.compress.on.rollover=false --> true

nifi.provenance.repository.max.storage.time=24 hours -> 6 hours

 

在bootstrap.conf里面还有个改动:

# JVM memory settings

java.arg.2=-Xms512m --> 2048

java.arg.3=-Xmx512m --> 2048

 

3. nifi默认值是针对下面这种大型服务器

CPU: 24 - 48 cores

Memory: 64 -128 GB

Hard Drive configuration: (1 hardware RAID 1 array) (2 or more hardware RAID 10 arrays)

 

4. java 7的code cache issue

nifi机器上/var/lib/nifi/conf/bootstrap.conf

# Java 7 and below have issues with Code Cache. The following lines allow us to run well even with # many classes loaded in the JVM. java.arg.7=-XX:ReservedCodeCacheSize=256m

java.arg.8=-XX:CodeCacheFlushingMinimumFreeSpace=10m

java.arg.9=-XX:+UseCodeCacheFlushing

java.arg.11=-XX:PermSize=128M

java.arg.12=-XX:MaxPermSize=128M

 

NIFI 中国社区 QQ群:595034369

原文地址:https://www.cnblogs.com/fengwenit/p/5550452.html