Minecraft Blogs / Tutorial

Adding Memory to a Bukkit Server

  • 1,038 views, 1 today
  • 1
  • 1
  • 2
AngryCupcake274's Avatar AngryCupcake274
Level 21 : Expert Cake
6
This is a VERY short process.  Doing this, you will lower the chance of your server running out of memory and crashing.  Here's what you do:

FIrst, you run your Bukkit server for the first time, and after it starts up, stop it.

Now, you need to right-click your "run.bat" (or your startup file) and click "Edit".  YOu should see some text like this:

[b]java -Xmx1024M -jar craftbukkit.jar -o true[/b]
[b]PAUSE[/b]

Let's say you wanted to allocate 4GB to your server.  Replace the -Xmx1024M with -Xmx4096M or -Xmx4G


Then save the batch file and run it!
Tags

Create an account or sign in to comment.

1
03/18/2014 3:11 pm
Level 24 : Expert Toast
nolez15
nolez15's Avatar
*Assuming it's home-hosted*
1
03/20/2014 9:02 am
Level 21 : Expert Cake
AngryCupcake274
AngryCupcake274's Avatar
My server is hosted at my house, but not on my computer.  I have a dedicated computer just for the server.  You can also use the server file transfer system if you DON'T have direct access to your server, and edit the batch file that way.
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome