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

    High CPU user util

    Scheduled Pinned Locked Moved General pfSense Questions
    15 Posts 2 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.
    • B
      BlijeGub
      last edited by BlijeGub

      d6930185-d195-4828-964d-c4b7d5c5f7ed-image.png

      I can't figure out why my pfSense installation keeps having these cpu spikes. I only have pfblocker installed but even with it removed it is still giving me these cpu usage spikes. Can someone help me figure out why this is happening and how to resolve it?

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

        Check the system logs. Check the crontab (install the cron package for easy access).

        What do you have running every 2hrs?

        Steve

        1 Reply Last reply Reply Quote 0
        • B
          BlijeGub
          last edited by

          0f282e53-b5fa-4af5-b225-1682068c0133-image.png
          b82f30b6-6f0e-4639-8013-579c7e78cb5f-image.png
          69e727ee-6710-487f-930f-ef8ca76171b0-image.png
          It started again at 18.30 but nothing in the system logs at that time. It looks like /usr/local/bin/php-cgi is causing the cpu usage but I don't know what that does.

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

            It could be you have the dashboard displayed and you browser is refreshing the page at that interval? Or something similar.

            Steve

            1 Reply Last reply Reply Quote 0
            • B
              BlijeGub
              last edited by

              It was happening at night too when I had my pc turned off so it has to be something in the background.

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

                Check the other graphs there, do you see traffic flow increase at the same times?

                Gateway issues? Packet loss?

                Steve

                1 Reply Last reply Reply Quote 0
                • B
                  BlijeGub
                  last edited by BlijeGub

                  I can't see historical traffic data but when the cpu is high I am not seeing an increase in traffic on the live traffic graph. And if I do a dsl reports speed test I get an A+ rating on everything with 700mbps so there doesn't seem te be any issue there. It is probably some php script it is running in the background but I don't know where to find out what it is doing exactly. And I don't get why this is happening this pfSense install is only 2 days old now.

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

                    Try running ps auxwwd. That may show you what script is running.

                    Steve

                    1 Reply Last reply Reply Quote 0
                    • B
                      BlijeGub
                      last edited by BlijeGub

                      493ac122-5ef4-4a9f-9c90-a38abbc32922-image.png
                      The idle process is down by 100% because its a quad core cpu but no other script is running with a supstantial amount of cpu usage.

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

                        And it was showing the increased usage in monitoring while that command was run?

                        Steve

                        1 Reply Last reply Reply Quote 0
                        • B
                          BlijeGub
                          last edited by

                          Yes I waited for it to start having increased cpu usage.

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

                            Actually you should be able to see the command in the output of top -aSH. The gui system activity looks to have just truncated it. I would guess it's prefixes.php from that list though.
                            Do you have IPv6 configured? Do you need it?

                            Steve

                            1 Reply Last reply Reply Quote 0
                            • B
                              BlijeGub
                              last edited by BlijeGub

                              3f69f041-e3fd-4f61-81b9-f77c9abbe8b8-image.png
                              indeed prefixes.php and I do have ipv6 configured and am using it for internet connectivity and to get a better understanding on how ipv6 works.

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

                                Hmm, well I would suggest reviewing exactly what you have configured there. It's hard to imagine what that is doing for 1h using that much CPU.
                                I'm guessing 2hrs is the lease time somewhere...

                                Steve

                                1 Reply Last reply Reply Quote 0
                                • B
                                  BlijeGub
                                  last edited by

                                  Fixed by disabling dhcpv6 which I didn't even need because router advertising is enough to get ipv6 working. Still don't know why dhcpv6 was causing the cpu spikes though.

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