Encrypted dns causes dnscrypt-proxy process to consume excess memory on Beryl ax

top gives me Virtual Memory Size is pushing 1.2gb on a 512mb Beryl ax

26226 1 root S 1207m 251% 0% /usr/sbin/dnscrypt-proxy -config /etc/dnscrypt-proxy2-vpn/dnscrypt-proxy.toml
26247 1 root S 1207m 251% 0% /usr/sbin/dnscrypt-proxy -config /etc/dnscrypt-proxy2/dnscrypt-proxy.toml

This only happens when I try to run any form of encrypted dns/proxy/doh/dot same type of issue in my other post happens with adguard's dns

I have not configured the toml files, so would changing anything help?

Virtual memory will not affect device device performance too much.
If the physical memory is exhausted will effect the system, kernel,
As long as the system is running normally, it can be ignored.

The problem is, that daily or nearly daily at some point, latency spikes up, pinging the router or the host router will go from 1-3ms to 200ms, as well as dns query speed and loading any website becomes extremely slow if it loads at all, ping to sites becomes 800ms+ or so at this point, and ping between wireless or wired devices on network will jump around 1-200ms, requiring a reboot.

Why is dnscrypt trying to reserve 250% of available memory though

For locally record the IP + Domain Name information which returned by DNS requests.
This only occupy the virtual memory, but not physical memory.

If the same domain name is requested again, there is no need for a second upward query, instead, use the local record.