How to allocate more memory to FeedtheBeast Server?

Discussion in 'Server Tech Support' started by Jemjem787, Feb 22, 2013.

  1. Jemjem787

    Jemjem787 New Member

    I must look like a complete idiot posting this, but can anybody help me?
     
  2. glasspelican

    glasspelican New Member

    you have a file named ServerStart.bat or ServerStart.sh on mac or linux
    open in your favourite text editor

    it will look something like
    Code:
    java -Xms512M -Xmx1G -jar ftbserver.jar
    -Xms512M Min heap size in ram
    -Xmx1G Max heap size

    I would recommend adding "-server" to the command
    Cheers
    Glass
     
  3. Jemjem787

    Jemjem787 New Member

    what do you mean by adding -server to this command? Just put it at the end so its like ftbserver.jar -server
     
  4. glasspelican

    glasspelican New Member

    yep, I place it at the start of the list

    java -server -Xm....
     
  5. Jemjem787

    Jemjem787 New Member

    What is the point of doing that though?
     
  6. glasspelican

    glasspelican New Member

    The server tag tweeks the java garbage collector and compiler
    The server will start slower, but run with less lag, and use a bit less ram
     
  7. Mistereddy

    Mistereddy New Member

    I cant seem to get it to work for me, does this still work?
     
  8. glasspelican

    glasspelican New Member

    Does what work, Adding more memory or the -server tag?

    what is your question?
    What problem are you trying to solve?
     
  9. Mistereddy

    Mistereddy New Member

    Well my question is: Does Ftb still work by adding more memory in the way you described? because for me it doesn't.
    Why? well i just had a computer upgrade with 32 Gigs of ram on it. and i want to make use of it :)
    i know it doesn't need it. but i still lag without the extra ram... and it's not lagging because of my CPU or my vid card. that i know for sure.
     
  10. glasspelican

    glasspelican New Member

    There can be any number of problems that can cause a server to lag, not just ram or cpu
    what cpu do you have? Operating system?
    I have observed that giving a server to much ram can cause issues as well, try it with 5Gig
    can you open the command prompt or terminal and run
    Code:
    java -version
     
  11. Jemjem787

    Jemjem787 New Member

    i7-3770k, 8Gig ram. windows 7 home, 64bit. Allocated 1gig-3gig.

    java -version brings up

    java version "1.7.0_10"
    Build 1.7.0_10b18
    64bit server vm (build 23.6-b04 mixed mode
     
  12. Mistereddy

    Mistereddy New Member

    i5 dunno which exactly, it runs at 3.2 though. 32 gig ram, windows vista, 32-bit. (the 32 bit doesn't seem to be the problem though).

    java version "1.7.0_09"
    Java(TM) SE Runtime Environment (build 1.7.0_09-b05)
    Java HotSpot(TM) Client VM (build 23.5-b02, mixed mode, sharing)
     
  13. heggico

    heggico New Member

    You do realise that the 32 bit version of any windows can only use around 4GB of ram?
     
  14. glasspelican

    glasspelican New Member

    The 32 bit version of java can only use 2G of ram, using a 64bit os also lets it process more data in a clock cycle
    you are also defaulting to a client version of the jvm add the -server tag detailed above
     
  15. Mistereddy

    Mistereddy New Member

    You got to be shitting me.... -.-" no i didnt know that... ugh.. well, i'm going to upgrade then...
     

Share This Page