Jump to content

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

Batch file to start Server?


  • Please log in to reply
3 replies to this topic

#1

Wastelander69

Posted 21 November 2011 - 06:25 AM

Hi,

Running a small server on Windows 7 64 Bit

V1.0.0 Registered of Minecraft.

I7 720 4.1Mhz CPU
12Gb Ram
Nvidia GTX 570 - Super Overclocked
2 x widescreen monitors


DO I need anyting in the startup batch file for server?

I currently have this: java -jar minecraft_server.jar

I used to have this for 1.9.x: java -Xmx1024M -Xms1024M -jar minecraft_server.jar

Anything to be gained by these options?


Thanks
You'll never see the stars if your always looking down.

Register or log in to remove.

#2

gixxy
    gixxy

    Iron Miner

  • Members
  • 252 posts
  • Location: Louisiana

Posted 21 November 2011 - 06:41 AM

Well the first one will only allocate a very small amount of your RAM to the server (the default). The second allocates 1024MB (1GB) to the server. Which can be changed:

So
java -Xmx1024M -Xms1024M -jar minecraft_server.jar (1GB)
java -Xmx2048M -Xms2048M -jar minecraft_server.jar (2GB)
java -Xmx3072M -Xms3072M -jar minecraft_server.jar (3GB)
java -Xmx4096M -Xms4096M -jar minecraft_server.jar (4GB)

and so on.

MB = X*1024

X = # of GB you want server to have avalible.
Posted Image

#3

Wastelander69

Posted 21 November 2011 - 06:49 AM

View Postgixxy, on 21 November 2011 - 06:41 AM, said:

Well the first one will only allocate a very small amount of your RAM to the server (the default). The second allocates 1024MB (1GB) to the server. Which can be changed:

So
java -Xmx1024M -Xms1024M -jar minecraft_server.jar (1GB)
java -Xmx2048M -Xms2048M -jar minecraft_server.jar (2GB)
java -Xmx3072M -Xms3072M -jar minecraft_server.jar (3GB)
java -Xmx4096M -Xms4096M -jar minecraft_server.jar (4GB)

and so on.

MB = X*1024

X = # of GB you want server to have avalible.

Thanks

Your reccomendation?
You'll never see the stars if your always looking down.

#4

Juze
    Juze

    Creeper Destroyer

  • Members
  • 5724 posts
  • Location: Finland
  • Minecraft: Juze

Posted 21 November 2011 - 11:33 AM

Quote

I7 720 4.1Mhz CPU

You're going to have hard time even running a simple script with that CPU, bud. Unless you mean GHz, of course. :D

Graphics card doesn't make a difference when hosting a server.

The -Xms option is quite reduntant, because it's the lowest memory size and it's already defined by -Xmx (max size) already. You can also use 1G to define 1024M = 1GB of memory.

I use this, personally:

java -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+CMSIncrementalPacing -XX:ParallelGCThreads=2 -XX:+AggressiveOpts -Xmx1536M -jar craftbukkit.jar nogui

Has better garbage collection.
Posted Image
AngelCraft 64 Texture Pack v2.0.2 (Beta 1.8.1)
Posted Image
Posted Image
Nerd, geek, server admin, guy wearing a rainbow skin (with an office suit of epicness)? That's me.

Swingerzetta said:

Juze has spoken, and so it will be.

Doomthief said:

1. Cry a river
2. Build a bridge
3. Get over it