Does anyone know how to set java parameters

Are you new to setting up a server and need a bit of pointing in the right direction? This is the place to be.

Post Permalink
by jayjaymozza » 10/5/2012

All of a sudden my server console get spammed with "warning did the time change or is the server overloaded" this has come from no where, i never used to get it but i am for some strange reason!

So im wondering does anyone know how to set java parameter so that java will use more memory ?
Check out my Gaming Youtube channel ... rid&view=0 " onclick=";return false;
User avatar
Level 13
Journeyman Explorer
Posts: 1217
Joined: 8/16/12

Post Permalink
by Rogue » 10/5/2012

Java "parameters" (commonly known as JVM flags) are set using either option parameters or simple parameters. For maximum and minimum heap sizes, you can use the Xmx and Xms flags like so:

Code: Select all
java -server -Xmx####M -Xms####M -jar craftbukkit.jar

(I also threw in the -server flag, which will induce a slower startup in exchange for better runtime performance).

Simply replace the ####'s with the number of megabytes you wish to add to the task. :)
My portfolio (unfinished):
Please don't PM me with problems, post them instead so others can help! :)
User avatar
Level 3
Apprentice Crafter
Posts: 636
Joined: 11/4/11

Return to Server Help