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

    Kea DHCP 100% CPU usage / slow answer to queries

    Scheduled Pinned Locked Moved DHCP and DNS
    10 Posts 2 Posters 926 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.
    • JeanMiJ
      JeanMi
      last edited by JeanMi

      Hi

      I switched from ISC DHCP Server to the new KEA server.
      Server : 2.7.2-RELEASE (amd64)
      built on Mon Mar 4 20:53:00 CET 2024
      FreeBSD 14.0-CURRENT

      Since, the DHCP server is really (really!) slow to answer the queries for DHCP leases. DHCP is on 2 different subnet & LAN
      The DHCP server use 100% of a CPU all the time, slow to answer queries and even slow to open the page Status -> DHCP Leases

      Today I switched back to the ISC server, and everything is back to normal.

      I tried to include Log entries, but the message was then flagged as spam ...

      GertjanG 1 Reply Last reply Reply Quote 0
      • GertjanG
        Gertjan @JeanMi
        last edited by

        @JeanMi said in Kea DHCP 100% CPU usage / slow answer to queries:

        but the message was then flagged as spam ...

        Dump the logs in https://pastebin.com/ and paste the link to it here.

        No "help me" PM's please. Use the forum, the community will thank you.
        Edit : and where are the logs ??

        JeanMiJ 1 Reply Last reply Reply Quote 0
        • JeanMiJ
          JeanMi @Gertjan
          last edited by

          @Gertjan Oh yes thanks !

          here is the pastebin :

          https://pastebin.com/ek15tfar

          GertjanG 1 Reply Last reply Reply Quote 0
          • GertjanG
            Gertjan @JeanMi
            last edited by

            @JeanMi

            Looking at your logs, they look, just fine.
            But ..... look again, and hit Ctrl-F and look for DHCP4_SHUTDOWN - and cycle over all the occurrences.
            Your DHCP4 server restarts every minute sharp.

            No "help me" PM's please. Use the forum, the community will thank you.
            Edit : and where are the logs ??

            JeanMiJ 1 Reply Last reply Reply Quote 0
            • JeanMiJ
              JeanMi @Gertjan
              last edited by

              @Gertjan I was wondering why it was loading the libraries all the time ... just because it just restart every minutes !

              I'll try to find the root cause of the restart. I have a watchdog service on dhcp server ... so it restart, but why does it stop !!
              I'll look at all the log, because right now I have to stay with the working DHCP server for some times.

              Thanks for the tips !

              JeanMiJ 1 Reply Last reply Reply Quote 0
              • JeanMiJ
                JeanMi @JeanMi
                last edited by

                @JeanMi I was looking at the watchdog, and it look like it may be the root cause :

                https://www.reddit.com/r/PFSENSE/comments/17qo3em/kea_dhcp_constant_stop_and_restart/

                I'll try that !

                Thanks @Gertjan for the help

                JeanMiJ 1 Reply Last reply Reply Quote 0
                • JeanMiJ
                  JeanMi @JeanMi
                  last edited by

                  Just to finish this thread :
                  It was the watchdog.

                  When you change your DHCPd from ISC to KEA, you have to delete the dhcp watchdog and re-create it with the right kea dhcp option after the change. That's all !

                  Thanks !

                  GertjanG 1 Reply Last reply Reply Quote 0
                  • GertjanG
                    Gertjan @JeanMi
                    last edited by

                    @JeanMi said in Kea DHCP 100% CPU usage / slow answer to queries:

                    It was the watchdog.

                    It's always the watchdog package.
                    Ok to install it, but don't use it.

                    Btw : ISC never died on me.
                    Kea has some issue in the beginning (23.09 or 2.7.2 ?) where it couldn't restart when it was told to do, for example during GUI DHCP changed but that is solved now.
                    The watchdog wouldn't change anything in that situation.

                    No "help me" PM's please. Use the forum, the community will thank you.
                    Edit : and where are the logs ??

                    JeanMiJ 1 Reply Last reply Reply Quote 0
                    • JeanMiJ
                      JeanMi @Gertjan
                      last edited by

                      @Gertjan Yep, I just deactivated all my watchdog monitored services (unbound, squid, ipsec, openvpn, kea-dhcp4) and I'll see if everything stay up 😬

                      If so, I'll then uninstall watchdog service

                      Thanks again 👍

                      GertjanG 1 Reply Last reply Reply Quote 0
                      • GertjanG
                        Gertjan @JeanMi
                        last edited by

                        @JeanMi said in Kea DHCP 100% CPU usage / slow answer to queries:

                        and I'll see if everything stay up

                        Don't worry ^^
                        If :
                        The power is good.
                        You don't mess with the system.
                        The system hasn't shown any hardware issues errors (like drive dying).

                        you could; after several months, no ... more then one year ( !! ) be part of the "My pfSense is up and running for 1+ year now" elite club.
                        ( but don't tell us, as it also means you didn't update update etc ... )

                        For some reason, I restart my pfSense ones in while. Mostly because I updated something. (or because I f##ked up again ;) )

                        No "help me" PM's please. Use the forum, the community will thank you.
                        Edit : and where are the logs ??

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