minifi Java代理在AIX上使用高CPU

时间:2019-03-13 14:03:09

标签: apache-nifi

我注意到TailFile处理器消耗了AIX操作系统上的CPU。

我可以做些减少消耗的事情吗?

Processors:
- id: xxxxxxxxxxxxxxxxxxxxxxxxxxx
  name: TailFile
  class: org.apache.nifi.processors.standard.TailFile
  max concurrent tasks: 1
  scheduling strategy: TIMER_DRIVEN
  scheduling period: 0 sec
  penalization period: 30 sec
  yield period: 1 sec
  run duration nanos: 0
  auto-terminated relationships list:
  - success
  Properties:
    File Location: Local
    File to Tail: *.log
    Initial Start Position: Beginning of File
    Rolling Filename Pattern:
    tail-base-directory: /WorkingDir85/log/
    tail-mode: Multiple files
    tailfile-lookup-frequency: 10 minutes
    tailfile-maximum-age: 24 hours
    tailfile-recursive-lookup: 'false'

1 个答案:

答案 0 :(得分:0)

计划周期为0秒,这基本上意味着运行得尽可能快。设置为“ 10毫秒”甚至“ 1毫秒”之类的内容可以减轻CPU使用率。