VPS, Optimizing Chunks, and MySQL Errors (Trifecta)

Discussion in 'Bukkit Help' started by jayzon915, Jun 8, 2011.

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

    jayzon915

    I am running a small server for about 10-15 users.
    I have a couple of issues with my server that I have been unable to figure out. I assume the start error is my fault. I have tried to start the server with 2G of RAM but the error persists. I set up a ticket to the host and am waiting for a response from them.


    Whenever I start the server I get the following error
    Show Spoiler

    java.io.IOException: Cannot run program "sh": java.io.IOException: error=12, Cannot allocate memory
    at java.lang.ProcessBuilder.start(ProcessBuilder.java:460)
    at java.lang.Runtime.exec(Runtime.java:593)
    at java.lang.Runtime.exec(Runtime.java:466)
    at jline.UnixTerminal.exec(UnixTerminal.java:297)
    at jline.UnixTerminal.exec(UnixTerminal.java:282)
    at jline.UnixTerminal.stty(UnixTerminal.java:273)
    at jline.UnixTerminal.initializeTerminal(UnixTerminal.java:77)
    at jline.Terminal.setupTerminal(Terminal.java:75)
    at jline.Terminal.getTerminal(Terminal.java:26)
    at jline.ConsoleReader.<init>(ConsoleReader.java:191)
    at jline.ConsoleReader.<init>(ConsoleReader.java:186)
    at jline.ConsoleReader.<init>(ConsoleReader.java:174)
    at net.minecraft.server.MinecraftServer.<init>(MinecraftServer.java:68)
    at net.minecraft.server.MinecraftServer.main(MinecraftServer.java:442)
    at org.bukkit.craftbukkit.Main.main(Main.java:99)
    Caused by: java.io.IOException: java.io.IOException: error=12, Cannot allocate memory
    at java.lang.UNIXProcess.<init>(UNIXProcess.java:148)
    at java.lang.ProcessImpl.start(ProcessImpl.java:65)
    at java.lang.ProcessBuilder.start(ProcessBuilder.java:453)
    ... 14 more
    03:25:36 [INFO] Starting minecraft server version Beta 1.6.6

    My start file is pretty simple
    Show Spoiler

    java -Xincgc -Xmx2560M -jar craftbukkit-0.0.1-SNAPSHOT.jar nogui

    VPS Computer Specs
    Show Spoiler

    debian-5.0-x86_64
    Intel(R) Xeon(R) CPU E5620 2 cores @ 2.40GHz
    3GB RAM up to 4GB burstable
    50GB Hard Drive
    10Mb up and down


    Since upgrading to 1.6 we have been experiencing chunk problems constantly. We tried 818 and Teleporting caused chunks to not appear below the Teleporter. We moved to 819 and that seemed to fix that but now I get this even with only me on the server:
    Show Spoiler

    [​IMG]

    The chunks just don't appear. If you walk over to blank spot they appear when you get on the block next to them. It is like the chunks are there, just not visible?


    As for the MySQL database errors, I know that they are iConomyChestShop errors but I am not sure what to do. I looked up how to increase the MySQL database connections but according to my configuration I should be limited to 100 not 20 like the error says....I'll post this in the plugin thread also.
    Show Spoiler

    2011-06-05 20:26:52 [SEVERE] javax.persistence.PersistenceException: java.sql.SQLException: Unsuccessfully waited [1000] millis for a connection to be returned. No connections are free. You need to Increase the max connections of [20] or look for a connection pool leak using datasource.xxx.capturestacktrace=true
    2011-06-05 20:26:52 [SEVERE] at com.avaje.ebeaninternal.server.transaction.TransactionManager.createQueryTransaction(TransactionManager.java:356)
    2011-06-05 20:26:52 [SEVERE] at com.avaje.ebeaninternal.server.core.DefaultServer.createQueryTransaction(DefaultServer.java:2021)
    2011-06-05 20:26:52 [SEVERE] at com.avaje.ebeaninternal.server.core.OrmQueryRequest.initTransIfRequired(OrmQueryRequest.java:241)
    2011-06-05 20:26:52 [SEVERE] at com.avaje.ebeaninternal.server.core.DefaultServer.findList(DefaultServer.java:1468)
    2011-06-05 20:26:52 [SEVERE] at com.avaje.ebeaninternal.server.querydefn.DefaultOrmQuery.findList(DefaultOrmQuery.java:906)
    2011-06-05 20:26:52 [SEVERE] at com.avaje.ebeaninternal.util.DefaultExpressionList.findList(DefaultExpressionList.java:201)
    2011-06-05 20:26:52 [SEVERE] at com.Acrobot.iConomyChestShop.Logging.removeOld(Logging.java:76)
    2011-06-05 20:26:52 [SEVERE] at com.Acrobot.iConomyChestShop.Logging.run(Logging.java:82)
    2011-06-05 20:26:52 [SEVERE] at org.bukkit.craftbukkit.scheduler.CraftWorker.run(CraftWorker.java:34)
    2011-06-05 20:26:52 [SEVERE] at java.lang.Thread.run(Thread.java:662)

    Show Spoiler

    2011-06-09 03:41:41 [INFO] [iConomyChestShop] pl3x sold 1 SUGAR_CANE with durability of 0 to AdminShop for 100.00 Dollars
    2011-06-09 03:41:41 [SEVERE] javax.persistence.PersistenceException: java.sql.SQLException: database is locked
    2011-06-09 03:41:41 [SEVERE] at com.avaje.ebeaninternal.server.transaction.JdbcTransaction.rollback(JdbcTransaction.java:614)
    2011-06-09 03:41:41 [SEVERE] at com.avaje.ebeaninternal.server.transaction.JdbcTransaction.rollback(JdbcTransaction.java:595)
    2011-06-09 03:41:41 [SEVERE] at com.avaje.ebeaninternal.server.core.BeanRequest.rollbackTransIfRequired(BeanRequest.java:107)
    2011-06-09 03:41:41 [SEVERE] at com.avaje.ebeaninternal.server.core.DefaultServer.findList(DefaultServer.java:1475)
    2011-06-09 03:41:41 [SEVERE] at com.avaje.ebeaninternal.server.querydefn.DefaultOrmQuery.findList(DefaultOrmQuery.java:906)
    2011-06-09 03:41:41 [SEVERE] at com.avaje.ebeaninternal.util.DefaultExpressionList.findList(DefaultExpressionList.java:201)
    2011-06-09 03:41:41 [SEVERE] at com.Acrobot.iConomyChestShop.Logging.removeOld(Logging.java:76)
    2011-06-09 03:41:41 [SEVERE] at com.Acrobot.iConomyChestShop.Logging.run(Logging.java:82)
    2011-06-09 03:41:41 [SEVERE] at org.bukkit.craftbukkit.scheduler.CraftWorker.run(CraftWorker.java:34)
    2011-06-09 03:41:41 [SEVERE] at java.lang.Thread.run(Thread.java:662)
    2011-06-09 03:41:41 [SEVERE] Caused by: java.sql.SQLException: database is locked
    2011-06-09 03:41:41 [SEVERE] at org.sqlite.DB.throwex(DB.java:370)
    2011-06-09 03:41:41 [SEVERE] at org.sqlite.DB.exec(DB.java:76)
    2011-06-09 03:41:41 [SEVERE] at org.sqlite.Conn.rollback(Conn.java:351)
    2011-06-09 03:41:41 [SEVERE] at com.avaje.ebeaninternal.server.lib.sql.PooledConnection.rollback(PooledConnection.java:752)
    2011-06-09 03:41:41 [SEVERE] at com.avaje.ebeaninternal.server.transaction.JdbcTransaction.rollback(JdbcTransaction.java:607)
    2011-06-09 03:41:41 [SEVERE] ... 9 more


    Thanks for looking!

    BUMP

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 16, 2016
  2. Offline

    Derek S

    I also have these memory errors on my VPS hosted at cleverkite. I would love to understand these better but am relatively new to linux.

    My setup is similar; running Debian but with only 1.5 GB ram. i suspected this was my problem, but this post makes me think differently.

    so... BUMP as well. Thanks again for any help.
     
Thread Status:
Not open for further replies.

Share This Page