I'm testing this How to set limits (ulimit) for services run by systemd in CentOS/RHEL 7 – The Geek Diary
Creating a file in /storage/.config/system.d/myservice.service.d/ulimit.conf and put it inside
Don't know if it works! But when I was doing a systemctl show myservice.service -p MemoryMax before said MemoryMax=infinity, and after creating this file says MemoryMax=104857600.
Hope it work!
This did not work