Take the 2-minute tour ×
Arqade is a question and answer site for passionate videogamers on all platforms. It's 100% free, no registration required.

I'm wondering if I was to run minecraft in a 32bit or 64bit ubuntu server; would there be a benefit (speed improvements) or something else, or just the same? Downsides?

share|improve this question
3  
I guess I'm one of those people who plays Minecraft using the 32-bit JVM on a 64-bit OS, the performance sucks. The moment I switched over to using the 64-bit JVM, performance improved dramatically. The game became playable again. I don't know why, that's just the way it is. YMMV. –  Jeff Mercado Aug 16 '11 at 3:30
    
32 bit has a 4 GB memory limit, this could be relevant for huge worlds (also @Jeff) –  Zommuter Aug 16 '11 at 3:54
    
@Tobias: Interestingly, my machine only has 4GB of memory so the memory limit shouldn't have affected me AFAIK yet this still happens. –  Jeff Mercado Aug 16 '11 at 4:58
    
@Jeff I had the same experience with the 32 and 64 bit JVM. Not sure why. –  Fambida Aug 16 '11 at 6:17
1  
@Arda Xi, Alexy13: WoW64 seems to work like the adapter design pattern. It's not an emulation for the same reason Wine is Not an Emulator. In all these cases, the machine code is directly executed on the CPU; only the APIs for system calls and some libraries that need some "translation". (this is different from Intel Mac OS X running PowerPC applications: that was true (CPU) emulation) — See also en.wikipedia.org/wiki/AMD64#Operating_modes –  Denilson Sá Aug 16 '11 at 21:56

4 Answers 4

up vote 17 down vote accepted

Minecraft is written in Java, so it should "adapt" itself to both 32-bit and 64-bit systems (depending if you have a 32-bit or 64-bit Java runtime).

While Minecraft itself is not optimized for 64-bit, it will take advantage of JVM optimizations for 64-bit processors. Basically, this means more general-purpose registers available (16 in 64-bit against 8 in 32-bit, which means better machine code and less RAM access, improving performance) and larger addressable memory. On the other hand, since now pointers take up twice as much space, there is a little extra overhead for using 64-bit.

But you should also think about the operating system, as it will also take advantage of 64-bit improvements. If you have more than 2GB or 3GB of RAM, your operating system should be 64-bit, else it won't access all RAM (or will have a considerable overhead doing so). And if you have a 64-bit operating system, you should also go with a 64-bit Java Runtime for better performance (as other users already commented).

By the way, in my opinion, you should always go to 64-bit unless you have a very good reason to avoid it, like compatibility reasons (which is not this case).

Related question on StackOverflow: Does Java 64bit perform better than the 32bit version?


Wait a minute! I talked code written in Java, but how about native libraries? Like OpenGL support and OpenAL? They are available on both 32-bit and 64-bit versions, and the correct version will be loaded. And I can confirm that on my Linux 64-bit system, it loads the 64-bit version of those native Java libraries. (as an experiment, I've deleted the 32-bit versions and Minecraft still runs fine)

share|improve this answer
    
What happens if I only have 1.7gb of ram? –  alexy13 Aug 16 '11 at 11:34
2  
Buy Moar RAM! Honestly though, memory is so cheap these days it isn't worth running less than 4 unless your motherboard can't handle it. –  Adanion Aug 16 '11 at 12:48
1  
Or if you bought a server from amazon.... –  alexy13 Aug 16 '11 at 14:17
1  
@Alexy13 If Amazon servers support 64-bit mode, that's because the underlying hardware is 64-bit. Thus, I still think you should go with 64-bit OS and 64-bit Java. As I said, I see no reason for using 32-bit versions unless you have compatibility problems. –  Denilson Sá Aug 16 '11 at 16:40
    
@Denilson Perfect answer! –  alexy13 Aug 16 '11 at 18:01

For me, I have got a weird solutions I have a 64-bit Processor and OS, but the game was unplayable, I then decided to try out the x86 version (32-bit). I know this normally doesn't improve anything, but when I did I have a decent framerate of 60fps WHEN RECORDING! The performance dramatically improved with 32-bit for me. However, if your machine is 64-bit, I would recommend using the 64-bit version first, then use the 32-bit. After that you can decide which to use.

My system info ATI Radeon X1200 Graphics AMD Turion 64X2 Dolby Sound Room Atheros Wireless Windows 7 Professional x64 SP1/Ubuntu 13.10 x64

share|improve this answer

I'm running my server on a 64 CentOs server and it doesn't seem to have improved anything. Minecraft only records the movements X,Y,Z of the players with items and block placed in the world. So running it on a 32 or 64 bit OS won't change anything.

For better performance of the game you need lots of RAM and fast HDD maybe a 10k RPM or 15 RPM on the server. That way you ensure faster loading and higher efficiency.

I have 8GB RAM on a Quad core system with 2 HDD 10k RPM, and I haven't noticed any lag with 20+ players online.

share|improve this answer

Minecraft is not designed as a 64-bit application, and thus, while usable on a 64-bit OS, won't see any sorts of improvements from a technical standpoint.

However, if you also install the 64-bit java runtime environment, you may notice some slight performance optimization, but a 64-bit OS on its own will not have much of an effect.

share|improve this answer
    
Sorry, but I disagree. As Minecraft is written in Java, any improvements come from Java Virtual Machine, and not from Minecraft itself. –  Denilson Sá Aug 16 '11 at 16:41
    
@Denilson - be that as it may, I think a downvote is disingenuous, given that the OP never mentioned JVM at all. –  Raven Dreamer Aug 16 '11 at 17:26
    
The downvote was because I believe this answer is not technically correct. No Java application is designed as 32-bit or 64-bit, as it is the job of Java Runtime. This is different from a game written in C/C++, that gets compiled to one architecture "and thus, while usable on a 64-bit OS, won't see any sorts of improvements…" If this answer was given to a C/C++ game, that would have been an upvote, but for a Java game, I believe it is incorrect. –  Denilson Sá Aug 16 '11 at 17:45
    
@Denilson - Again, the JVM, 64 bit or otherwise, is something independent of the operating system being 64-bit. (Admittedly, the former is impossible without the latter, but there are doubtless people who have 64-bit OSes and are using 32-bit Java.) I have edited my answer to clarify this. –  Raven Dreamer Aug 16 '11 at 17:54
    
While I still believe that a 64-bit OS might still have benefits (because the OS itself will also use 64-bit optimizations), it would be nit-picking and not too relevant. Thanks for the clarification! –  Denilson Sá Aug 16 '11 at 17:59

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.