When I try to launch minecraft server with the recommended command line:
java -Xmx1024M -Xms1024M -jar minecraft_server.jar nogui
I get the following crash:
Exception in thread "main" java.lang.RuntimeException: Duplicate stat id: "Trans
latableComponent{key='stat.useItem', args=[TextComponent{text='[', siblings=[Tex
tComponent{text='Brick Stairs', siblings=[], style=Style{hasParent=true, color=n
ull, bold=null, italic=null, underlined=null, obfuscated=null, clickEvent=null,
hoverEvent=HoverEvent{action=SHOW_ITEM, value='TextComponent{text='{id:108s,Dama
ge:0s,Count:1b,}', siblings=[], style=Style{hasParent=false, color=null, bold=nu
ll, italic=null, underlined=null, obfuscated=null, clickEvent=null, hoverEvent=n
ull}}'}}}, TextComponent{text=']', siblings=[], style=Style{hasParent=true, colo
r=null, bold=null, italic=null, underlined=null, obfuscated=null, clickEvent=nul
l, hoverEvent=HoverEvent{action=SHOW_ITEM, value='TextComponent{text='{id:108s,D
amage:0s,Count:1b,}', siblings=[], style=Style{hasParent=false, color=null, bold
=null, italic=null, underlined=null, obfuscated=null, clickEvent=null, hoverEven
t=null}}'}}}], style=Style{hasParent=true, color=ºf, bold=null, italic=null, und
erlined=null, obfuscated=null, clickEvent=null, hoverEvent=HoverEvent{action=SHO
W_ITEM, value='TextComponent{text='{id:108s,Damage:0s,Count:1b,}', siblings=[],
style=Style{hasParent=false, color=null, bold=null, italic=null, underlined=null
, obfuscated=null, clickEvent=null, hoverEvent=null}}'}}}], siblings=[], style=S
tyle{hasParent=false, color=null, bold=null, italic=null, underlined=null, obfus
cated=null, clickEvent=null, hoverEvent=null}}" and "TranslatableComponent{key='
stat.useItem', args=[TextComponent{text='[', siblings=[TextComponent{text='Ink S
ac', siblings=[], style=Style{hasParent=true, color=null, bold=null, italic=null
, underlined=null, obfuscated=null, clickEvent=null, hoverEvent=HoverEvent{actio
n=SHOW_ITEM, value='TextComponent{text='{id:108s,Damage:0s,Count:1b,}', siblings
=[], style=Style{hasParent=false, color=null, bold=null, italic=null, underlined
=null, obfuscated=null, clickEvent=null, hoverEvent=null}}'}}}, TextComponent{te
xt=']', siblings=[], style=Style{hasParent=true, color=null, bold=null, italic=n
ull, underlined=null, obfuscated=null, clickEvent=null, hoverEvent=HoverEvent{ac
tion=SHOW_ITEM, value='TextComponent{text='{id:108s,Damage:0s,Count:1b,}', sibli
ngs=[], style=Style{hasParent=false, color=null, bold=null, italic=null, underli
ned=null, obfuscated=null, clickEvent=null, hoverEvent=null}}'}}}], style=Style{
hasParent=true, color=ºf, bold=null, italic=null, underlined=null, obfuscated=nu
ll, clickEvent=null, hoverEvent=HoverEvent{action=SHOW_ITEM, value='TextComponen
t{text='{id:108s,Damage:0s,Count:1b,}', siblings=[], style=Style{hasParent=false
, color=null, bold=null, italic=null, underlined=null, obfuscated=null, clickEve
nt=null, hoverEvent=null}}'}}}], siblings=[], style=Style{hasParent=false, color
=null, bold=null, italic=null, underlined=null, obfuscated=null, clickEvent=null
, hoverEvent=null}}" at id stat.useItem.108
at lo.h(SourceFile:42)
at lw.d(SourceFile:109)
at lw.a(SourceFile:60)
at ii.b(SourceFile:359)
at net.minecraft.server.MinecraftServer.main(SourceFile:514)
Removing the -Xms flag and it works ok:
java -Xmx1024M -jar minecraft_server.jar nogui
Linked issues
is duplicated by 1
Comments 13
Unable to reproduce this issue. I already had a server running using Multicraft (for testing) and it booted fine. In fact the server is using a 256MB ram limit.
/usr/bin/java -Xmx256M -Xms256M -jar /home/minecraft/multicraft/servers/server1/minecraft_server.13w39b.jar nogui
Above works fine and includes -Xms in it.
Cannot confirm:
D:\MineCraft\server-test>java -Xmx1024M -Xms1024M -jar minecraft_server.jar nogu
i
[12:40:55] [Server thread/INFO]: Starting minecraft server version 13w39b
[12:40:55] [Server thread/INFO]: Loading properties
[12:40:55] [Server thread/INFO]: Default game type: CREATIVE
[12:40:55] [Server thread/INFO]: Generating keypair
[12:40:55] [Server thread/INFO]: Starting Minecraft server on *:25566
[12:40:55] [Server thread/WARN]: **** SERVER IS RUNNING IN OFFLINE/INSECURE MODE
!
[12:40:55] [Server thread/WARN]: The server will make no attempt to authenticate
usernames. Beware.
[12:40:55] [Server thread/WARN]: While this makes the game possible to play with
out internet access, it also opens up the ability for hackers to connect with an
y username they choose.
[12:40:55] [Server thread/WARN]: To change this, set "online-mode" to "true" in
the server.properties file.
[12:40:55] [Server thread/INFO]: Preparing level "new-world"
[12:40:55] [Server thread/INFO]: Preparing start region for level 0
[12:40:56] [Server thread/INFO]: Preparing spawn area: 69%
[12:40:57] [Server thread/INFO]: Done (1,352s)! For help, type "help" or "?"
There is no logfile, java crashes first.
My guess is it's XP 32-bit specific, as I have no problem on my windows 7 machine.
This is a technical support issue; this site is for bug reports only. For technical support please use the Mojang Support Center.
This is not a bug. It is because you are using a 32bit JVM and it cannot allocate enough contiguous heap space. Use a 64bit version of Java or don't set your min memory that high.
That doesn't make any sense at all. Memory allocations do not have to be contiguous. In addition when I tested above (see earlier comment) I did the test on a 32-bit JVM on a 32-bit installation of Ubuntu where at the time I only had 512MB of ram (hence the low allocation).
I'm sorry you do not understand the explanation but it is nonetheless true. The problem isn't the specific setting, it is how much can be allocated at the time the JVM instance starts. This is related to the JVM implementation and it may behave entirely different on Windows than Linux. I don't understand what point you are trying to make other than you cannot reproduce this issue on Linux with different settings. The OP stated they were using 32-bit Windows and would likely work with lower -Xms/-Xmx setting assuming their OS can allocate it.
As I said, this is not a bug, use a 32 bit JVM or a different -Xms setting.
"Many JVMs require that the amount of memory specified by -Xmx be available as contiguous reserved memory, which is usually reserved in the virtual memory / swap space. But if there is not enough swap space, then the OS may try to reserve it all as physical memory. If both fails, the JVM cannot load." ... a simple Google search will tell you this, many times, in multiple places.
This is a technical support issue; this site is for bug reports only. For technical support please use the Mojang Support Center.
Please attach the complete logfile.