Ram allocation settings not working.

Hello, I have been trying to work on optimizing my MC server, as our player base increses I noticed people complaining and the server is using all its memory. I tried fixing this by adding more ram - java -Xmx17G -Xms5G @libraries/net/minecraftforge/forge/1.20.1-47.2.0/win_args.txt %* - but when I did this the amout of ram the server uses dose not change at all! its as if what im adding to the .bat has 0 affect. any guidence or help would be grate!
Was this page helpful?