Jump to content

how to allocate more ram to minecraft server on laptop

I can run the server no issue on my 16gb main rig, but i need that to play the mods. my laptop gets maybe 45 fps with no shader minecraft. sadly i did not know about the server running pc cannot connect to the game without server breaking.

 

on my laptop i get an error about the heap being larger than expected or something similar when trying to run this command in my terminal

 

java -Xmx6144 -Xms6144M -jar minecraft_server.1.12.2.

 

when i run minecraft java with optifine it gives about 6.5ram gigs to the game so i can see with the f3 key in game, so i know the server sould be able to take 6. how do i fix it? also the laptop in question has 8gigabytes of ram total and is running ubuntu. and is 6gigqbytes enough ram to hoat the server comfortably with shaders and mods? for maybe 2-5 people with myself included?

main rig:

CPU: 8086k @ 4.00ghz-4.3 boost

PSU: 750 watt psu gold (Corsair rm750)

gpu:axle p106-100 6gbz msi p104-100 @ 1887+150mhz oc gpu clock, 10,012 memory clock*2(sli?) on prime w coffee lake igpu

Mobo: Z390 taichi ultimate

Ram: 2x8gb corsair vengence lpx @3000mhz speed

case: focus G black

OS: ubuntu 16.04.6, and umix 20.04

Cooler: mugen 5 rev b,

Storage: 860 evo 1tb/ 120 gb corsair force nvme 500

 

backup

8gb ram celeron laptop/860 evo 500gb

Link to comment
Share on other sites

Link to post
Share on other sites

Depends on how many mods, also you may get that error because its defaulting to the 32 bit java executable, try just installing the 64 bit one and see if that changes anything 

Quote me or @TwilightRavens if you want me to see your reply. I may go inactive for a long time from time to time because I forget how to socialize, but I will be back... eventually.

 

Main Gaming PC

AMD Ryzen 9 5950X || AsRock X570 Taichi || G.Skill TridentZ Neo DDR4 3600MHz 2 x 16GB C16 1.35v || AMD Wraith Prism || Phanteks Enthoo Pro E-ATX || Gigabyte RTX 3080 Ti Gaming OC || Samsung 970 Evo 250GB NVME SSD & Samsung 980 Pro 2TB NVME & Crucial 960GB SATA III SSD || EVGA Supernova 750W Platinum PQ || Windows 10 Pro 22H2 x64 || Gigabyte M27Q 27" 170Hz 1440P & Acer 21.5” 1080p 75hz IPS || Logitech G213 Prodigy || Logitech G502 Hero

Laptop

AMD Ryzen 5 4600H with RadeonGraphics || ASUS TUF A15 ||  DDR4 3200MHz 2 x 8GB C22 1.2v || ASUS GeForce GTX 1650 4G GDDR6 || 512GB NVME M.2 SSD  ||  Ubuntu 22.04.1 (Jammy Jellyfish)

Link to comment
Share on other sites

Link to post
Share on other sites

8 minutes ago, Snowarch said:

java -Xmx6144 -Xms6144M -jar minecraft_server.1.12.2.

you should edit the numbers here, for example if you want 8gb "java -Xmx8192 -Xms8192M -jar minecraft_server.1.12.2".

 

this works of normal minecraft i'm not sure if it works on server version

Link to comment
Share on other sites

Link to post
Share on other sites

well, rlcraft is what i was planning for first mod. that will only have me and my friend.  

 

and why does minecraft the game work fine if the server xoesn't? wouldbnt the game goto 32 bit as well if it is that? @TwilightRavens

main rig:

CPU: 8086k @ 4.00ghz-4.3 boost

PSU: 750 watt psu gold (Corsair rm750)

gpu:axle p106-100 6gbz msi p104-100 @ 1887+150mhz oc gpu clock, 10,012 memory clock*2(sli?) on prime w coffee lake igpu

Mobo: Z390 taichi ultimate

Ram: 2x8gb corsair vengence lpx @3000mhz speed

case: focus G black

OS: ubuntu 16.04.6, and umix 20.04

Cooler: mugen 5 rev b,

Storage: 860 evo 1tb/ 120 gb corsair force nvme 500

 

backup

8gb ram celeron laptop/860 evo 500gb

Link to comment
Share on other sites

Link to post
Share on other sites

@Its_MrMa

 

wish i could give all 8. gui uses one ram gig i think ot to mention swap using some other. so 6 seams safe. i hope.

main rig:

CPU: 8086k @ 4.00ghz-4.3 boost

