Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-1208

ListenSyslog spin-loops CPU, spikes load to 150%

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 0.4.0
    • 0.4.0
    • Extensions
    • None
    • Raspbian Jessie (Debian-based), Raspberry PI 2, 1GHz x 4cores, 1GB RAM, Oracle JDK 8 for ARM

    Description

      I've installed today's NiFI 0.4.0 snapshot on the latest Raspberry PI and configured a syslog listener. After forwarding my RPI syslogs to this NiFi listener, things seem to work ok (for now just sending to a remote cluster for collection).

      However, 'top' shows that the nifi process taxes CPU at around 150%, varying. ListenSyslog stats show 1,500,000 tasks per a sliding 5min window.

      Setup: create a ListenSyslog on port 10001.
      As a root:

      1. edit /etc/rsyslog.conf file and add
        *.*    @127.0.0.1:10001

        at the end

      2. service rsyslog restart

      You can send test messages to syslog like this:

      logger "This is the test message!"

      Attachments

        1. NIFI-1208.patch
          2 kB
          Bryan Bende

        Activity

          People

            bbende Bryan Bende
            aperepel Andrew Grande
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: