Symptom
memory leak in bgp code. Bellow output displays growing number
show bgp internal mem-stats detail | b "PATH ESI GW slab"
SLAB: BGP PATH ESI GW slab (40 x 3000)
Slab alloc count : XXXX
Conditions
1) "soft-reconfiguration inbound always" enabled under a neighbor
2) route-map in configured under the neighbor
Workaround
Replace "soft-reconfiguration inbound always" with "soft-reconfiguration inbound"
(most modern bgp neighbors support route-refresh and therefore no need to store inbound updates in memory).
Further Problem Description
The leak happening when executing "show bgp ipv4 unicast detail" or similar command that
displays received-only paths.