Vanilla jar doesn’t work, other jars do

I setup an smp for our friends using Purpur, but then we now want to experience non bugpatched Minecraft. I, the server owner, followed the guide of Purpur and moved all the world files correctly. The vanilla jar with the correct version starts with the same memory flags and no gui. I tried connecting, but my client said “Out of memory!”. This signals my client is out of memory, but this doesn’t happen with the Purpur jar. How would I fix this? The server console, on the other hand, is normal.
Solution:
should i just try a new fresh vanila server
Jump to solution
82 Replies
random idea
random ideaOP3w ago
My client has been allocated enough memory of 5GBs, and the Java flags are as normal. This also happens with other clients, such as Lunar Client, Fabric Loader, and the vanilla client from Microsoft. The official vanilla jar I am talking about is from Mojang’s website (Minecraft.net) The server java version is Java 21 I’m pretty sure this is not a client issue but the server is given enough ram, I even tried incrementing. The client, also was given enough ram, also tried incrementing the values but failed. I wonder which difference between the vanilla jar and Purpur makes the vanilla jar harder to join impossible to join*
ProGamingDk
ProGamingDk3w ago
Purpur uses less memory than vanilla iirc, anyways for unpatched use fabric with optimization mods, better performance without patching bugs etc
random idea
random ideaOP3w ago
Yes, you probably mean Purpur uses less server memory than vanilla. However the crash is happening on the client, and the server does not show any signs of insufficient resources. @ProGamingDK
ProGamingDk
ProGamingDk3w ago
Right but client memory allocation and server is different What are your startup flags on client and server? And how much ram do you have in total (I assume this is ran on the same machine?)
random idea
random ideaOP3w ago
No, the server is on a VPS with 24GB RAM, and 6GB allocated. Xmx 6G, Xms 3G, nogui Client is given 4GB of RAM allocated.
ProGamingDk
ProGamingDk3w ago
Ah, hmm Try using fabric
random idea
random ideaOP3w ago
Alright, I’ll check the results. @ProGamingDK Weird, I installed Lithium and Fabric on both server and client But it still crashes. (the client does)
random idea
random ideaOP3w ago
No description
random idea
random ideaOP3w ago
[18:58:19] [Render thread/WARN]:
Method overwrite conflict for getChunks in meteor-client.mixins.json:ClientChunkMapAccessor from mod meteor-client, previously written by baritone.launch.mixins.MixinChunkArray. Skipping method.
[18:58:20] [Render thread/ERROR]:
Out of memory
java.lang.OutOfMemoryError: Java heap space
at java.base/java.util.concurrent.atomic.AtomicReferenceArray.<init>(Unknown Source) ~[?:?]
at knot/net.minecraft.class_631$class_3681.<init>(class_631.java:200) ~[client-intermediary.jar:?]
at knot/net.minecraft.class_631.<init>(class_631.java:43) ~[client-intermediary.jar:?]
at knot/net.minecraft.class_638.<init>(class_638.java:187) ~[client-intermediary.jar:?]
at knot/net.minecraft.class_634.method_11120(class_634.java:459) ~[client-intermediary.jar:?]
at knot/net.minecraft.class_2678.method_11567(class_2678.java:69) ~[client-intermediary.jar:?]
at knot/net.minecraft.class_2678.method_65081(class_2678.java:17) ~[client-intermediary.jar:?]
at knot/net.minecraft.class_2600.method_11072(class_2600.java:27) ~[client-intermediary.jar:?]
Saving
[18:58:19] [Render thread/WARN]:
Method overwrite conflict for getChunks in meteor-client.mixins.json:ClientChunkMapAccessor from mod meteor-client, previously written by baritone.launch.mixins.MixinChunkArray. Skipping method.
[18:58:20] [Render thread/ERROR]:
Out of memory
java.lang.OutOfMemoryError: Java heap space
at java.base/java.util.concurrent.atomic.AtomicReferenceArray.<init>(Unknown Source) ~[?:?]
at knot/net.minecraft.class_631$class_3681.<init>(class_631.java:200) ~[client-intermediary.jar:?]
at knot/net.minecraft.class_631.<init>(class_631.java:43) ~[client-intermediary.jar:?]
at knot/net.minecraft.class_638.<init>(class_638.java:187) ~[client-intermediary.jar:?]
at knot/net.minecraft.class_634.method_11120(class_634.java:459) ~[client-intermediary.jar:?]
at knot/net.minecraft.class_2678.method_11567(class_2678.java:69) ~[client-intermediary.jar:?]
at knot/net.minecraft.class_2678.method_65081(class_2678.java:17) ~[client-intermediary.jar:?]
at knot/net.minecraft.class_2600.method_11072(class_2600.java:27) ~[client-intermediary.jar:?]
Saving
I don't know why Meteor Client mods would conflict with server jars, but I'm guessing it's a naming conflict of something Nevermind, it's a warning. The error is irrelevant. -Xmx 6GB flags to the server and -Xmx 4096M for the client I will try the flag -XX:+HeapDumpOnOutOfMemory right now, for the server and client. -XX:+HeapDumpOnOutOfMemoryError still crashes.
random idea
random ideaOP3w ago
No description
random idea
random ideaOP3w ago
@ProGamingDK I guess I will use Purpur for now, please keep me updated if any similar issues occur to other people. Thanks for the support. And yes, switched to Purpur and now working correctly.
random idea
random ideaOP3w ago
No description
ProGamingDk
ProGamingDk3w ago
Thats server not client tho Add spark mod to client and do /sparkc health
random idea
random ideaOP3w ago
on Purpur? is this for while on the purpur server? cause i cannot join the vanilla server, the client just crashes
ProGamingDk
ProGamingDk3w ago
Sure Is the only difference the jars? Same world same server.properties etc?
random idea
random ideaOP3w ago
Yes. Oh, the world saving methods are different, but I followed Paper (Purpur)'s guide to do it, should be all good.
random idea
random ideaOP3w ago
No description
random idea
random ideaOP3w ago
No description
ProGamingDk
ProGamingDk3w ago
Is it the same world
random idea
random ideaOP3w ago
yes
undefined
undefined3w ago
If it's your player problem, ask them to provide their log at that time, this will be easier to investigate Log can be found at %appdata%/.minecraft/logs
random idea
random ideaOP3w ago
~/Application Support/minecraft/logs
Tamz
Tamz3w ago
thats for client logs on the vanilla client
random idea
random ideaOP3w ago
What's crashing is the client, not the server.
Tamz
Tamz3w ago
oh
random idea
random ideaOP3w ago
But the server jar depends on whether the client crashes.
Tamz
Tamz3w ago
LOL oopsie
random idea
random ideaOP3w ago
Happens on other people too lol this is so weird i have past experience of other jars working very well and even with bungeecord and less ram Client crashes on Out Of Memory!
random idea
random ideaOP3w ago
oh and there are no matching logs
No description
random idea
random ideaOP3w ago
this happened on Jan 20 for me
Tamz
Tamz3w ago
odd question tried swapping java's? since you are using mac, perhaps try out the Azulu java
random idea
random ideaOP3w ago
Alright. The vanilla client didn't seem to have recorded logs, Fabric with some other mods with the same crash did indeed log this crash
Tamz
Tamz3w ago
Azul | Better Java Performance, Superior Java Support
Azul Downloads
Tamz
Tamz3w ago
try using "Prism Launcher" it has a console that sometimes gets more information then a latest.log does :shrug:
Tamz
Tamz3w ago
Prism Launcher - Home
An Open Source Minecraft launcher with the ability to manage multiple instances, accounts and mods. Focused on user freedom and free redistributability.
Tamz
Tamz3w ago
its also mac native
random idea
random ideaOP3w ago
I use modrinth, that has a console.
Tamz
Tamz3w ago
does the server run on your mac?
random idea
random ideaOP3w ago
No, it runs on an Ubuntu VPS
Tamz
Tamz3w ago
OH LOL mclogs you lier its calling ur logs as server logs MB
random idea
random ideaOP3w ago
? ohh server logs?
Tamz
Tamz3w ago
No description
random idea
random ideaOP3w ago
LMAO THIS IS STUPID
Tamz
Tamz3w ago
lol
random idea
random ideaOP3w ago
WHAT
Tamz
Tamz3w ago
also
random idea
random ideaOP3w ago
No description
Tamz
Tamz3w ago
Metor client :eyessus: ?
random idea
random ideaOP3w ago
uhhhhhhh 2b2t 😉
Tamz
Tamz3w ago
for 1.21.4? :3
random idea
random ideaOP3w ago
happens on lunar client too yes lol
Tamz
Tamz3w ago
:smh: i think its essentials and or metor dragging the ram up quickly tried on a pack like fabulously optimized? thats performance based only
random idea
random ideaOP3w ago
ill try it
No description
random idea
random ideaOP3w ago
the weird thing is: it only happens when the server is running the vanilla jar from minecraft.net
Tamz
Tamz3w ago
the out of ram errors?
random idea
random ideaOP3w ago
yeah
Tamz
Tamz3w ago
are you running plugins on the server?
random idea
random ideaOP3w ago
and the server, doesnt seem to show any warnings or logs no
Tamz
Tamz3w ago
odd welp
random idea
random ideaOP3w ago
not on purpur, and not on vanilla
Tamz
Tamz3w ago
this just shows the vanilla jar is SHIT :YEP:
random idea
random ideaOP3w ago
ikr + fabric jar doesnt work too maybe bc fabric doesnt patch vanilla's dupe glitches that are essentialy "features" in smps and that is my goal
Tamz
Tamz3w ago
do you have any datapacks?
random idea
random ideaOP3w ago
No.
Tamz
Tamz3w ago
very odd
random idea
random ideaOP3w ago
No datapacks or plugins should i just try instead of migrating
Solution
random idea
random idea3w ago
should i just try a new fresh vanila server
random idea
random ideaOP3w ago
and see if that works
Tamz
Tamz3w ago
if your friends are down for that sure
random idea
random ideaOP3w ago
alright
random idea
random ideaOP3w ago
fabulously optimized, and with the SERVER RUNNING ON LOCALHOST (mac vanilla jar)
No description
Tamz
Tamz3w ago
seems to be running justttt fine
random idea
random ideaOP3w ago
ikr
Tamz
Tamz3w ago
random idea
random ideaOP3w ago
time to try this out with the same jar on ubuntu ofc diff server diff port starting......... :stevegun: dns delay disabling firewall here we go no way it worked tf?
Tamz
Tamz3w ago
im just smarter
random idea
random ideaOP3w ago
tf is the problem the world dir structure is the same everything is the same breh wait big brain lemme try moving the world to here
random idea
random ideaOP3w ago
No description
random idea
random ideaOP3w ago
moved the world, still fine tf is this issue lol final test: will it work without fabulously optimized yes it works what the.... i guess u are just smarter lol
asdfbizness
asdfbizness4d ago
You use meteor client?

Did you find this page helpful?