Server Crash [RESOLVED]

Discussion in 'Bukkit Help' started by nggmc, Dec 15, 2011.

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

    nggmc

    RESOLVED
     
  2. Offline

    zipron

    Code:
    java.lang.OutOfMemoryError: Java heap space
    
    you don't have enough RAM :) try run with less or put more in you're server. you can run it with less RAM by editing you batch file:
     
  3. Offline

    nggmc

    The hosting PC has 2GB ram dedicated and an extra 2GB ram.
    The server is no more than 300MB
    Anything else I can do?

    Plus it worked fine b4. It happened after I got the new RB

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

    zipron

    That means there is something wrong with the RB I think..

    You should mail a developer about it. but still the error means there isn't enough memory

    Zip
     
  5. Offline

    TnT

    What is the command you are using to start you server? Also, try without your plugins, chances are one of them is the culprit.
     
  6. Offline

    nggmc

    What'd you mean "Command"
    Btw I tried without my plugins and without my Worlds. That's not the problem.
     
  7. Offline

    zipron

    He means the command to start your server, something like
    Code:
    java -Xmx1024M -Xms1024M -jar <CB version>.jar 
     
  8. Offline

    nggmc

    I just open my batch file with

    Code:
    @ECHO OFF
    SET BINDIR=%~dp0
    CD /D "%BINDIR%"
    "%ProgramFiles%\Java\jre6\bin\java.exe" -Xincgc -Xmx1G -jar craftbukkit-1.0.1-R2.jar
    PAUSE
     
  9. Offline

    zipron

    oh yea that's it, I forgot you had windows :p

    maybe allocting more RAM helps?
     
  10. Offline

    nggmc

    Wait I use RamDisk to allocate Ram?
     
  11. Offline

    zipron

    No just change your batch file:

    -Xmx1G => -Xmx2G

    I think, no?
     
  12. Offline

    TnT

    Yes, however, his host has 2GB RAM dedicated. I'd try -Xmx1536M first, see if that helps.

    Also, check your plugins, one of them may be using up all your RAM.
     
  13. Offline

    nggmc

    My serve isn't crashing straight away. But it never does I. Will leave it on for an hour or so. Could you please check it put it usually bugs a 5 players. Talk to GubertrolololxD he hosts it.
    Modernmc.ntdll.net

    He is a bit of a noob

    Btw he definitely has 2000MB dedicated. Also the console gets
    /some.random.i.p lost connection ever so often
    Even though I am positive that not that many ppl were trying to connect.

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

    zipron

    sometimes it sais "randomIP disconnected" after a restart. but I don't think that's the big issue here.. the log you linked, is it still the same out of memory error now?
     
  15. Offline

    nggmc

    Throughout the server being up. iConomy has a few messages for me. "Cannot Connect to database" or something like that.
     
  16. Offline

    zipron

    That means you'll have to edit the config file of iConomy saying it cannot use mysql but it has to you minidb, like this:
    Code:
     Database:
        # Databases Supported:
        # Flatfile, FF, mini, minidb
        #  - These all equate to miniDB
        ##
        # item, items, inventory, inventoryDB
        #  - These all equate to InventoryDB, which uses inventory for storage
        ##
        # xp, exp, orb, xpdb, expdb, orbdb
        #  - These all equate to ExperienceDB, which relies on Experience for balance.
        ##
        # mysql, mysqldb
        #  - These will attempt to connect to MySQL
        ##
        # sqlite, sqlite2, sqlite3, sqlitedb
        #  - These will attempt to create & connect to SQLite
        ##
        # postgre, postgreSQL, postgreDB
        #  - These will attempt to connect to PostgreSQL
        Type: 'minidb'
    
        # These are for InventoryDB only.
        # MajorItem is the item or block ID of the major currency
        # MinorItem is the item or block ID of the minor currency
        # e.g. MajorItem: 266, MinorItem: 265 for Gold/Iron
        MajorItem: 266
        MinorItem: 265
    
        # This controls the database name, by default it is iConomy
        Table: 'iConomy'
    
        # URL is for SQL Databases Only
        ##
        # Path to iConomy folder is easy, it's the COMPLETE path.
        # (Mine) G:\MineCraft\plugins\iConomy\
        # Won't be the same as yours, but it usually looks like that.
        ##
        # [H2DB Default] h2:path/to/iConomy/folder/iConomy;AUTO_RECONNECT=TRUE
        # [SQLite Default] sqlite:path/to/iConomy/folder/iConomy.db
        ##
        # Binary Databases use ip:port style connections.
        # ip
        #  - is the connection identifier (internet protocol)
        #  - for ipv6 usually encased in brackets [::1]
        # port
        #  - the port that the database is listening on
        #  - defaults: 3306 for mysql, postgre is either 5740 or 5432
        ##
        # [MySQL Default] mysql://localhost:3306/iConomy
        # [Postgre Default] postgresql://localhost:5740/iConomy
        URL: 'mysql://localhost:3306/iConomy'
    
        # Login details for binary databases
        Username: 'root'
        Password: ''
    
        # Conversion allows you to convert your old 5.x to the new 6.x
        # All is currently unused.
        # URL is for MySQL only, H2DB doesn't use it.
        Conversion:
          # Set to True, After converting, change this back to false!
          Enabled: false
    
          # Database Type, H2DB or MySQL
          Type: 'H2DB'
    
          # Database Table
          Table: 'iConomy'
    
          # Database URL without table at the end.
          URL: 'mysql://localhost:3306'
    
          # Username / Password
          # H2DB does not use this. MySQL Only.
          Username: 'root'
          Password: ''
    
          # Unused ATM.
          All: true
    
    you can also choose flatfile if you want to use just a file =)

    zip
     
  17. Offline

    nggmc

    NVM Resolved, I guess the batch file thing did work :D

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

    zipron

    ok good =) have fun

    zip
     
Thread Status:
Not open for further replies.

Share This Page