Jump to content

  • Curse Sites
Become a Premium Member! Help
Latest News Article

[HELP] Beta + java error = crash


  • Please log in to reply
7 replies to this topic

#1

zajacmp3
    zajacmp3

    Tree Puncher

  • Members
  • 27 posts

Posted 22 December 2010 - 06:41 PM

Hello,
I noticed today few crashes...
Something about my server in the first place. It is a VPS with 100% of phenom II X6 2,8Ghz 2GB Ram 100mbit/s
System: Ubuntu 10.10 x64 bit.
I launch server from root, with command:
screen -S mine java -Xmx2048M -Xms2048M -jar minecraft_server.jar nogui

And in about... Few hours I get this error:
2010-12-22 20:21:06 [INFO]  ok
Player count: 16
Player count: 16
java.lang.ClassCastException:  cannot be cast to lk
		at lk.equals(SourceFile:18)
		at java.util.HashMap.put(HashMap.java:393)
		at java.util.HashSet.add(HashSet.java:217)
		at ci.a(SourceFile:56)
		at ff.f(SourceFile:1399)
		at fm.f(SourceFile:29)
		at net.minecraft.server.MinecraftServer.h(SourceFile:271)
		at net.minecraft.server.MinecraftServer.run(SourceFile:216)
		at cj.run(SourceFile:490)
2010-12-22 20:21:17 [SEVERE] Unexpected exception
java.lang.ClassCastException:  cannot be cast to lk
		at lk.equals(SourceFile:18)
		at java.util.HashMap.put(HashMap.java:393)
		at java.util.HashSet.add(HashSet.java:217)
		at ci.a(SourceFile:56)
		at ff.f(SourceFile:1399)
		at fm.f(SourceFile:29)
		at net.minecraft.server.MinecraftServer.h(SourceFile:271)
		at net.minecraft.server.MinecraftServer.run(SourceFile:216)
		at cj.run(SourceFile:490)
java.net.SocketException: Connection reset
		at java.net.SocketInputStream.read(SocketInputStream.java:185)
		at java.net.SocketInputStream.read(SocketInputStream.java:199)
		at java.io.FilterInputStream.read(FilterInputStream.java:83)
		at jv.b(SourceFile:95)
		at bs.f(SourceFile:157)
		at bs.c(SourceFile:15)
		at jt.run(SourceFile:68)
java.net.SocketException: Connection reset
		at java.net.SocketInputStream.read(SocketInputStream.java:185)
		at java.net.SocketInputStream.read(SocketInputStream.java:199)
		at java.io.FilterInputStream.read(FilterInputStream.java:83)
		at jv.b(SourceFile:95)
		at bs.f(SourceFile:157)
		at bs.c(SourceFile:15)
		at jt.run(SourceFile:68)
java.net.SocketException: Connection reset
		at java.net.SocketInputStream.read(SocketInputStream.java:185)
		at java.net.SocketInputStream.read(SocketInputStream.java:199)
		at java.io.FilterInputStream.read(FilterInputStream.java:83)
		at jv.b(SourceFile:95)
		at bs.f(SourceFile:157)
		at bs.c(SourceFile:15)
		at jt.run(SourceFile:68)
java.net.SocketException: Connection reset
		at java.net.SocketInputStream.read(SocketInputStream.java:185)
		at java.net.SocketInputStream.read(SocketInputStream.java:199)
		at java.io.FilterInputStream.read(FilterInputStream.java:83)
		at jv.b(SourceFile:95)
		at bs.f(SourceFile:157)
		at bs.c(SourceFile:15)
		at jt.run(SourceFile:68)
java.net.SocketException: Connection reset
		at java.net.SocketInputStream.read(SocketInputStream.java:185)
		at java.net.SocketInputStream.read(SocketInputStream.java:199)
		at java.io.FilterInputStream.read(FilterInputStream.java:83)
		at jv.b(SourceFile:95)
		at bs.f(SourceFile:157)
		at bs.c(SourceFile:15)
		at jt.run(SourceFile:68)
java.net.SocketException: Connection reset
		at java.net.SocketInputStream.read(SocketInputStream.java:185)
		at java.net.SocketInputStream.read(SocketInputStream.java:199)
		at java.io.FilterInputStream.read(FilterInputStream.java:83)
		at jv.b(SourceFile:95)
		at bs.f(SourceFile:157)
		at bs.c(SourceFile:15)
		at jt.run(SourceFile:68)
java.net.SocketException: Connection reset
		at java.net.SocketInputStream.read(SocketInputStream.java:185)
		at java.net.SocketInputStream.read(SocketInputStream.java:199)
		at java.io.FilterInputStream.read(FilterInputStream.java:83)
		at jv.b(SourceFile:95)
		at bs.f(SourceFile:157)
		at bs.c(SourceFile:15)
		at jt.run(SourceFile:68)
