Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Suricata process killed by kernel

    Scheduled Pinned Locked Moved Plus 23.01 Development Snapshots (Retired)
    suricata23.01
    6 Posts 3 Posters 1.4k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      jorgek
      last edited by

      After upgrading to beta and rc release, suricata process is being killed by kernel. It runs for some hours before dying. It was running smoothly on 22.05 version.
      My device is SG-2100 with 4GB RAM

      Log message:

      kernel pid 34596 (suricata), jid 0, uid 0, was killed: failed to reclaim memory

      Anybody facing similar issues with suricata?

      1 Reply Last reply Reply Quote 0
      • stephenw10S
        stephenw10 Netgate Administrator
        last edited by

        Is it actually exhausting the available memory?

        Is anything else logged?

        J 1 Reply Last reply Reply Quote 0
        • bmeeksB
          bmeeks
          last edited by

          Never seen that error reported for Suricata before. If available, any additional hints from the suricata.log and pfSense system log around the time of the "kill event" would be helpful.

          J 1 Reply Last reply Reply Quote 0
          • J
            jorgek @stephenw10
            last edited by

            @stephenw10 no, just the kernel message in log and nothing on suricata.log. I did a reboot with reroot option, it seems that stabilized for now. Before the upgrade to 23.01, I had to increase the Firewall Maximum Table Entries parameter from default to 450000 as the alias used on pfBlockerNG (ipv6 bogons ips list usage has increased a lot). To reduce memory consumption I reduced Firewall Maximum States parameter from default (338000) to 50000 as the usage on my environment doesn't use that much. Is there any other parameter that affects memory consumption if I need to free up more memory? For now, It seems Suricata is not being killed, but I am monitoring after my changes.

            1 Reply Last reply Reply Quote 0
            • J
              jorgek @bmeeks
              last edited by

              @bmeeks Nothing on suricata.log. I am monitoring and I will grab more log entries next time it happens. It seems after a reboot with reroot option it helped and in addition, I also reduced the parameter Firewall Maximum States.

              J 1 Reply Last reply Reply Quote 0
              • J
                jorgek @jorgek
                last edited by

                @stephenw10 @bmeeks Just a feedback: After I updated my box with the latest RC, it seems the memory issue was fixed and suricata is not being killed by kernel anymore. It is being running for 5 days and no issues since the upgrade. The memory consumption it looks back to normal similar when it was running with 22.05 version. On previous RC, I noted at some point the memory consumption of box was growing continually and gradually until it reached close to 97% just before Suricata process died.

                1 Reply Last reply Reply Quote 1
                • First post
                  Last post
                Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.