Hello, I explain my problem:
I have a minecraft server with some mods for about 30 players.
I just switched from a hosting company to a vps and I installed pterodactyl.
On my old host we had 16gb of ram which was often full so we had to reboot twice a day.
Our current vps has 32gb of ram so normally no problem.
I made a server on pterodactyl with 20gb of ram but when the players are on the server, the server lags and the memory does not exceed 6gb
panel image
config
my arguments : java -Xms2G -Xmx18G -XX:MaxRAMPercentage=95.0 -Dterminal.jline=false -Dterminal.ansi=true $( [[ ! -f unix_args.txt ]] && printf %s "-jar {{SERVER_JARFILE}}" || printf %s "@unix_args.txt" )