java.net.SocketException: Connection reset
		at java.net.SocketInputStream.read(SocketInputStream.java:185)
		at java.net.SocketInputStream.read(SocketInputStream.java:199)
		at java.io.FilterInputStream.read(FilterInputStream.java:83)
		at jv.b(SourceFile:95)
		at bs.f(SourceFile:157)
		at bs.c(SourceFile:15)
		at jt.run(SourceFile:68)
java.net.SocketException: Connection reset
		at java.net.SocketInputStream.read(SocketInputStream.java:185)
		at java.net.SocketInputStream.read(SocketInputStream.java:199)
		at java.io.FilterInputStream.read(FilterInputStream.java:83)
		at jv.b(SourceFile:95)
		at bs.f(SourceFile:157)
		at bs.c(SourceFile:15)
		at jt.run(SourceFile:68)
java.net.SocketException: Connection reset
		at java.net.SocketInputStream.read(SocketInputStream.java:185)
		at java.net.SocketInputStream.read(SocketInputStream.java:199)
		at java.io.FilterInputStream.read(FilterInputStream.java:83)
		at jv.b(SourceFile:95)
		at bs.f(SourceFile:157)
		at bs.c(SourceFile:15)
		at jt.run(SourceFile:68)
java.net.SocketException: Connection reset
		at java.net.SocketInputStream.read(SocketInputStream.java:185)
		at java.net.SocketInputStream.read(SocketInputStream.java:199)
		at java.io.FilterInputStream.read(FilterInputStream.java:83)
		at jv.b(SourceFile:95)
		at bs.f(SourceFile:157)
		at bs.c(SourceFile:15)
		at jt.run(SourceFile:68)
java.net.SocketException: Connection reset
		at java.net.SocketInputStream.read(SocketInputStream.java:185)
		at java.net.SocketInputStream.read(SocketInputStream.java:199)
		at java.io.FilterInputStream.read(FilterInputStream.java:83)
		at jv.b(SourceFile:95)
		at bs.f(SourceFile:157)
		at bs.c(SourceFile:15)
		at jt.run(SourceFile:68)
java.net.SocketException: Connection reset
		at java.net.SocketInputStream.read(SocketInputStream.java:185)
		at java.net.SocketInputStream.read(SocketInputStream.java:199)
		at java.io.FilterInputStream.read(FilterInputStream.java:83)
		at jv.b(SourceFile:95)
		at bs.f(SourceFile:157)
		at bs.c(SourceFile:15)
		at jt.run(SourceFile:68)
java.net.SocketException: Connection reset
		at java.net.SocketInputStream.read(SocketInputStream.java:185)
		at java.net.SocketInputStream.read(SocketInputStream.java:199)
		at java.io.FilterInputStream.read(FilterInputStream.java:83)
		at jv.b(SourceFile:95)
		at bs.f(SourceFile:157)
		at bs.c(SourceFile:15)
		at jt.run(SourceFile:68)
list
2010-12-22 21:19:09 [INFO] Connected players: bodzio222, Masero, Axles, __J, akkak, Dakarosh, funmaker, LMises, Seboolek, klosik97, gienek, chrabeusz, Fighter111, Mazzir, Dartk, GanJarO2010
say ktos zyje?
2010-12-22 21:19:12 [INFO] [CONSOLE] ktos zyje?
save-all
2010-12-22 21:19:34 [INFO] CONSOLE: Forcing save..
2010-12-22 21:19:40 [INFO] CONSOLE: Save complete.
stop
2010-12-22 21:19:57 [INFO] CONSOLE: Stopping the server..
2010-12-22 21:19:57 [INFO] Stopping server
2010-12-22 21:19:57 [INFO] Saving chunks

[screen is terminating]
root@vz4060:/minecraft# screen -S mine java -Xmx2048M -Xms2048M -jar minecraft_server.jar nogui
2010-12-22 21:20:07 [INFO] Starting minecraft server version Beta 1.1_02
2010-12-22 21:20:07 [INFO] Loading properties
2010-12-22 21:20:07 [INFO] Starting Minecraft server on *:25565
2010-12-22 21:20:08 [INFO] Preparing level "world2"
2010-12-22 21:20:08 [INFO] Preparing start region
Preparing spawn area: 0%
Preparing spawn area: 4%
Preparing spawn area: 9%
Preparing spawn area: 14%
Preparing spawn area: 19%
Preparing spawn area: 23%
Preparing spawn area: 28%
Preparing spawn area: 33%
Preparing spawn area: 38%
Preparing spawn area: 42%
Preparing spawn area: 47%
Preparing spawn area: 52%
Preparing spawn area: 57%
Preparing spawn area: 61%
Preparing spawn area: 66%
Preparing spawn area: 71%
Preparing spawn area: 76%
Preparing spawn area: 80%
Preparing spawn area: 85%
Preparing spawn area: 90%
Preparing spawn area: 95%
2010-12-22 21:20:11 [INFO] Done! For help, type "help" or "?"

