Okay, so we've suddenly got ourselves a new error. Out of memory error. Code: 2011-07-04 17:03:46 [SEVERE] Exception in thread "Thread-3069" 2011-07-04 17:03:46 [SEVERE] java.lang.OutOfMemoryError 2011-07-04 17:03:46 [SEVERE] at java.io.FileInputStream.readBytes(Native Method) 2011-07-04 17:03:46 [SEVERE] at java.io.FileInputStream.read(Unknown Source) 2011-07-04 17:03:46 [SEVERE] at org.dynmap.web.handlers.FileHandler.handle(FileHandler.java:111) 2011-07-04 17:03:46 [SEVERE] at org.dynmap.web.HttpServerConnection.run(HttpServerConnection.java:184) 2011-07-04 17:04:15 [SEVERE] Exception in thread "Connection #1 read thread" 2011-07-04 17:04:15 [SEVERE] java.lang.OutOfMemoryError: unable to create new native thread 2011-07-04 17:04:15 [SEVERE] at java.lang.Thread.start0(Native Method) 2011-07-04 17:04:15 [SEVERE] at java.lang.Thread.start(Unknown Source) 2011-07-04 17:04:15 [SEVERE] at net.minecraft.server.NetworkManager.a(NetworkManager.java:182) 2011-07-04 17:04:15 [SEVERE] at net.minecraft.server.NetworkManager.g(NetworkManager.java:159) 2011-07-04 17:04:15 [SEVERE] at net.minecraft.server.NetworkManager.c(NetworkManager.java:259) 2011-07-04 17:04:15 [SEVERE] at net.minecraft.server.NetworkReaderThread.run(SourceFile:84) This example shows that it is dynmap that causes this problem. But we've also tried removing this plugin, and the error still occurs. It has also complained about citizens, wich we removed, and so on. Latest: Code: 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.a(NetworkManager.java:182) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:817) at net.minecraft.server.Packet255KickDisconnect.a(SourceFile:26) at net.minecraft.server.NetworkManager.b(NetworkManager.java:226) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:84) at net.minecraft.server.NetworkListenThread.a(SourceFile:105) at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361) at net.minecraft.server.ThreadServerApplication.run(SourceFile:422) The server has 4GB DDR3 RAM, and has a heap of 1,5GB. Plugins installed from the beginning: AdminMode Backup BigBrother Citizens CommandBook Craftbook Dynmap GroupManager iConomy MCDocs MCTelnet MultiVerse Stargate WorldBorder WorldEdit WorldGuard Plugins installed now, with latest error: Citizens GroupManager iConomy Multiverse Stargate WorldBorder WorldEdit WorldGuard ------------- The error occurs when the server's been running for about one hour. Now we've tried with a vanilla, bukkit, server and for two hours we've not seen any errors. Someone that could help us with this?
Yes, we're running 64bit. Code: IF /I "%PROCESSOR_ARCHITECTURE:~-2%"=="64" "%ProgramFiles(x86)%\Java\jre6\bin\java.exe" -Xms1536M -Xmx1536M -jar "%~dp0craftbukkit-0.0.1-SNAPSHOT.jar" IF /I "%PROCESSOR_ARCHITECTURE:~-2%"=="86" java -Xms1536M -Xmx1536M -jar "%~dp0craftbukkit-0.0.1-SNAPSHOT.jar" PAUSE And we've got it to crash faster if we're wandering around a bit, and there's a storm running. bump Really, really, need help with this issue :3 EDIT by Moderator: merged posts, please use the edit button instead of double posting.
I got the same problem. I have Win 7 64 bit, i have installed the 64 bit java and my startup script is: @ECHO OFF SET BINDIR=%~dp0 CD /D "%BINDIR%" "%ProgramFiles%\Java\jre6\bin\java.exe" -Xincgc -Xmx3G -jar craftbukkit-0.0.1-SNAPSHOT.jar PAUSE
Why is this not a serious problem. I lost all my members but 4 I guess my server was bound to fail anyways
Having similar issues. Running vanilla to test a few things. My server usually supports 40+ easily. See other threads about this in the help forum. You are not alone.
Everyone should make sure that his starter script, including variables such as "java" or "Program Files" lead to a 64 bit version of Java, and that you include the parameter -Xincgc
Well this was a old thread No, when I posted that issue we borrowed a server from the school we went to and hosted it there, but when we quit we got ourselves a completely new server with some nice goodies and got 100/10 mb/s to it, and that pretty much solved all our problems, sure we still have some issues, but that's often because of some failure in plugin/RUN.bat config Thanks anyhow ^^
This error just popped up and took me a week to figure it out. Just trying to see if I could help anyone else
You can always post your solution here, just in case it helps anyone else who hits this forum. You already necro'd it - might as well make it useful.
Basically if you're on Ubuntu 11.10 and have php5, theres a bug where fuser forks uncontrollably when trying to delete old session information. This takes up alot of cpu and starves your system of any resources. If you change /etc/cron.d/php5 from the 11.10 value: Code: 09,39 * * * * root [ -x /usr/lib/php5/maxlifetime ] && [ -d /var/lib/php5 ] && find /var/lib/php5/ -depth -mindepth 1 -maxdepth 1 -type f -cmin +$(/usr/lib/php5/maxlifetime) ! -execdir fuser -s {} 2>/dev/null \; -delete To the old 11.04 version: Code: 09,39 * * * * root [ -x /usr/lib/php5/maxlifetime ] && [ -d /var/lib/php5 ] && find /var/lib/php5/ -type f -cmin +$(/usr/lib/php5/maxlifetime) -print0 | xargs -n 200 -r -0 rm You will find that the "unable to create native thread" error becomes non-existant. Hope this helps someone down the road
Hi, I have the same problem, but I can't follow the solution in the message #18 because I have CentOS 6.2 64bit and the file php5 under /etc/cron.d there isn't, what can I do? (I have php 5.3 installed in the server). Regards.
Since the 2012-02-12 I don't receive nothing more! The problem is solved, I don't remember why, I think an update of some plugins. This happened again... (only from 12 to 17 doesn't happened nothing), however the answers is "nope", happen ramdomly
I can create the "can't create thread" error by just running a lot of other programs and eat up all the ram on the server. Like if I render a map image of a huge world is an easy way. I can see it happen, but I don't understand it, I mean I can start bukkit with -Xmx8192M in the java start options, and have a debugger showing java using up 20% of the ram allocated to it, and still have problems if other processes use up memory. Or maybe its some other resource that its using up? I'd love to find a way not to worry about some other program go out of control and whack the minecraft server from being low on memory. Its not like it is actually OUT of memory, otherwise I'd see oom-killer get triggered on apache2 processes.