PSU: 750 watt psu gold (Corsair rm750)

gpu:axle p106-100 6gbz msi p104-100 @ 1887+150mhz oc gpu clock, 10,012 memory clock*2(sli?) on prime w coffee lake igpu

Mobo: Z390 taichi ultimate

Ram: 2x8gb corsair vengence lpx @3000mhz speed

case: focus G black

OS: ubuntu 16.04.6, and umix 20.04

Cooler: mugen 5 rev b,

Storage: 860 evo 1tb/ 120 gb corsair force nvme 500

 

backup

8gb ram celeron laptop/860 evo 500gb

Link to comment
Share on other sites

Link to post
Share on other sites

5 minutes ago, Snowarch said:

and why does minecraft the game work fine if the server xoesn't? wouldbnt the game goto 32 bit as well if it is that? @TwilightRavens

If your Java runtime is 32 bit, it means it can't allocate more than ~3.5 GB of RAM, which is most likely why you see that error. Enter "java -version" on the command line and see what kind of output you get. To reserve 6 GB of memory you need the 64 bit Java runtime.

 

java -Xmx6144 -Xms6144M -jar minecraft_server.1.12.2

This tells Java to reserve 6 GB of RAM initially and that it can use up to 6 GB of RAM. Java tells you "Sorry, can't do that" (because 32 bit). This has nothing to do with Minecraft at this point, the program hasn't even started yet.

Remember to either quote or @mention others, so they are notified of your reply

Link to comment
Share on other sites

Link to post
Share on other sites

16 minutes ago, Snowarch said:

well, rlcraft is what i was planning for first mod. that will only have me and my friend.  

 

and why does minecraft the game work fine if the server xoesn't? wouldbnt the game goto 32 bit as well if it is that? @TwilightRavens

I’m honestly not sure, on mine on windows at least, I tell the minecraft client to override the version it comes with and instead point it to the directory i have java64 installed. I’m sure there’s a similar switch for the server in the config file to tell it to default to “whatever file path you have java installed in”

 

like said above if it is defaulting to the 32 bit version (which minecraft likes to do) it will only address 3.5GB of RAM (4GB if its PAE aware) in which case you are telling it to use more RAM than it can. Easiest way would be to uninstall all jave versions from your PC, and then reinstall only the 64 bit version.

Quote me or @TwilightRavens if you want me to see your reply. I may go inactive for a long time from time to time because I forget how to socialize, but I will be back... eventually.

 

Main Gaming PC

AMD Ryzen 9 5950X || AsRock X570 Taichi || G.Skill TridentZ Neo DDR4 3600MHz 2 x 16GB C16 1.35v || AMD Wraith Prism || Phanteks Enthoo Pro E-ATX || Gigabyte RTX 3080 Ti Gaming OC || Samsung 970 Evo 250GB NVME SSD & Samsung 980 Pro 2TB NVME & Crucial 960GB SATA III SSD || EVGA Supernova 750W Platinum PQ || Windows 10 Pro 22H2 x64 || Gigabyte M27Q 27" 170Hz 1440P & Acer 21.5” 1080p 75hz IPS || Logitech G213 Prodigy || Logitech G502 Hero

Laptop

AMD Ryzen 5 4600H with RadeonGraphics || ASUS TUF A15 ||  DDR4 3200MHz 2 x 8GB C22 1.2v || ASUS GeForce GTX 1650 4G GDDR6 || 512GB NVME M.2 SSD  ||  Ubuntu 22.04.1 (Jammy Jellyfish)

Link to comment
Share on other sites

Link to post
Share on other sites

this is in game. with bsl shadersIMG_20200425_032810.thumb.jpg.bdebb06971d861d7c73d8d281fca346e.jpg

 

but when i close the game and try that server command i get this.

Screenshot_from_2020-04-25_03-35-20.png.52aeffd93dd538ed0993386d781080b7.png

 

 

main rig:

CPU: 8086k @ 4.00ghz-4.3 boost

PSU: 750 watt psu gold (Corsair rm750)

gpu:axle p106-100 6gbz msi p104-100 @ 1887+150mhz oc gpu clock, 10,012 memory clock*2(sli?) on prime w coffee lake igpu

Mobo: Z390 taichi ultimate

Ram: 2x8gb corsair vengence lpx @3000mhz speed

case: focus G black

OS: ubuntu 16.04.6, and umix 20.04

Cooler: mugen 5 rev b,

Storage: 860 evo 1tb/ 120 gb corsair force nvme 500

 

backup

8gb ram celeron laptop/860 evo 500gb

