1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Chunk loads extremely slow

Discussion in 'Help' started by Kenn Fatt, Jan 25, 2018.

  1. Kenn Fatt

    Kenn Fatt Slime

    Messages:
    82
    GitHub:
    kennfatt
    Chunk loads EXTREMELY so slow, im using anvil format for every worlds i have.

    And also, every packets got delayed to client before chunk load properly.

    For example, player send a message and console read it as well. But, player did not receive their messages.

    Its also happened with sprinting / sneaking, eating / exhausting, etc.

    I have 20 TPS average anyway.
    Its so strange for me, i'm using latest commit on 25 January.

    Any advice, recommendation, or help are very welcome! Thanks.
     
  2. HimbeersaftLP

    HimbeersaftLP Fish

    Messages:
    2,402
    GitHub:
    HimbeersaftLP
    This seems like a problem with your internet connection.
     
    EdwardHamHam and Sandertv like this.
  3. dktapps

    dktapps Administrator Staff Member PMMP Team

    Messages:
    774
    GitHub:
    dktapps
    has this issue started occurring recently?
     
    Kenn Fatt likes this.
  4. Kenn Fatt

    Kenn Fatt Slime

    Messages:
    82
    GitHub:
    kennfatt
    Yes.
    This commit are better than latest one. I dont know what happen with network or something.
    I always tracking and monitoring my server's resources usage (such: network connection, bandwidth, CPU, and RAM). There is no alert about overloading or something that affect to performance.

    And i hope this pull will solve everything.

    EDIT: When every packet got delayed, my console spammed by notice message "{player} moved too fast!" and debug message "Old position: ...". Then, after chunk loaded, player will receive everything properly and that notice message are stopped.

    Problems:
    * When delay happened, all packet seems fine with server.
    For example, A is a player and assume that every worlds has Anvil format:

    1. Teleporting to another world or location.

    A teleported to world that has DEFAULT generator from FLAT world (its rarely happen if they teleport to FLAT generator). A starting delayed for a while (he did'nt see any chunks for 5~10 second, its not constant so i can't tell exactly). Then, chunks loaded very slowly.

    2. Player got delayed, but others don't.
    While A got delayed, A send a chat "Hello world", and other player (for example: B) receive a message from A ("Hello world") without delay, but A still did'nt receive any message.
    I could put hunger as example too:
    Before A teleported to somewhere, he has Full (20) hunger bar. After he took a long delay, his hunger will decreased to (2~6, depends how long his delay).

    3. Everything back to normal.
    After A see all chunk loaded near him, now he can do everything normally.

    4. Delay happen again.
    A tried to explore the worlds, he move so far. When chunk load, he got delayed again.

    Thats what happen to my server @dktapps
     
    Last edited: Jan 28, 2018
  5. Kenn Fatt

    Kenn Fatt Slime

    Messages:
    82
    GitHub:
    kennfatt
    If it was related to client's connection, they has ping 20~110 (and i thought it's not bad for Minecraft Server)
     
  6. Kenn Fatt

    Kenn Fatt Slime

    Messages:
    82
    GitHub:
    kennfatt
  7. dktapps

    dktapps Administrator Staff Member PMMP Team

    Messages:
    774
    GitHub:
    dktapps
    In pocketmine.yml there is now a config option "max-mtu-size" under "network". By default it's 1492. Please try lowering it and see if the issue still occurs.
     
  8. Kenn Fatt

    Kenn Fatt Slime

    Messages:
    82
    GitHub:
    kennfatt
    Thanks for that, i tried to set it to 1308 *i did some test with ping to determine my optimal MTU size*. I'll wait my client's report after this update.

    Anyway, could i use all of my CPU to work to load chunks? I mean, how to optimize chunks performance with my CPU. (Async-workers has good value right now).
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.