Vpn service takes lot of RAM


I am setting up a balena test enviroment where I am connecting a few devices, and I noticed vpn and api services are taking quite a lot of ram.
Especially the vpn docker ram footprint seems to increase over time…

This is the amount of memory it takes after 27h uptime:

Any suggestion? Thanks

I was looking at a VPN machine in a staging environment as an (arguable) basis for comparison, and (coincidentally?) the VPN container was taking around 350MB RAM which is not too different from the 387MB you’ve shared in the screenshot. The VPN container I looked at was “up” for 6 days. I wonder if it could be a case of some memory caches in the VPN implementation that grow up to a certain limit, then starts discarding older entries so stops growing. If you keep it running for longer, like 2 or 3 days, it just might stabilise.


I just checked the stats…

vpn_1 0.02% 800.3MiB / 3.852GiB 20.29% 104MB / 92.7MB 80.3MB / 135kB 49

It really keeps growing and growing… (800.3MiB / 3.852GiB)

The machine was up for 3 days and it’s the last version (8.15.1 if I recall correctly).

Some more info: I currently have 2/3 devices connected on average and make use of the connect proxy quite a bit (I wouldn’t say heavily thought).

Thank you for your support.