Link to comment
Share on other sites

Link to post
Share on other sites

6 minutes ago, Snowarch said:

Screenshot_from_2020-04-25_03-35-20.png.52aeffd93dd538ed0993386d781080b7.png

You have a typo in your command line

 

-Xmx6144 - This tells java it can use a maximum of 6144 byte of memory

-Xms6144M - This tells java to reserve an initial amount of 6144 Megabyte of memory

 

That is a contradiction ;) In other words you need to add the "M" at the end of Xmx as well.

Remember to either quote or @mention others, so they are notified of your reply

Link to comment
Share on other sites

Link to post
Share on other sites

o okay i coppied the command i used to start the server from my desktop, and must of removed that by mistake. thanks. server starts correctly now.

 

@Eigenvektor

main rig:

CPU: 8086k @ 4.00ghz-4.3 boost

PSU: 750 watt psu gold (Corsair rm750)

gpu:axle p106-100 6gbz msi p104-100 @ 1887+150mhz oc gpu clock, 10,012 memory clock*2(sli?) on prime w coffee lake igpu

Mobo: Z390 taichi ultimate

Ram: 2x8gb corsair vengence lpx @3000mhz speed

case: focus G black

OS: ubuntu 16.04.6, and umix 20.04

Cooler: mugen 5 rev b,

Storage: 860 evo 1tb/ 120 gb corsair force nvme 500

 

backup

8gb ram celeron laptop/860 evo 500gb

Link to comment
Share on other sites

Link to post
Share on other sites

now that i have the server running one question. can a pc on the same wifi network as the server still join or does it break the server?

main rig:

CPU: 8086k @ 4.00ghz-4.3 boost

PSU: 750 watt psu gold (Corsair rm750)

gpu:axle p106-100 6gbz msi p104-100 @ 1887+150mhz oc gpu clock, 10,012 memory clock*2(sli?) on prime w coffee lake igpu

Mobo: Z390 taichi ultimate

Ram: 2x8gb corsair vengence lpx @3000mhz speed

case: focus G black

OS: ubuntu 16.04.6, and umix 20.04

Cooler: mugen 5 rev b,

Storage: 860 evo 1tb/ 120 gb corsair force nvme 500

 

backup

8gb ram celeron laptop/860 evo 500gb

Link to comment
Share on other sites

Link to post
Share on other sites

7 hours ago, Snowarch said:

now that i have the server running one question. can a pc on the same wifi network as the server still join or does it break the server?

Should be able to join without issue.

Quote me or @TwilightRavens if you want me to see your reply. I may go inactive for a long time from time to time because I forget how to socialize, but I will be back... eventually.

 

Main Gaming PC

AMD Ryzen 9 5950X || AsRock X570 Taichi || G.Skill TridentZ Neo DDR4 3600MHz 2 x 16GB C16 1.35v || AMD Wraith Prism || Phanteks Enthoo Pro E-ATX || Gigabyte RTX 3080 Ti Gaming OC || Samsung 970 Evo 250GB NVME SSD & Samsung 980 Pro 2TB NVME & Crucial 960GB SATA III SSD || EVGA Supernova 750W Platinum PQ || Windows 10 Pro 22H2 x64 || Gigabyte M27Q 27" 170Hz 1440P & Acer 21.5” 1080p 75hz IPS || Logitech G213 Prodigy || Logitech G502 Hero

Laptop

AMD Ryzen 5 4600H with RadeonGraphics || ASUS TUF A15 ||  DDR4 3200MHz 2 x 8GB C22 1.2v || ASUS GeForce GTX 1650 4G GDDR6 || 512GB NVME M.2 SSD  ||  Ubuntu 22.04.1 (Jammy Jellyfish)

Link to comment
Share on other sites

Link to post
Share on other sites

when i add mods, the server doesn't see them. added server rl craft modpack.

main rig:

CPU: 8086k @ 4.00ghz-4.3 boost

PSU: 750 watt psu gold (Corsair rm750)

gpu:axle p106-100 6gbz msi p104-100 @ 1887+150mhz oc gpu clock, 10,012 memory clock*2(sli?) on prime w coffee lake igpu

Mobo: Z390 taichi ultimate

Ram: 2x8gb corsair vengence lpx @3000mhz speed

case: focus G black

OS: ubuntu 16.04.6, and umix 20.04

Cooler: mugen 5 rev b,

Storage: 860 evo 1tb/ 120 gb corsair force nvme 500

 

backup

8gb ram celeron laptop/860 evo 500gb

