java.lang.OutOfMemoryError: Java heap space

Discussion in 'Bukkit Help' started by shanko, Feb 25, 2012.

Thread Status:
Not open for further replies.
  1. Offline

    shanko

    This has been crashing my server lately, im not sure what it is. There is absoloutly no lag and the server isnt even close to crashing and then BOOM this hits

    Code:
    25.02 18:59:14 [Server] INFO    at net.minecraft.server.ThreadServerApplication.run(SourceFile:465)
    25.02 18:59:14 [Server] INFO    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:435)
    25.02 18:59:14 [Server] INFO    at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:537)
    25.02 18:59:14 [Server] INFO    at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78)
    25.02 18:59:14 [Server] INFO    at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:552)
    25.02 18:59:14 [Server] INFO    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:100)
    25.02 18:59:14 [Server] INFO    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    25.02 18:59:14 [Server] INFO    at net.minecraft.server.Packet10Flying.handle(SourceFile:126)
    25.02 18:59:14 [Server] INFO    at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:687)
    25.02 18:59:14 [Server] INFO    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:323)
    25.02 18:59:14 [Server] INFO    at net.minecraft.server.EntityPlayer.a(EntityPlayer.java:226)
    25.02 18:59:14 [Server] INFO    at net.minecraft.server.EntityHuman.y_(EntityHuman.java:159)
    25.02 18:59:14 [Server] INFO    at net.minecraft.server.EntityLiving.y_(EntityLiving.java:341)
    25.02 18:59:14 [Server] INFO    at net.minecraft.server.EntityHuman.d(EntityHuman.java:311)
    25.02 18:59:14 [Server] INFO    at net.minecraft.server.EntityLiving.d(EntityLiving.java:975)
    25.02 18:59:14 [Server] INFO    at net.minecraft.server.EntityHuman.a(EntityHuman.java:1106)
    25.02 18:59:14 [Server] INFO    at net.minecraft.server.EntityLiving.a(EntityLiving.java:795)
    25.02 18:59:14 [Server] INFO    at net.minecraft.server.Entity.move(Entity.java:397)
    25.02 18:59:14 [Server] INFO    at net.minecraft.server.World.a(World.java:996)
    25.02 18:59:14 [Server] INFO    at net.minecraft.server.AxisAlignedBB.grow(SourceFile:81)
    25.02 18:59:14 [Server] INFO    at net.minecraft.server.AxisAlignedBB.b(SourceFile:25)
    25.02 18:59:14 [Server] INFO    at java.util.ArrayList.add(ArrayList.java:411)
    25.02 18:59:14 [Server] INFO    at java.util.ArrayList.ensureCapacityInternal(ArrayList.java:187)
    25.02 18:59:14 [Server] INFO    at java.util.ArrayList.grow(ArrayList.java:213)
    25.02 18:59:14 [Server] INFO    at java.util.Arrays.copyOf(Arrays.java:2219)
    25.02 18:59:14 [Server] INFO java.lang.OutOfMemoryError: Java heap space
    25.02 18:59:14 [Server] SEVERE Unexpected exception
    25.02 18:59:14 [Server] SEVERE    at net.minecraft.server.ThreadServerApplication.run(SourceFile:465)
    25.02 18:59:14 [Server] SEVERE    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:435)
    25.02 18:59:14 [Server] SEVERE    at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:537)
    25.02 18:59:14 [Server] SEVERE    at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78)
    25.02 18:59:14 [Server] SEVERE    at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:552)
    25.02 18:59:14 [Server] SEVERE    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:100)
    25.02 18:59:14 [Server] SEVERE    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    25.02 18:59:14 [Server] SEVERE    at net.minecraft.server.Packet10Flying.handle(SourceFile:126)
    25.02 18:59:14 [Server] SEVERE    at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:687)
    25.02 18:59:14 [Server] SEVERE    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:323)
    25.02 18:59:14 [Server] SEVERE    at net.minecraft.server.EntityPlayer.a(EntityPlayer.java:226)
    25.02 18:59:14 [Server] SEVERE    at net.minecraft.server.EntityHuman.y_(EntityHuman.java:159)
    25.02 18:59:14 [Server] SEVERE    at net.minecraft.server.EntityLiving.y_(EntityLiving.java:341)
    25.02 18:59:14 [Server] SEVERE    at net.minecraft.server.EntityHuman.d(EntityHuman.java:311)
    25.02 18:59:14 [Server] SEVERE    at net.minecraft.server.EntityLiving.d(EntityLiving.java:975)
    25.02 18:59:14 [Server] SEVERE    at net.minecraft.server.EntityHuman.a(EntityHuman.java:1106)
    25.02 18:59:14 [Server] SEVERE    at net.minecraft.server.EntityLiving.a(EntityLiving.java:795)
    25.02 18:59:14 [Server] SEVERE    at net.minecraft.server.Entity.move(Entity.java:397)
    25.02 18:59:14 [Server] SEVERE    at net.minecraft.server.World.a(World.java:996)
    25.02 18:59:14 [Server] SEVERE    at net.minecraft.server.AxisAlignedBB.grow(SourceFile:81)
    25.02 18:59:14 [Server] SEVERE    at net.minecraft.server.AxisAlignedBB.b(SourceFile:25)
    25.02 18:59:14 [Server] SEVERE    at java.util.ArrayList.add(ArrayList.java:411)
    25.02 18:59:14 [Server] SEVERE    at java.util.ArrayList.ensureCapacityInternal(ArrayList.java:187)
    25.02 18:59:14 [Server] SEVERE    at java.util.ArrayList.grow(ArrayList.java:213)
    25.02 18:59:14 [Server] SEVERE    at java.util.Arrays.copyOf(Arrays.java:2219)
    25.02 18:59:14 [Server] SEVERE java.lang.OutOfMemoryError: Java heap space
     
  2. Offline

    sillyrosster

    Can you try updating Spout?
     
  3. Offline

    shanko

    its at the recommended build 737 for R4 =[
     
  4. Offline

    turt2live

    You haven't allocated enough RAM (memory) to Bukkit.

    The Java Virtual Machine (VM) allocates as much as you tell it, or as much as it needs. This error occurs when that allocated amount is too small and a plugin tries to go over the cap.
     
  5. Offline

    sillyrosster

    Can you try this build. Make sure to backup your world first before continuing as it is a dev. build.

    Can you list your plugins, server specs, and how you are starting the mincraft server, please?

    EDIT: turt2live ^^
     
  6. Offline

    shanko

    Im 100% sure this isnt the case, as the server is not laggy and runs perfectly fine with no lag until this error just randomly hits and instantly crashes the server. Also using the plugin NoLag my RAM is not close to reaching its limit when it crashes.
     
  7. Offline

    turt2live

    It doesn't have to be laggy, but the stack trace makes it very clear: You have run out of memory to use.
     
  8. Offline

    sillyrosster

    I got this before I upgraded my RAM. You could have too many plugins and not be allocating enough ram.
     
  9. Offline

    Meta1203

    Exactly. Could you post your plugins/start script? It would help me to know how much RAM you are giving, and where it is going.
     
  10. Offline

    turt2live

    Can we get a plugin list by chance?
     
  11. Offline

    shanko

    There is the plugin list, I rent my server from a company so I dont have immediate access to the script but it has 3 GB of RAM allocated to it

    actually now that VanishNoPacket doesn't need it I really dont need it lol... Ill try this and see if it works. I guess it is just running out of memory -.- thanks for all the help!

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Aug 20, 2018
  12. Offline

    MrRedLogan

    Stack Traces dont lie. You dont have enough memory allocated. either assign more memory or get rid of Spout. Spout is one of the heaviest plugins i know of... Next to Multiverse. lol
     
  13. Offline

    turt2live

    From the plugin list, someone could have easily typed a command and added an extra zero by accident, crashing the server (World Edit).

    But check your startup script and look for -X____ 1024 where ___ is a variety of things and 1024 is the amount of RAM in MB, change it to 2048 (2gb) to see if that helps.
     
  14. Offline

    sillyrosster

    He just said:
    He also said that:
     
  15. Offline

    turt2live

    Live support. It's a wonderful thing :p
     
  16. Offline

    sillyrosster

    It also sometimes takes 24hrs to get a question answered. Not so wonderful.
     
  17. Offline

    turt2live

    Not trying to be the difficult one here, but there are solutions: Better hosting/host it yourself

    In any case, I do hope the issue gets fixed. I'm willing to help in any way I can.
     
  18. Offline

    sillyrosster

    Renting a VPS is the cheap way to go and it works for most. Renting a dedicated server is the best way to go because most people don't have 100mbps home internet speed. I, sadly host with Daddycheese because I can't afford anything better, but hey, I'm continent.

    Oh and btw, I'm not the one with the problem. Let's not make this a thread with an off topic conversation.
     
  19. Offline

    turt2live

    My fault, sorry :p

    *fails at reading usernames*
     
  20. Offline

    sillyrosster

    Lol.. Couldn't resist the urge of responding...
     
  21. Offline

    nimeow321

    i need help this plugin does not work im running craftbukkit 1.2.3 latest build and everybody on the server lags but the admin doesn't i dont know how to fix this issue i have tried NoLagg and adding more ram and deletingmy player's .dat file but nothing works i need help Thanks :)
     
  22. Offline

    turt2live

    1. Which plugin
    2. CraftBukkit 1.2.3 builds are likely to have bugs (as no RB is out)
    3. This should be in it's own thread next time
     
Thread Status:
Not open for further replies.

Share This Page