Understood, thanks for clarifying. Since the problem persists with and without AMP and across different configurations, we might need to delve deeper.
-
Check Java Version: Ensure you are using the latest stable version of Java. Minecraft servers typically run best on the latest LTS version of Java. Verify the Java version with:
java -version
-
Garbage Collection: Java’s garbage collector can sometimes cause hiccups. You might want to experiment with different garbage collection settings. For example:
-Xmx20G -Xms20G -XX:+UseG1GC
-
Network Configuration: Ensure there are no network issues. This includes checking for any ISP-related issues, router configurations, or even trying a different network.
-
Operating System Logs: Check Windows Event Viewer for any system logs or errors that coincide with the server becoming unresponsive.
If none of these help, it might be beneficial to run a detailed profiler on your server to catch the issue as it happens. Spark is a good choice, but considering the randomness, you might want to run it continuously with lower overhead.
If you have any specific findings or need further assistance with a particular aspect, let me know!