Craftbukkit 1.3.1 Server Major Lag

Discussion in 'Bukkit Help' started by auntjemima1, Aug 2, 2012.

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

    auntjemima1

    So I am running a server on my laptop. Before You Respond DO NOT POST spam that laptops are bad or that i should get it hosted, i cant afford that. anyways, my laptop is like a Dell Inspiron i think. its a top notch computer when it comes to performance. im hosting this server and am getting major lag, and i have 30 slots because it is popular atm because 1.3.1 has just come out and so a lot of people want to join.

    my laptop specs are:

    8gb ram
    intel i5 core
    2.4 ghz processor
    64 bit

    i am currently running my server or at least trying to with 4 gb ram, and maximum 6gb. it lags when thers around 18 people online, and sometimes even my localhost cant connect to it.

    can you guys help me out please? this is what im using to start my server, like idk exactly what to call it but its where u change how much ram is on it.



    @Echo OFF
    SET BINDIR=%~dp0
    CD /D "%BINDIR%"
    java -server -Xmn4G -Xms5G -Xmx6G -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:parallelGCThreads=5 -XX:+CMSParallelRemarkEnabled -XX:+DisableExplicitGC -XX:MaxGCPauseMillis=500 -XX:SurvivorRatio=16 -XX:TargetSurvivorRatio=90 -jar craftbukkit.jar
    PAUSE



    please help me out it would be very nice!
     
  2. Offline

    mmorton89

    Do you have a server log when you get this lag?

    Also for your parallelGCthreads you have 5, how many cores is your i5?
     
  3. Offline

    astroskillz

    1.3.1 is still in development.
     
  4. Offline

    auntjemima1

    mmorton89
    im kinda a noob when it comes to that kinda of stuff, but under control pannel and system and in the processor it says: Intel(R)Core(TM) i5-2430M CPU @2.40GHz
    2.40 GHz

    does that help

    astroskillz
    hehehe nah im just usin the snapshot, pre relase type thing
     
  5. Offline

    mmorton89

    auntjemima1
    I looked up your processor you have 2 cores / 4 threads so you should lower your parallelGCthreads.

    Are you getting a "server can't keep up" message?

    How is your laptop connected to the internet (wifi/wired) and what is your internet speed (download/upload)?
     
  6. Offline

    auntjemima1

    mmorton89
    there is an occasional cant keep up, but its not constant, it lags a lot without the message coming up, and sometimes just crashes, but without telling me, i just notice that all of the sudden no one is chatting and so i stop the server and restart it. i tried ptweaks but it basically ruined the server map like now were stuck in the world so i cant use that. nolagg isnt compatible.

    my download and upload speeed is fairly quick, and its not that slow, and its wifi with netgear wnr1000v3 router

    edit: what do u think i should change the threads too and how many slots should i run? i want 20 at leastt
     
  7. Offline

    mmorton89

    auntjemima1
    As for your parallelGCthreads change it to 2
    edit - you could actually probably change it to 4 -

    If your upload speed is only 1 mb/s, this is most likely your problem.

    I would suggest like 10ish slots for your server but I still don't know your internet speeds.

    I know you don't want to hear this but, laptop CPU's do have lower core clocks than desktop CPU's. But you said you don't see the "can't keep up" messages so you might be fine with your CPU.
     
  8. Offline

    auntjemima1

    mmorton89
    its definetly not 1mb/s i think its more than that, my internet it fast, but not insane, but its more than average, and i know that the latops are a little worse,

    but im wanting to get 20 slots, but im trying to convince to owner to lower it to around 12, hows that sound? reasonable? cuz it always fills up at 30 slots, and so people would be pissed at 10, and thers three values i need for the threads, like i have 4,5,6, so should i make it like 2, 3, 4?
     
  9. Offline

    mmorton89

    well go to http://www.speedtest.net and it will tell you your upload speeds.

    1 mb/s is the normal residence upload speed, unless your paying $80+ a month for internet.

    Also what do you mean you need 3 values?
     
  10. Offline

    auntjemima1

    mmorton89 by three values i mean it says in like the 4th line, 4G, 5G, 6G, i need to have all those three numbers there. so if i used 2g, hen 2g could go at front, then 3g, and 4g, being the maximum amount of ram used

    EDIT: it says ping=23ms download speed=14.89mbps upload speed= .97mbps
     
  11. Offline

    mmorton89

    auntjemima1
    No, Im talking about

    Code:
    -XX:ParallelGCThreads=5
    This changes how many threads java's garbage collector utilized, not how much ram your server uses. Your CPU only has 4 threads and you have 5 set there. It's not a huge deal but might help out alittle.

    I also believe that

    Code:
    -Xmn4G
    Should be a lot lower than that, mine is set at 256M.
     
  12. Offline

    auntjemima1

    aaah ok ill try it out
     
Thread Status:
Not open for further replies.

Share This Page