Seems bgpd-process consumes a lot of memory or memory leak

For whom it could be interesting ))

Sorry, I`ve just forgot to describe, if we were having succes with it or not
So, we implement for bbrs-vpnv4 neighbors

> set policy route-map IPCore-vpnv4-IN rule 10 action 'permit'
> set policy route-map IPCore-vpnv4-IN rule 10 set community 'none'
> 
> set protocols bgp neighbor <neighbor`s ip address> address-family ipv4-vpn route-map import 'IPCore-vpnv4-IN'

after that (and reboot LNS, for a case) - bgp still lives stable with following numbers of prefixes:

admin@nn-vlns-3-1:~$ sho bgp summary 

IPv4 Unicast Summary (VRF default):
BGP router identifier 10.228.134.1, local AS number 64826 vrf-id 0
BGP table version 3738
RIB entries 1620, using 304 KiB of memory
Peers 5, using 3617 KiB of memory

Neighbor        V         AS   MsgRcvd   MsgSent   TblVer  InQ OutQ  Up/Down State/PfxRcd   PfxSnt Desc
10.228.134.32   4      64516    146672    147293        0    0    0 5d02h44m           55        4 SC-x-1 vrf AAA
10.228.134.34   4      64516    146680    147293        0    0    0 5d02h44m           55        4 SC-x-2 vrf AAA
10.228.134.36   4      64516    146729    147293        0    0    0 5d02h44m          200        4 SC-x-1 vrf T2-LNS
10.228.134.38   4      64516    146733    147293        0    0    0 5d02h44m          200        4 SC-x-2 vrf T2-LNS
10.228.134.102  4      64826      8395      8337        0    0    0 5d02h44m          254      867 ipv4 vLNS-4-1 AAA/T2

Total number of neighbors 5

IPv4 VPN Summary (VRF default):
BGP router identifier 10.228.134.1, local AS number 64826 vrf-id 0
BGP table version 0
RIB entries 2029, using 380 KiB of memory
Peers 3, using 2170 KiB of memory

Neighbor        V         AS   MsgRcvd   MsgSent   TblVer  InQ OutQ  Up/Down State/PfxRcd   PfxSnt Desc
10.5.72.1       4      39374  33317370    392109        0    0    0 5d02h44m        41485     1294 BBR1 vpnv4
10.5.72.2       4      39374  33331215    392109        0    0    0 5d02h44m        41484     1294 BBR2 vpnv4
10.228.134.101  4      64826  22736670  22766438        0    0    0 5d02h44m        41492    42803 vLNS-4-1 VPNV4

Total number of neighbors 3

IPv4 Labeled Unicast Summary (VRF default):
BGP router identifier 10.228.134.1, local AS number 64826 vrf-id 0
BGP table version 3
RIB entries 5, using 960 bytes of memory
Peers 2, using 1447 KiB of memory

Neighbor        V         AS   MsgRcvd   MsgSent   TblVer  InQ OutQ  Up/Down State/PfxRcd   PfxSnt Desc
10.228.134.40   4      39374     10143      7368        0    0    0 5d02h44m          613        4 BBR1 ipv4 LU
10.228.134.42   4      39374     10175      7368        0    0    0 5d02h44m          613        4 BBR2 ipv4 LU

Total number of neighbors 2
admin@nn-vlns-3-1:~$

and top:

admin@nn-vlns-3-1:~$ top 
top - 00:15:21 up 5 days,  2:58,  3 users,  load average: 0.31, 0.44, 0.43
Tasks: 154 total,   1 running, 153 sleeping,   0 stopped,   0 zombie
%Cpu(s):  3.1 us,  2.2 sy,  0.0 ni, 94.1 id,  0.2 wa,  0.0 hi,  0.3 si,  0.0 st
MiB Mem :  16017.2 total,   8954.2 free,   1971.4 used,   5091.6 buff/cache
MiB Swap:      0.0 total,      0.0 free,      0.0 used.  13695.8 avail Mem 

    PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND                                                
    904 frr       15  -5  846664 668792   6496 S  11.3   4.1 762:50.30 bgpd                                                   
    899 frr       15  -5  942120 193940   4552 S   9.3   1.2 514:51.68 zebra

