Jump to content

So, I was trying to set up a modded server for minecraft in At Launcher when i discovered it would crash because of not enough memory. i googled it a bunch of times and thought i had a solution, but java was "ignoring" what i wrote in the CMD. Error i was getting:

 java.lang.outofmemoryerror: java heap space

I was trying to fix it With:

java -Xmx2048m

-XX:MaxPermsize=4096M

but it would't let me. Any ideas of how i could edit the heap size? Preferebly without braking anything.

Link to comment
https://linustechtips.com/topic/733215-unable-to-increase-java-heap-size/
Share on other sites

Link to post
Share on other sites

18 hours ago, Unimportant said:

Try adding the 64bit flag:

-d64

 

Without it, the JVM runs in 32-bit with all the memory limitations that implies.

Assuming, ofc, that you are running a 64-bit OS, otherwise this won't work.

And a 64bit jre, but I think that probably goes without saying :)

AMD Ryzen 7800 X3D, MSI B650 Project Zero, Antec C5, Gigabyte RTX 4080 Super Aero

 

Nikon D500 | Nikon 300mm f/4 PF  | Nikon 200-500 f/5.6 | Nikon 50mm f/1.8 | Tamron 70-210 f/4 VCII | Sigma 10-20 f/3.5 | Nikon 17-55 f/2.8 | Tamron 90mm F2.8 SP Di VC USD Macro | Neewer 750II

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×