The RAM cleaner plugin is open source. It cleans the memory using System.gc(); during the cleaning process, your game may experience slight stuttering. It also clears the server's RAM during players' logins and logouts, if there is an error, please let me know, you can report it here or write it in the comments. If you don't want your game to freeze when cleaning memory, you should try these JVM arguments: (-Xmx and -Xms values are omitted)
This enables concurrent explicit gc so that your game will not freeze during memory cleanings. The JVM arguments options should be found in your Minecraft launcher. Have a good day.