Jump to content
  • 0

java.lang.OutOfMemoryError: unable to create new native thread


Question

Posted

Title: java.lang.OutOfMemoryError: unable to create new native thread

Version: 3.0.3/3.0.4

OS: Linux Gentoo

Java Version: 1.6.0_31

Description of Problem:

After a while is server running a error show up in console and server becomes 'unjoinable' - nobody can join (but server is still running, i can operate throught console...). I've got 25 slot server and here are some stats (ram is not overflooded):

ram: 2216 MiB / 2560 MiB

procesor: 99%

This is very common at my server, these errors sometimes changes a bit, another one that happend right after restart can be found here: http://pastebin.com/P5Q2A5f7

Error Messages:

nothing

Error Log:


2012-06-26 18:13:41 [sEVERE] java.lang.OutOfMemoryError: unable to create new native thread

2012-06-26 18:13:41 [sEVERE] at java.lang.Thread.start0(Native Method)

2012-06-26 18:13:41 [sEVERE] at java.lang.Thread.start(Unknown Source)

2012-06-26 18:13:41 [sEVERE] at net.minecraft.server.NetworkManager.d(NetworkManager.java:252)

2012-06-26 18:13:41 [sEVERE] at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:176)

2012-06-26 18:13:41 [sEVERE] at net.minecraft.server.Packet254GetInfo.handle(SourceFile:16)

2012-06-26 18:13:41 [sEVERE] at net.minecraft.server.NetworkManager.b(NetworkManager.java:234)

2012-06-26 18:13:41 [sEVERE] at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:57)

2012-06-26 18:13:41 [sEVERE] at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:61)

2012-06-26 18:13:41 [sEVERE] at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:556)

2012-06-26 18:13:41 [sEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:453)

2012-06-26 18:13:41 [sEVERE] at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)

2012-06-26 18:13:41 [sEVERE] Unexpected exception

java.lang.OutOfMemoryError: unable to create new native thread

at java.lang.Thread.start0(Native Method)

at java.lang.Thread.start(Unknown Source)

at net.minecraft.server.NetworkManager.d(NetworkManager.java:252)

at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:176)

at net.minecraft.server.Packet254GetInfo.handle(SourceFile:16)

at net.minecraft.server.NetworkManager.b(NetworkManager.java:234)

at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:57)

at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:61)

at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:556)

at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:453)

at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)

7 answers to this question

Recommended Posts

  • 0
Posted

i am not sure, i use server hosting company. RAM usage is always under the limit, even when i lower slots to 22 (lower server load).

  • 0
Posted

The only way I know of is to see where you are when the server starts chugging, and try to figure out which chunks just loaded. Otherwise, just type "/remove items -1" from the in-game console and see if it clears up the lag. If it does, something's dumping items. It will also tell you how many items it removed.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...