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

    Hourly CPU spikes

    Scheduled Pinned Locked Moved General pfSense Questions
    6 Posts 3 Posters 598 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.
    • M
      mkcharlie
      last edited by mkcharlie

      Hi,

      Every hour my PFSense's CPU spikes:
      0c8e96e2-34ab-49e9-921d-c216b877266c-image.png.
      I do not know if this is causing issues, but I do have the impression that it maps to users complaining about connection dropping etc.

      System: Netgate 7100, 22.05-RELEASE (amd64)
      Packages:

      Acme
      Avahi
      aws-wizard
      Cron
      freeradius3
      ipsec-profile-wizard
      ntopng
      openvpn-client-export
      pfBlockerNG-devel
      suricata
      Telegraf
      WireGuard
      

      Cron:
      8423c446-4022-4182-8dc3-cddd687363b2-image.png

      PFBlockerNG is configured to update once every 24 hours, Suricata as well. I do not see other obvious log rotation configuration settings or flushes that may cause this spike. Any idea how I can go about investigating the cause of these spikes?

      enabled services:

      • snort
      • pfblockerNG
      D 1 Reply Last reply Reply Quote 0
      • D
        dma_pf @mkcharlie
        last edited by

        @mkcharlie said in Hourly CPU spikes:

        I do not know if this is causing issues, but I do have the impression that it maps to users complaining about connection dropping etc.

        I don't know about those spikes but connections dropping can happen if you have this checked in DNS Resolver/ General Settings:

        127b24a0-e7b6-4efb-99b9-7076abee804a-image.png

        It causes resolver to restart every time a device connects to pfsense via dhcp (static IP assignments don't cause this issue). During the restart clients can't resolve any FQDN so traffic doesn't get routed out. From the user's perspective it appears that the connection is lost.

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

          Do you see anything in the system logs at those times?

          1 Reply Last reply Reply Quote 0
          • M
            mkcharlie @dma_pf
            last edited by

            @dma_pf that setting is not checked. Thanks for the suggestion though!

            @stephenw10 nothing in particular no, and definitely not something that is recurring every hour.

            enabled services:

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

              If you can predict it just see what's happening in the output of top -HaSP

              M 1 Reply Last reply Reply Quote 0
              • M
                mkcharlie @stephenw10
                last edited by

                @stephenw10 thanks, seems ntopng was heavily spiking a minute ago. I have removed it and will monitor what happens in the next hours.

                enabled services:

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