What's wrong??

My server sometimes lags and i thought it was because of RAM usage that is almost using the maximum that i have (8gb) so i used spark and it was like this https://spark.lucko.me/y19XgXqVM0, so what am I doing wrong?
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
No description
12 Replies
Admincraft Meta
❌ Processing Error
The bot cannot process this Spark profile. Please use an alternative Spark profile.
Requested by rafamarques#0
Admincraft Meta
Thanks for asking your question!
Make sure to provide as much helpful information as possible such as logs/what you tried and what your exact issue is
Make sure to mark solved when issue is solved!!!
/close !close !solved !answered
Requested by rafamarques#0
RafaMarques
RafaMarquesOP2y ago
why is the ram saying 6Gb and it is using just 3.9
snowznz.bak
snowznz.bak2y ago
java -Xms7G -Xmx7G --add-modules=jdk.incubator.vector -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:InitiatingHeapOccupancyPercent=15 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem -XX:MaxTenuringThreshold=1 -Dusing.aikars.flags=https://mcflags.emc.gs -Daikars.new.flags=true -XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20 -jar server.jar nogui
java -Xms7G -Xmx7G --add-modules=jdk.incubator.vector -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:InitiatingHeapOccupancyPercent=15 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem -XX:MaxTenuringThreshold=1 -Dusing.aikars.flags=https://mcflags.emc.gs -Daikars.new.flags=true -XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20 -jar server.jar nogui
Use these flags
Lildirt
Lildirt2y ago
memory indicators on your panel mean basically nothing. The JVM might allocate it, but it doesn't mean the server is actively using it. Unused memory is wasted memory. 8GB is a sweet spot for memory, and you probably don't need more depending on your workload.
CtrlAltDelMe
CtrlAltDelMe2y ago
That profile only ran for 6 mins Kinda short time & your CPU is good enough What's your host The node memory seems to be almost full and they are not using swap at all
RafaMarques
RafaMarquesOP2y ago
Im using EnviroMc and sorry for taking so long
CtrlAltDelMe
CtrlAltDelMe2y ago
I'm pretty sure enviromc gives overhead So you can just set 8gb of ram in the flags That's the average RAM usage I think Like it isn't supposed to use all the ram
CtrlAltDelMe
CtrlAltDelMe2y ago
This is pretty normal to happen tho
No description
CtrlAltDelMe
CtrlAltDelMe2y ago
The panel memory usage should not be used as a reference for the server memory usage
RafaMarques
RafaMarquesOP2y ago
I used the Aikar's flags and it is working good now
CtrlAltDelMe
CtrlAltDelMe2y ago
Epic

Did you find this page helpful?