Any help?

Register or log in to remove.

#2

zajacmp3
    zajacmp3

    Tree Puncher

  • Members
  • 27 posts

Posted 22 December 2010 - 10:48 PM

IS there REALLY NO LIVING SOUL THAT IS ABLE TO HELP ME? NOT EVEN A CLUE?

I have another crash but this time with different error.

java.lang.IllegalStateException: Failed to remove player. fi@1332b isn't in chunk 15, -10
		at ap.b(SourceFile:45)
		at jh.c(SourceFile:254)
		at hl.b(SourceFile:64)
		at kk.a(SourceFile:191)
		at hy.a(SourceFile:126)
		at bs.a(SourceFile:232)
		at kk.a(SourceFile:57)
		at eh.a(SourceFile:85)
		at net.minecraft.server.MinecraftServer.h(SourceFile:275)
		at net.minecraft.server.MinecraftServer.run(SourceFile:216)
		at cj.run(SourceFile:490)
java.net.SocketException: Connection reset
		at java.net.SocketInputStream.read(SocketInputStream.java:185)
		at java.net.SocketInputStream.read(SocketInputStream.java:199)
		at java.io.FilterInputStream.read(FilterInputStream.java:83)
		at jv.b(SourceFile:95)
		at bs.f(SourceFile:157)
		at bs.c(SourceFile:15)
		at jt.run(SourceFile:68)
save-all
save-all
stop

Please?

#3

Linkon
    Linkon

    Tree Puncher

  • Members
  • 12 posts

Posted 22 December 2010 - 11:03 PM

Do you have any logs of the server resource usage during this?

#4

zajacmp3
    zajacmp3

    Tree Puncher

  • Members
  • 27 posts

Posted 22 December 2010 - 11:17 PM

Yes I have

Posted Image

Now when you said that, I think there might be a problem in burstable momory. If I have a VPS server with 2GB of memory (3GB burstable) Is it possible when server go over this 2GB, and some other application of my hoster is needing this memory they can just delete it causing my crash?


EDIT:

And I somewhere read something that someone had an issue with java when it reached 1,5 GB. Could this also make my day really painful?

#5

Linkon
    Linkon

    Tree Puncher

  • Members
  • 12 posts

Posted 22 December 2010 - 11:19 PM

zajacmp3 said:

Now when you said that, I think there might be a problem in burstable momory. If I have a VPS server with 2GB of memory (3GB burstable) Is it possible when server go over this 2GB, and some other application of my hoster is needing this memory they can just delete it causing my crash?

You got it exactly right.  Burstable memory is meant for very brief periods, as that memory space will be "taken back" if it's requested.

2GB isn't enough for 16 users.  :P

#6

rch
    rch

    Minecraft.cm

  • Members
  • 4104 posts
  • Location: Florida
  • Minecraft: rch

Posted 22 December 2010 - 11:22 PM

What I see is that you have a 2GB (dedicated) VPS and you're giving Java/Minecraft ALL of your memory to use, this leaves no room for any memory for the system itself. I would HIGHLY recommend dropping your memory down to 1.5GB or even 1GB to leave some room for the VPS system so that Java/Minecraft isn't hogging every last bit of it.

This very well could be the root of all of your issues. Do not rely on your burstable ram to save you, leave some dedicated ram for the system.

#7

rch
    rch

    Minecraft.cm

  • Members
  • 4104 posts
  • Location: Florida
  • Minecraft: rch

Posted 22 December 2010 - 11:24 PM

Linkon said:

2GB isn't enough for 16 users.  :P

Yes, it is! Please stop spreading misinformation about the capability of a server. I run a 1GB server that handles 15+ people EASILY without issue. This is the second time I've seen you say something about memory usage that has been completely wrong.

#8

zajacmp3
    zajacmp3

    Tree Puncher

  • Members
  • 27 posts

Posted 22 December 2010 - 11:29 PM

rch said:

Linkon said:

2GB isn't enough for 16 users.  :Zombie:

Yes, it is! Please stop spreading misinformation about the capability of a server. I run a 1GB server that handles 15+ people EASILY without issue. This is the second time I've seen you say something about memory usage that has been completely wrong.

I had a server in Germany with 512 of Ram 1GB burst... And there were playing 20 people without lags... Up to the moment when someone had a big trip and maked map really large ^_^

Thanks for help Linkon I will do this right away. Hope that helps!


And thanks every one for interest in this issue of mine.