Server EXTREEMLY Laggy for others except for me.

Discussion in 'Bukkit Help' started by AsignedAssassin, Apr 23, 2011.

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

    AsignedAssassin

    Hey guys, i just recently been trying to set up a server for people at my school but i want to make it perfect.

    However, when my friends connect, they have EXTREME lag, but when we switch back to the regular MC server, its normal.

    I realize that this thread is what i need to fill out for people to help me better? So i shall.

    1. Windows 7 Ultimate

    2 32-bit

    3. Java Version: 1.6.0_24

    4. No

    5. Craftbukkit Version: git-Bukkit-0.0.0-686-g71ef92a-b714jnks

    6. Run Command:
    Code:
    @ECHO OFF
    SET BINDIR=%~dp0
    CD /D "%BINDIR%"
    "%ProgramFiles%\Java\jre6\bin\java.exe" -Xincgc -Xms512M -Xmx1536M -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+CMSIncrementalPacing -XX:ParallelGCThreads=2 -XX:+AggressiveOpts -jar craftbukkit-0.0.1-SNAPSHOT.jar
    PAUSE
    
    7. Permissions <Phoenix> v2.7, Nether v1.1

    8. No errors, just terrible lag for people that connect (constent falling, map not loading, long time to connect to server, ect)

    9. I have tried to increase RAM in the RUN.BAT file... didnt help too much(anymore and it doesnt work, tried it) (im potentially going to get a laptop and install Linux and use ALL the ram for it, maybe it will help?)

    10. no... have no errors

    Also, just incase people want to know computer specs... i put it here now, because i would really like some possible fix's, experiences, or thoughts =)
    Computer:
    -Processor: Intel(R) Core i5-2500k (@ 3.30 GHz)
    -RAM: 4.00 GB
    -System: 32-bit
     
  2. Offline

    Nigel

    Hey there AssignedAssasin firstly and I have to ask as many people mistake the 2, do you mean lag (delay between action on computer and seeing a reaction on server) or chunk( low frames per second making the game seem slow). sorry but have to ask.
    Now 90% of lag is caused by the limitation of your Internet, I have found that for smooth lag free play you need 50kbps of UPLOAD PER PERSON and unless you have a adl2+ connection or higher you may not even have for example so called super fast adsl1 can have 800kbps download but it limited in most cases to about 30-40kbps upload which as you cna see is not really even good enough for 1 person constantly, not if you happen to have a faster connection like adsl2+ people commonly see speed of 1000- 2000kbps with upload of 70-100kbps which may support about 2 people without problems. so remember it doesn't really matter what your download is as for the server upload speed is key.
    that being said each client must have at least the same or more bandwidth speed down and up as well but normally do.
    after all that you may still have problems if because a bukket server requires a lot more power than minecraft vanilla and the more mods you add the more power it requires, more noticeable when trying the run the server on that same computer your playing the game from and this make correlate to more data being sent/received buy a bukkit server and therefore requiring more bandwidth.
    a few tips to a smooth running server:

    1. run the server on a separate computer and you don't need to go through the pains of running linux or any other stupid system as it will run perfectly on any operating system (not saying it wont be faster on the same machine in linux just more painful unless you good with linux of course)
    2. only run the server and nothing else so it has as much recources as it wants, 4gb is enough ram for about 10-15 people depending on your mods (some mods need alot more power over time like npcx or growby)
    3. one of the best improvements in performance i saw was moving my server to my fastest HDD (raid would be a good solution if possible but not a must) as it write a lot of data constantly, one of my biggest problems with minecraft is that very little of the maps/data are cached locally so every time someone logs out and in they have to download the whole lot from scratch again, which is a very bandwidth hungry system
    4. remember that every single thing you do on the internet sucks some upload even idle windows and IE services and talk to the net a little, or talking on teamspeak or other similar online programs you have running on any computer connected to your internet downloading torrents or browsing the web will often drain 100% of your upload and on a side note torrent programs can lie about there true upload speeds active at that time.
    5. finnaly from what i can think of on the spot is keep your minecraft server clean and by that i mean not too many useless mods and clean out unused configs and watch for errors in the console and other general maintenance stuffs just to keep your life easier.
    I would say your system specs are fine running the server by itself and therefore you should check your upload limit as its the most likely culprit and remember that vanilla minecraft may use less which could be why you were fine in the past. a nice bandwith testing site is http://www.speedtest.net/ and don't be running your server while you do this also google NETPEEKER to monitor the bandwidth usage on your server as one person may be sucking all you upload for themselves and you may need to limit upload per IP.

    Just let me know if you have any questions on anything I've said here.


    <---Dealing with technology is tough enough but fixing it shouldn't be----> www.myITech.com.au

    ...

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

    kildyu

    I get the same issue as the OP, my B714 bukkit server lags with 2 or more people, but I can easily get 5 on a regular MC server.
    1. 7 Ultimate
    2. 64 bit
    3. 1.6.0_24
    4. Hamachi
    5. B714jnks
    6.
    Code:
    @echo off
    "%ProgramFiles(x86)%\Java\jre6\bin\java.exe" -Xms1024M -Xmx1024M -jar craftbukkit.jar
    pause
    7. None
    8. "Connection reset" appears after anyone disconnects, not sure if it is an error
    9. Had Dynmap at first, removed it. Started a regular MC sever, ran fine.
    10. Nothing helped.
    I'm using NetWorx to monitor network usage, and I notice that when I run my Bukkit server there is rarely over 20kb/s upload, whereas it easily goes over 200kb/s on a regular server.
    As for the type of lag, people can log in fine, but all their actions are delayed, for example, right clicking a chest and not having the window open for 20s. The amount of delay increases with more on the server. With just me I can notice a .5s to 1s delay.
     
  4. Offline

    Petomatick

    I have a 12-13mb/s download speed and 9-14mb/s upload, still i cant hold more than 5-6 players and i only have 35 plugins

    just did a test, i had 14mb/s upload when I was playing alone with two accs on the server.
    Wierd
     
  5. Offline

    AsignedAssassin

    Thank you Nigel, you were very helpful.
    Unfortuneatly, you were right about my upload speed. Right now i have 21 mb/s Download and a struggling 0.50mb/s upload
    ----___-----

    Kinda sucks that, that is the only thing that is holding me back from allowing people to play adequately :/
     
  6. Offline

    nicksasa

    That's 500kbps actually, so that should be good if you go with the info Nigel gave.
     
  7. Offline

    AsignedAssassin

    Thats very true Nicksasa...so what could be the cause of it? :S
     
  8. Offline

    Nathan C

    Yeh, sorry it is the slow upload speed.

    With just one person on of home hosting on my laptop, I was hitting up to 10 megabits/s for a bit when they were loading..
     
  9. Offline

    Nigel

    if you on a 20 mbps ADLS2+ connection you probable meant 50kbps not mbps which would bring you back again adls2+ normal max upload is 2mbps on a anex M connection but certain fiber and cable connection go abouve this but if you on adsl then you in the same boat as me and i decided to have a company host my server, they are getting quite good now and pretty fast to update its about 15$ AUD for a server that can handle 8 players with 50-60kbps per player upload dont want to plug any so just ask if you want to know a good one

    also remember without limiting per ip one person can suck all the bandwidth available almost not matter how much you have

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

    sintri

    Oh the joy of dsl, it's sorta like traveling back to the 1990s again, can't quite imagine have a 5kB/s cap these days, though suppose luckily it's been about 13 years since, not that I ever had dsl friends did but I suppose that's really besides the point.​

    Well suppose to start with, the server itself can eat up quite a bit of ram, easily capable of eating up 1 gig each, that plus Vista and 7 will likely eat up another gig to maintain itself, minus whatever crap you've got running and possibly some being eaten up for your hardware, you're easily looking at not really much ram left at all. Though generally you'll notice this lag if you're playing at the same time as well so that's somewhat discountable.

    Two, bandwidth, for one dsl sucks and is generally to be avoided unless you've really got no other choice. .5mb/s 512 kb/s 64 kB/s practically leaves you with a maximum 9 users at 7kB/s. While they're loading uploads can reach 125kB/s+ per player. So it isn't really any mystery you're having trouble with player loading chunks if your upload's capped at 64kB/s. You'll also need about 1kB/s download per player. Though possibly like any other game, your the bandwidth required per player may increase with each additional player.

    In short, your upload's shoddy, you can support possibly 9 people including yourself, any more and they'll suffer lag without even trying to load chunks, and 9'd probably be pushing it. Uninterrupted loading you can support yourself, plus anyone on your lan, anyone else will have some delay loading.
     
  11. Offline

    Nigel

    just a note since 1.5 map chunks take a lower priority when loading now and may only load what you walk near, for my sever this has greatly reduced lag, so hopefully helped you a little.
     
Thread Status:
Not open for further replies.

Share This Page