[Kea-users] Memory leak on dhcp6
Nitzan Tzelniker
nitzan.tzelniker at gmail.com
Fri May 3 19:13:26 UTC 2019
Hi,
I am running two dhcpv6 server with high-availability
We have about 2500 regular leases and 2500 PD leases
The setup is working but it look like kea-dhcp6 leak memory
When it start (with all of the leases in the file ) it take less then 1% of
the memory but after two hours it take 28% and if I will give it 8 hours it
will crash
I don't see issue on the standby server only on the primary server
Anybody saw this behavior
Any idea how to debug it
kea-dhcp6 -V
1.5.0
tarball
linked with:
log4cplus 1.1.3
OpenSSL 1.0.2k-fips 26 Jan 2017
database:
Memfile backend 2.1
Running on CentOS 7.6.1810 VM kernel 3.10.0-957.1.3.el7.x86 with 2 * vCPU
and 2GB RAM
bellow is the dhcp6 config file omitting 102 subsets
{
"Dhcp6": {
"interfaces-config": {
"interfaces": [ "ens192/1111:aef:aa77:83::100" ]
},
"mac-sources": [ "docsis-cmts", "client-link-addr-option" ],
"control-socket": {
"socket-type": "unix",
"socket-name": "/tmp/kea-dhcp6-ctrl.sock"
},
"lease-database": {
"type": "memfile",
"lfc-interval": 3600
},
"expired-leases-processing": {
"reclaim-timer-wait-time": 10,
"flush-reclaimed-timer-wait-time": 25,
"hold-reclaimed-time": 3600,
"max-reclaim-leases": 100,
"max-reclaim-time": 250,
"unwarned-reclaim-cycles": 5
},
"renew-timer": 1000,
"rebind-timer": 2000,
"preferred-lifetime": 3000,
"valid-lifetime": 4000,
"option-data": [
{
"name": "dns-servers",
"data": "1111:aef:aa77:1::22, 1111:aef:aa77:2::22"
}
],
"subnet6": [
{
"subnet": "1111:aec:0:10::/64",
"pools": [ { "pool": "1111:aec:0:10::10-1111:aec:0:10:ffff::" }
],
"pd-pools": [
{
"prefix": "1111:aec:10::",
"prefix-len": 44,
"delegated-len": 56
}
]
},
//....
// 101 more subnets
//....
"hooks-libraries": [
{
"library": "/usr/local/lib/hooks/libdhcp_ha.so",
"parameters": {
"high-availability": [ {
"this-server-name": "KEA_DHCPv6_1",
"mode": "hot-standby",
"heartbeat-delay": 10000,
"max-response-delay": 20000,
"max-ack-delay": 10000,
"max-unacked-clients": 0,
"peers": [
{
"name": "KEA_DHCPv6_1",
"role": "primary",
"auto-failover": true
},
{
"name": "KEA_DHCPv6_2",
"role": "standby",
"auto-failover": true
}
]
} ]
}
}
]
},
"Logging":
{
"loggers": [
{
"name": "kea-dhcp6",
"output_options": [
{
"output": "/usr/local/var/log/kea-dhcp6.log"
}
],
"severity": "INFO",
"debuglevel": 0
}
]
}
}
Thanks
Nitzan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20190503/d53cb37d/attachment.htm>
More information about the Kea-users
mailing list