You wont see any changes unless the server is under heavy load. The server will take what it needs but you set it's bounds. So the least it will take is 1Gb and the most is 3Gb.
There is no pro/con for not using incremental numbers. Java uses binary numbers. One gigabyte is equal to 1024^3 bytes. 8 bits can have a value from 0-255 (256 values) also a power of 2 (2^8) anyway it comes all down to how your computer is engineered. Read more here. So in essence Java will use this system to allocate ram. Meaning that it will only take numbers that are in this binary standard.
That's odd. It's been a while since I have played around with Ubuntu. I will take a look at it when I'm not swamped with my Aerospace Engineering. (College...) Please refer here for more help, while I learn more about the issue.
I'm just wondering. Do u select how much ram u have? or how much goes to the server? Does it affect the computer (laptop) in anyway? My laptop is 6 gig ram and say i put 2 or 4 gigs into the server. Will it make all other things slower? What would the recommended amount of players be? (I need at least 8 slots) Thanks for your help! -Andrich2000
I keep getting the error that it cannot open the file. I have tried renaming the file and renaming the path in the .bat file. I have no idea what I am doing wrong.
I have a problem.. i cant add more RAM to my server check it out. SET BINDIR=%~dp0 CD /D "%BINDIR%" "%ProgramFiles(x86)%\Java\jre6\bin\java.exe" -Xincgc -Xmx1G -jar craftbukkit.jar PAUSE Please help me everytime switch Xmx1G to 2G or something it doesnt work. and others are Xms1024-Xmx2048 or something like taht. but if mine just say Xmx1G then how would i add more RAM? Please help me.
just throwing this out there but mac is unix with a fancy gui. linux is a version of unix. the only difference is where java is located. #!/bin/sh"/usr/bin/java" -d64 -Xmx1G -Xms1G -jar craftbukkit.jar
i followed your instructions but i cant launch the bat it always says unable to acess jar file craftbukkit jar.
i have windows seven 64 bit operating system and i set up a server for me and one friend he says he has lag but i dont experience any lag and he alsso times out.i seen videos and read the tutorial above im thinking of adding more ram.my computer has 4gb of ram but im afraid if i bump it up it will slow the computer and my dad would kill me.lease help thanks
You yourself will be able to test the performance of the server. If you have no lag then the server itself has no lag. The reason your buddy is lagging is because of your connection. You need a pretty good connection to have anything more than 5 people online. Rule of thumb is for every person you have on your server have 512mb (mega-bits) of up and download speed. Same goes for the client. He also needs a decent connection.
Cool ill take that down. If anyone has a nice guide on how to set up a server on a Mac I would be happy to add it. I simply don't know many people who are doing it lol.
You're using 32-bit java. Make sure you have 64-bit installed. 32-bit Java can handle a max of 1.5 GB. To download 64-bit java simply use 64-bit internet explorer and go to java's home page or just click HERE.
I have a question, and it might sound stupid, but hopefully you will not ignore me. Does it matter which is first: -Xmx or -Xms? My run bat looks like this: Code: @ECHO OFF SET BINDIR=%~dp0 CD /D "%BINDIR%" "%ProgramFiles%\Java\jre7\bin\java.exe" -Xmx4096M -Xms4096M -jar craftbukkit-1.2.3-R0.3-20120322.072243-36.jar PAUSE And I'm just curious about those xm things, and what does "-Xincgc" do? Everything works fine, I have no problems on my server, but I'm still confused about that does it matter which is first? :L And what is that "-server -d64" thing: ?ps. Very good guide!
i have a problem when i try to add more than 2 gb ram to my server. it says:unrecognised option: -Xm1024m error:could not create the java virtual machine. error:fatal error......
Maybe even I can help. If you have it "-Xm1024m" It is then incorrectly writed. (I suppose, not sure tho. :L) If the other -Xm thing is "-Xmx1024M", change your "-Xm1024m" to -Xms1024M If there already is -Xms1024M, change your -Xm1024m to -Xmx1024M. Hopefully you can solve that out.
Xincgc just means Incremental Garbage Collection. From Java's site -server -d64 simply state that Java should treat this .jar as a server. And d64 mean using 64bit java.
Yes that is correct =D thank you for helping me out. Between school, work and all other sorts of stuff this can get pretty taxing.
That is what InhumanSkills said. I suppose that "-server" can be replaced with "-jar" if needed. Or maybe it is the same thing. I don't know but I have it as "-jar" in my ".bat" files. Hopefully this helped a bit.
Unfortunately -server is not the same as -jar. Forgetting to put -jar will prevent the server from launching. "-server" is a tag you put if you want Java to launch the Java HotSpot Server VM. Read more about tags here.
My curiosity started again. Does that server thing give even more speed to server or does it help in any way your server?