Link to comment
Share on other sites

Link to post
Share on other sites

7 hours ago, Snowarch said:

when i add mods, the server doesn't see them. added server rl craft modpack.

Make sure you are launching forge and not vanilla.

Link to comment
Share on other sites

Link to post
Share on other sites

everytime it launches vanilla. i even deleted the whole world data but left the mod folder in a folder titled "world" how do i make it launch right? and yes i checked optifine forge is in the mods folder too. @Craftyawesome

main rig:

CPU: 8086k @ 4.00ghz-4.3 boost

PSU: 750 watt psu gold (Corsair rm750)

gpu:axle p106-100 6gbz msi p104-100 @ 1887+150mhz oc gpu clock, 10,012 memory clock*2(sli?) on prime w coffee lake igpu

Mobo: Z390 taichi ultimate

Ram: 2x8gb corsair vengence lpx @3000mhz speed

case: focus G black

OS: ubuntu 16.04.6, and umix 20.04

Cooler: mugen 5 rev b,

Storage: 860 evo 1tb/ 120 gb corsair force nvme 500

 

backup

8gb ram celeron laptop/860 evo 500gb

Link to comment
Share on other sites

Link to post
Share on other sites

1 hour ago, Snowarch said:

everytime it launches vanilla. i even deleted the whole world data but left the mod folder in a folder titled "world" how do i make it launch right? and yes i checked optifine forge is in the mods folder too. @Craftyawesome

Your directory should look like this

image.png.9063d599e6a0079b175811c5a11ff8d1.png

 

Your launch command should be

java -Xms10G -Xmx10G -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20 -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=8 -XX:InitiatingHeapOccupancyPercent=15 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:MaxTenuringThreshold=1 -Dusing.aikars.flags=”https://mcflags.emc.gs” -Daikars.new.flags=true -jar forge-1.15.2-31.1.18.jar nogui

(change ram values and the name of the jar in the launch command to match yours)

Link to comment
Share on other sites

Link to post
Share on other sites

mine looks like this to launch. the picture is the server world file. was taken with server running. i do not plan to have a 24hour server or anything like that. as you can see mods are there, but nor loaded into the server/world at all. just ignored. @Craftyawesome

java -Xmx6144M -Xms6144M -jar minecraft_server.1.12.2.jar

 

Screenshot_from_2020-04-25_09-02-10.thumb.png.48892ce8e10c8d7229d7a52389b7b0cb.png

main rig:

CPU: 8086k @ 4.00ghz-4.3 boost

PSU: 750 watt psu gold (Corsair rm750)

gpu:axle p106-100 6gbz msi p104-100 @ 1887+150mhz oc gpu clock, 10,012 memory clock*2(sli?) on prime w coffee lake igpu

Mobo: Z390 taichi ultimate

Ram: 2x8gb corsair vengence lpx @3000mhz speed

case: focus G black

OS: ubuntu 16.04.6, and umix 20.04

Cooler: mugen 5 rev b,

Storage: 860 evo 1tb/ 120 gb corsair force nvme 500

 

backup

8gb ram celeron laptop/860 evo 500gb

Link to comment
Share on other sites

Link to post
Share on other sites

1 minute ago, Snowarch said:

mine looks like this to launch. the picture is the server world file. was taken with server running. i do not plan to have a 24hour server or anything like that. as you can see mods are there, but nor loaded into the server/world at all. just ignored. @Craftyawesome

java -Xmx6144M -Xms6144M -jar minecraft_server.1.12.2.jar

 

Screenshot_from_2020-04-25_09-02-10.thumb.png.48892ce8e10c8d7229d7a52389b7b0cb.png

My screenshot was taken in the root directory, and that is where the mods directory should be. Also minecraft_server.1.12.2.jar is probably vanilla, have you installed forge? http://files.minecraftforge.net/maven/net/minecraftforge/forge/index_1.12.2.html

Link to comment
Share on other sites

Link to post
Share on other sites

id assume so. my minecraft client runs mods no issue. also in the mods folder in the screen shot there is a mod called "forgeoptifine.jar" @Craftyawesome

main rig:

CPU: 8086k @ 4.00ghz-4.3 boost

PSU: 750 watt psu gold (Corsair rm750)

gpu:axle p106-100 6gbz msi p104-100 @ 1887+150mhz oc gpu clock, 10,012 memory clock*2(sli?) on prime w coffee lake igpu

Mobo: Z390 taichi ultimate

Ram: 2x8gb corsair vengence lpx @3000mhz speed

case: focus G black

