Jump to content

  • Curse Sites
Become a Premium Member! Help
Latest News Article

How to add more ram to server?


  • Please log in to reply
9 replies to this topic

#1

MabPwnU
    MabPwnU

    Tree Puncher

  • Members
  • 14 posts

Posted 15 October 2011 - 02:27 AM

i have a server that i host on my PC and also play on, and my friend connects to it. was wondering if theres a way to make the server use more ram?

PC specs
6gb dd3 ram
i7 950 3ghz
gts 450

INTERNET specs
Download 21.14
upload 2.14

i know i dont have fast upload speed but i only host the server for me and 2 others bassicaly, so how much ram should i let the server use and how do i do that? i remember reading that you have to make a .bat file for the server but this was back in 1.3 when i use to play so im not sure if its the same way. If it is can someone post a link showing me how to do that? any help is greatly appreciated :)

Register or log in to remove.

#2

MikeMatt16
  • Location: New Jersey
  • Minecraft: MikeMatt16

Posted 15 October 2011 - 02:31 AM

Okay, your specs seem good enough to dedicate 2 gigs of memory to the server. To do this make a Batch file and use this:
java -Xmx2048M -Xms2048M -jar minecraft_server.jar nogui

If you do not know how to make a Windows Batch File, just start up notepad and paste that in. When you go to "Save As..." change the type to All Files and add .bat to the end of the file name. Be sure to put the batch file in the same folder as the server. Instead of running the server by loading the jar, just run the batch file.

#3

MabPwnU
    MabPwnU

    Tree Puncher

  • Members
  • 14 posts

Posted 15 October 2011 - 02:33 AM

View PostMikeMatt16, on 15 October 2011 - 02:31 AM, said:

Okay, your specs seem good enough to dedicate 2 gigs of memory to the server. To do this make a Batch file and use this:
java -Xmx2048M -Xms2048M -jar minecraft_server.jar nogui

If you do not know how to make a Windows Batch File, just start up notepad and paste that in. When you go to "Save As..." change the type to All Files and add .bat to the end of the file name. Be sure to put the batch file in the same folder as the server. Instead of running the server by loading the jar, just run the batch file.


ty very much for the quick reply :) will do and will reply if its successfull

#4

MabPwnU
    MabPwnU

    Tree Puncher

  • Members
  • 14 posts

Posted 15 October 2011 - 02:35 AM

ok so i did that and it just opend real fast then closed. any suggestions?

EDIT - FIXED IT, i placed the .jar file in the wrong folder :P

thank you for the help ;)

EDIT AGAIN!

one more "problem" . i pressed f3 and noticed hat minecraft was only using 175mb out of 910 mb. isnt that a bit low? or does minecraft normally run at that low of ram?

#5

MikeMatt16
  • Location: New Jersey
  • Minecraft: MikeMatt16

Posted 15 October 2011 - 02:46 AM

View PostMabPwnU, on 15 October 2011 - 02:35 AM, said:

one more "problem" . i pressed f3 and noticed hat minecraft was only using 175mb out of 910 mb. isnt that a bit low? or does minecraft normally run at that low of ram?

Well that's the game. The server is able to use up to 2 gigs to dedicate to the server. The amount that Minecraft uses isn't controlled by the server. And if Minecraft is uses 175mb, that's really good. It means that the game doesn't need much ram to run. So your computer is perfect for this. Aside from you Upload speed.

#6

MabPwnU
    MabPwnU

    Tree Puncher

  • Members
  • 14 posts

Posted 15 October 2011 - 03:11 AM

View PostMikeMatt16, on 15 October 2011 - 02:46 AM, said:

Well that's the game. The server is able to use up to 2 gigs to dedicate to the server. The amount that Minecraft uses isn't controlled by the server. And if Minecraft is uses 175mb, that's really good. It means that the game doesn't need much ram to run. So your computer is perfect for this. Aside from you Upload speed.

ahh ok i figured as much :/ yea my uplaod is low :/ but i figure for 2 people it should be fine :)

thanks again :)

#7

KrazyFear

Posted 28 September 2012 - 06:34 AM

hi guys i just need some help when i open the.bat file it doesnt work when i open it,it just closes quickly plz help i need ram ASAP.

#8

Hidinginthelight

Posted 28 September 2012 - 06:50 AM

View PostKrazyFear, on 28 September 2012 - 06:34 AM, said:

hi guys i just need some help when i open the.bat file it doesnt work when i open it,it just closes quickly plz help i need ram ASAP.

Hi KrazyFear, this is an old topic and in the archives. I'd recommend opening a new thread in the server support section of the forum http://www.minecraft...server-support/

Include your system specs, CPU, RAM, etc. Also include the arguments you are using in your batch file.

#9

xBublizZ
  • Location: Stockholm, Sweden
  • Minecraft: mr4ffe
  • Xbox:FizZy BublizZ

Posted 28 September 2012 - 06:53 AM

View PostKrazyFear, on 28 September 2012 - 06:34 AM, said:

hi guys i just need some help when i open the.bat file it doesnt work when i open it,it just closes quickly plz help i need ram ASAP.
Open w/ notepad! U should try Notepad++ it´s alot better!
Posted Image

#10

Naughty_Biscuit

Posted 16 October 2012 - 08:56 PM

Hey, im having the same problem, and i cant open the file with anything, i just have open, no open with??? what do i do??? please advise