Server crashing when using Aikar's flags but doesn't crash when run without
https://mclo.gs/aSKeDRs
Here is the startup logs. It didn't even save to logs, I copied from console
46 Replies
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 landeryt#0
!oom i think
My server is using too much memory
My panel says my memory usage is high all the time.
Your server runs in the Java Virtual Machine (JVM), which has significant overhead & tries to effectively use ALL of the memory assigned to it.
Memory usage from "htop", Task Manager, or your server panel is the total consumption of the JVM, not just your server.
My server is lagging & I think it's memory related.
It's much more likely that you are bottlenecked by your CPU, disk, or some inefficient mod/plugin.
Rule of thumb, servers should have anywhere from 4GB to 12GB of memory, with 8GB being the 'sweet spot'.
If you're heavily modded, add 4GB to that.
Too much memory can be a bad thing. Don't exceed these caps unless you really know why you're doing it.
Troubleshoot your server the right way: use Spark & send us a report.
My server is randomly terminated unexpectedly.
Setting your server to use 8GB does not mean that Java won't exceed this amount.
As a rule of thumb, allow your system/container about 1-2GB (possibly more) overhead outside of the server.
If you're on Linux & can SSH into the system, check your kernel logs. They will report any incidents of OOM.
I want to use swap to allocate more memory.
Don't. Swap is not free memory and using it can negatively impact performance.
Admincraft Canned Responses
am i not supposed to allocate 9gb for a 9gb server?
you have a 9gb limit?
yeah
i just tried 8.5gb and it crashed too, but it took a bit longer
idk i think you need to set it to 6 or 7
for 2-3gb heap
okay
im dumb tbh
pls dont take my word for it
it's running when i set it to 7.5GB
hm
don't forget to
!solved
if you don't have questions
too much ram is bad for your servergot it thank you
only keep what you need
start out with 4gb, if you aren't getting enough performance then do a spark report, if they tell you to get more ram upgrade it to like 5 or 6
then go up and up until you get the fitting ram
don't forget minecraft is mostly single cpu based, so keep a look out for cpu for performance too
i tried doing from 6gb a couple of months ago, and slowly bumped it to 9gb where the server was stable
hm
Okay, so when I'm not using Aikar's, the server just randomly has massive lag spikes even though I'm the only player online.
And this time I allocated 6.5/9GB when using Aikar's but it still crashes after some time
spark
remove alwayspretouch
if u havent
i did, it became better. However, I used to have around 10 mspt when i'm the only one online, but now I'm having around 30 at the same situation.
one flag doesnt change it that much
i mean before I updated to 1.20 using similar flags
https://spark.lucko.me/6ohzpYl2ie
This is a spark report when I'm using Aikar's, it just had a massive spike
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
Spark Profile Analysis
These are not magic values. Many of these settings have real consequences on your server's mechanics. See this guide for detailed information on the functionality of each setting.
❌ Outdated
You are using
Purpur-1990 (1.20)
. Update to 1.20.1
.❌ Threads
You only have 2 thread(s).
❌ chunk-gc.period-in-ticks
Decrease this in bukkit.yml.
Recommended: 400.
❌ ticks-per.monster-spawns
Increase this in bukkit.yml.
Recommended: 4.
❌ spawn-limits.monsters
Decrease this in bukkit.yml.
Recommended: 15.
❌ spawn-limits.water-ambient
Decrease this in bukkit.yml.
Recommended: 5.
❌ spawn-limits.ambient
Decrease this in bukkit.yml.
Recommended: 1.
❌ spawn-limits.animals
Decrease this in bukkit.yml.
Recommended: 5.
❌ entity-activation-range.animals
Decrease this in spigot.yml.
Recommended: 16.
❌ entity-activation-range.monsters
Decrease this in spigot.yml.
Recommended: 16.
❌ entity-activation-range.misc
Decrease this in spigot.yml.
Recommended: 12.
❌ entity-activation-range.water
Decrease this in spigot.yml.
Recommended: 12.
Plus 37 more recommendations
Click the buttons below to see more
Requested by landeryt#0 • Page 1 of 5
hey can u check the spark?
btw sim is higher than view which makes view go to sim
ur lagging alot from villagers riding a minecart or smth?
well
10% of main thread is being used on it
is DAB enabled
i'm like half-sure my location is loading my trading hall, it's like around 150 blocks away. And yes, all my villagers are in a cart
DAB is enabled
my server is still spiking even when no one is online, it sometimes just has a massive error in the console
!Logs
Please check your server log for errors from your plugins.
If you need further help understanding the errors, please send us the whole log file.
Where can I find the server log?
Logs are stored in
<server_directory>/logs/
. Search for a file explorer in your server's management interface and navigate to that directory. Once you've opened that up, search for the latest.log
file. Some providers have a separate page for logs and may hide the "logs" folder.
On Aternos:
• Go to https://aternos.org/log/.
On Minehut and server.pro:
• Go to the "files" tab in the left menu.
• Navigate to the root directory of your server.
• From there navigate to /logs/latest.log
.
What should I do with the log?
• First of all, read it! I mean, that's what you do all the time when you run a server, isn't it? Try to locate any errors that have anything to do with the issue you are facing.
• If you got the latest.log
file or created a .txt
file with the necessary errors you can upload these directly to the channel, but we prefer if you upload them to https://mclo.gs/.
• If you have trouble downloading the log file, copy/paste the text to a paste service (like mclogs). Copy the link that it gives you and send it to us. (Don't worry, McLogs hides your users' IPs.)Admincraft Canned Responses
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
Spark Profile Analysis
These are not magic values. Many of these settings have real consequences on your server's mechanics. See this guide for detailed information on the functionality of each setting.
✅ Your server isn't lagging
Your server is running fine with an average TPS of 19.
Requested by landeryt#0 • Page 1 of 5
do u have a datapack or smth called predicates?
or armor statues
i have a main datapack that's causing warnings, it's like a fishing datapack that modifies the loot table. And yes, i do have armor statues from vanilla tweaks
armor statues is the one causing the console errors it seems
i'll get rid of it and see if it fixes it
it's still causing errors without the datapack
u want the logs again?
yeah
this one is ur loot table tweaker
okay so i should get rid of the loot table
yep the loot table's gone and no spikes so farf
far*
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
Spark Profile Analysis
These are not magic values. Many of these settings have real consequences on your server's mechanics. See this guide for detailed information on the functionality of each setting.
❌ Outdated
You are using
Purpur-1990 (1.20)
. Update to 1.20.1
.❌ Threads
You only have 2 thread(s).
❌ chunk-gc.period-in-ticks
Decrease this in bukkit.yml.
Recommended: 400.
❌ ticks-per.monster-spawns
Increase this in bukkit.yml.
Recommended: 4.
❌ spawn-limits.monsters
Decrease this in bukkit.yml.
Recommended: 15.
❌ spawn-limits.water-ambient
Decrease this in bukkit.yml.
Recommended: 5.
❌ spawn-limits.ambient
Decrease this in bukkit.yml.
Recommended: 1.
❌ spawn-limits.animals
Decrease this in bukkit.yml.
Recommended: 5.
❌ entity-activation-range.animals
Decrease this in spigot.yml.
Recommended: 16.
❌ entity-activation-range.monsters
Decrease this in spigot.yml.
Recommended: 16.
❌ entity-activation-range.misc
Decrease this in spigot.yml.
Recommended: 12.
❌ entity-activation-range.water
Decrease this in spigot.yml.
Recommended: 12.
Plus 37 more recommendations
Click the buttons below to see more
Requested by landeryt#0 • Page 1 of 5
The server is dying when like 4 people are loading new chunks. Is this normal?
have u pregenned
I haven't. I'll do it now
!solved
post closed!
The post/thread has been closed!
Requested by landeryt#0