OS: ubuntu 16.04.6, and umix 20.04

Cooler: mugen 5 rev b,

Storage: 860 evo 1tb/ 120 gb corsair force nvme 500

 

backup

8gb ram celeron laptop/860 evo 500gb

Link to comment
Share on other sites

Link to post
Share on other sites

3 minutes ago, Snowarch said:

id assume so. my minecraft client runs mods no issue. also in the mods folder in the screen shot there is a mod called "forge optifine."

You need to install the server separately.

image.png.b627365b8c7b2b6929e8616aa4c6e06c.png

 

And again, you will need to move the mods folder to the root directory

Link to comment
Share on other sites

Link to post
Share on other sites

what do you even mean? matter where you put the server file, itll dump everything in home, so since

 

.minecraft/mods, ~/world/mods, and .minecraft/versions/rlcraftbeta1.12.2

 

are the only places mods can be put, theyre all there. also what makes no sense is i can add shaders to the server despite it being vanilla.

 

and when you say "install forge properly" thats confusing too. some time back, i got my server to load rlcraft but it was still concidered vanilla(the V-logo on server list). i had to reinstall the os since then, so i lost this server now it will no longer work. same .jar file as last time too.

 

@Craftyawesome

main rig:

CPU: 8086k @ 4.00ghz-4.3 boost

PSU: 750 watt psu gold (Corsair rm750)

gpu:axle p106-100 6gbz msi p104-100 @ 1887+150mhz oc gpu clock, 10,012 memory clock*2(sli?) on prime w coffee lake igpu

Mobo: Z390 taichi ultimate

Ram: 2x8gb corsair vengence lpx @3000mhz speed

case: focus G black

OS: ubuntu 16.04.6, and umix 20.04

Cooler: mugen 5 rev b,

Storage: 860 evo 1tb/ 120 gb corsair force nvme 500

 

backup

8gb ram celeron laptop/860 evo 500gb

Link to comment
Share on other sites

Link to post
Share on other sites

11 minutes ago, Snowarch said:

what do you even mean? matter where you put the server file, itll dump everything in home, so since

 

.minecraft/mods, ~/world/mods, and .minecraft/versions/rlcraftbeta1.12.2

 

are the only places mods can be put, theyre all there. also what makes no sense is i can add shaders to the server despite it being vanilla.

 

and when you say "install forge properly" thats confusing too. some time back, i got my server to load rlcraft but it was still concidered vanilla(the V-logo on server list). i had to reinstall the os since then, so i lost this server now it will no longer work. same .jar file as last time too.

 

@Craftyawesome

I'm not aware of forge server looking for any mods outside of the mods folder in the same directory as the jar. Vanilla logo sounds more like a bug than running forge mods on vanilla.

Link to comment
Share on other sites

Link to post
Share on other sites

so i should move the server jar into the world folder?

Spoiler

 

 

main rig:

CPU: 8086k @ 4.00ghz-4.3 boost

PSU: 750 watt psu gold (Corsair rm750)

gpu:axle p106-100 6gbz msi p104-100 @ 1887+150mhz oc gpu clock, 10,012 memory clock*2(sli?) on prime w coffee lake igpu

Mobo: Z390 taichi ultimate

Ram: 2x8gb corsair vengence lpx @3000mhz speed

case: focus G black

OS: ubuntu 16.04.6, and umix 20.04

Cooler: mugen 5 rev b,

Storage: 860 evo 1tb/ 120 gb corsair force nvme 500

 

backup

8gb ram celeron laptop/860 evo 500gb

Link to comment
Share on other sites

Link to post
Share on other sites

1 minute ago, Snowarch said:

so i should move the server jar into the world folder?

  Hide contents

 

 

Move the mods folder to home and install forge.

Link to comment
Share on other sites

Link to post
Share on other sites

alright ill try that.

main rig:

CPU: 8086k @ 4.00ghz-4.3 boost

PSU: 750 watt psu gold (Corsair rm750)

gpu:axle p106-100 6gbz msi p104-100 @ 1887+150mhz oc gpu clock, 10,012 memory clock*2(sli?) on prime w coffee lake igpu

Mobo: Z390 taichi ultimate

Ram: 2x8gb corsair vengence lpx @3000mhz speed

case: focus G black

OS: ubuntu 16.04.6, and umix 20.04

Cooler: mugen 5 rev b,

Storage: 860 evo 1tb/ 120 gb corsair force nvme 500

 

backup

8gb ram celeron laptop/860 evo 500gb

Link to comment
Share on other sites

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

×