5 days up - it was some needed reboot, didnt related to bgp memory problem.

For example, output from the LNS on other site, which UP at 47 days:

admin@nn-lns-4-1:~$ sho bgp summary 

IPv4 Unicast Summary (VRF default):
BGP router identifier 10.228.134.101, local AS number 64826 vrf-id 0
BGP table version 91180
RIB entries 1620, using 304 KiB of memory
Peers 5, using 3617 KiB of memory

Neighbor        V         AS   MsgRcvd   MsgSent   TblVer  InQ OutQ  Up/Down State/PfxRcd   PfxSnt Desc
10.228.134.2    4      64826    131926    131973        0    0    0 5d02h50m          254      867 ipv4 vLNS-3-1 AAA/T2
10.228.134.132  4      64516   1343678   1349454        0    0    0 02w4d23h           55        4 SC-x-1 vrf AAA
10.228.134.134  4      64516   1344530   1350310        0    0    0 06w4d21h           55        4 SC-x-2 vrf AAA
10.228.134.136  4      64516   1343854   1349454        0    0    0 02w4d23h          200        4 SC-x-1 vrf T2-LNS
10.228.134.138  4      64516   1344670   1350311        0    0    0 06w4d21h          200        4 SC-x-2 vrf T2-LNS

Total number of neighbors 5

IPv4 VPN Summary (VRF default):
BGP router identifier 10.228.134.101, local AS number 64826 vrf-id 0
BGP table version 0
RIB entries 2777, using 521 KiB of memory
Peers 3, using 2170 KiB of memory

Neighbor        V         AS   MsgRcvd   MsgSent   TblVer  InQ OutQ  Up/Down State/PfxRcd   PfxSnt Desc
10.5.72.3       4      39374 311830369    702997        0    0    0 06w4d21h        41493     1286 BBR3 vpnv4
10.5.72.4       4      39374 308961204    702997        0    1    0 06w4d21h        41489     1286 BBR4 vpnv4
10.228.134.1    4      64826 208498815 210760357        0    0    0 5d02h50m        42804    41499 vLNS-3-1 VPNV4

Total number of neighbors 3

IPv4 Labeled Unicast Summary (VRF default):
BGP router identifier 10.228.134.101, local AS number 64826 vrf-id 0
BGP table version 3
RIB entries 5, using 960 bytes of memory
Peers 2, using 1447 KiB of memory

Neighbor        V         AS   MsgRcvd   MsgSent   TblVer  InQ OutQ  Up/Down State/PfxRcd   PfxSnt Desc
10.228.134.140  4      39374    144826     67541        0    0    0 06w4d21h          613        4 BBR3 ipv4 LU
10.228.134.142  4      39374    144384     67541        0    0    0 06w4d21h          613        4 BBR4 ipv4 LU

Total number of neighbors 2
admin@nn-lns-4-1:~$   top
top - 00:21:16 up 47 days, 7 min,  1 user,  load average: 0.07, 0.06, 0.01
Tasks: 176 total,   1 running, 175 sleeping,   0 stopped,   0 zombie
%Cpu(s):  0.8 us,  0.5 sy,  0.0 ni, 98.6 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
MiB Mem :  16017.1 total,  12680.3 free,   2121.6 used,   1215.2 buff/cache
MiB Swap:      0.0 total,      0.0 free,      0.0 used.  13604.3 avail Mem 

    PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND                                                
                                     
  11292 frr       20   0  425820 253184   6524 S   4.0   1.5   2711:25 bgpd

Many thanks for time and attention and help

BR,
Olev