Memory Problem - Mariadb?

Hello,

I have been struggling with high memory usage for quite some time, I had 12gb available and it usage was always running around 80%. The other day I finally was able to bump that up to 20gb of ram and overnight my usage climbed back to 80-90%. The cuprite right now is Mariadb, it is using 16.5gb or ram. Any ideas why this would be? I am running Home Assistant on Proxmox and it has always been good and stable for me, but this RAM issue just drives me nuts. The picture below has a red circle in the area when I went from 12gb to 20gb.



Thanks in advance for any help,
Jake