Memory Leak in dhcpd

sthaug at sthaug at
Thu Aug 13 07:30:40 UTC 2009

> The Primary server hands out 30000 leases in the first hour, But after an hour the %memory consumption of the dhcpd process significantly increases from about 8% to 90% and finally leads to the dhcp server to crash with the following messages at the end of the 2nd hour.
> no memory for option buffer.
> no memory for option buffer.
> no memory for option buffer.
> dhcp_failover_put_message: something went wrong.
> dhcp_failover_send_connect: out of memory
> Segmentation fault
> The same thing happens if the secondary is the only server receiving requests.
> I have searched the mailing lists and found people have faced similar issues but have not got a solution.
> Does any body have any idea why this happens?

There is indeed a memory leak in dhcpd. See the thread starting at

There is a patch you may want to try at

It has solved all our dhcpd memory leak problems.

Steinar Haug, Nethelp consulting, sthaug at

More information about the dhcp-users mailing list