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

Lag

Discussion in 'Plugin Help' started by CocoonBuilder, Oct 13, 2018.

  1. CocoonBuilder

    CocoonBuilder Spider Jockey

    Messages:
    43
    GitHub:
    chimneychuckles
    I put the topic in this section because it might be my plugin?

    I was wondering if anyone could help me with this lag situation I'm having on my minecraft server running mc 1.6. There are usually around 15-20 players online. I have a worldborder set at 10000 blocks. I tried removed all plugins that may be the reason of causing lag but it still didnt fix. Anyone know or can help me find a solution and fix the lag?

    Have anyone encounter this issue before? FYI tps is always at 19 - 20
     
  2. MalakasPlayzMCPE

    MalakasPlayzMCPE Zombie Pigman

    Messages:
    667
    Do you know how to use /timings?
     
  3. CocoonBuilder

    CocoonBuilder Spider Jockey

    Messages:
    43
    GitHub:
    chimneychuckles
    i don't see the point of it since the tps are always 19 - 20?
     
  4. Darku

    Darku Spider Jockey

    Messages:
    49
    GitHub:
    DarkWav
    1. try uninstalling ALL plugins. ANY of them can cause lag, no matter what type of plugins they are. (tho AntiCheats are espicially known for this since they always run in the background and consume resources...)
    Also try turning off PMMPs internal AntiCheat. While it is coded to work much more efficient than 3rd-party-anticheats, it is still an anticheat, so it can hog your resources on a low-end server. Of course you should only do this if you don't have problems with hackers. And don't install SAC, of course!
    2. If your TPS are high, its probably a result of a poor CPU and low Computing Power of your server.
    Do you know the hardware specs of the server (RAM, CPU, ect...)?
     
  5. CocoonBuilder

    CocoonBuilder Spider Jockey

    Messages:
    43
    GitHub:
    chimneychuckles
    1) Already removed all plugins and test and it still lag

    2) 8GB of ram
     
  6. Darku

    Darku Spider Jockey

    Messages:
    49
    GitHub:
    DarkWav
    So, try to turn off all anticheats.. if it does not work your server probably has a bad CPU. To fix lag then, you can optimize the pocketmine.yml + server.properties or downright switch to a provider which is willing to give you a half-decent CPU.
     
  7. CocoonBuilder

    CocoonBuilder Spider Jockey

    Messages:
    43
    GitHub:
    chimneychuckles
    how could i optimize it, what do i have to changes?
     
  8. EdwardHamHam

    EdwardHamHam Skeleton

    Messages:
    962
    GitHub:
    edwardhamham
    What are the CPU specs of the machine you're trying to run the server on? The amount of RAM you have doesn't matter as much with PocketMine as much as a good CPU does.
     
  9. Destroyer57

    Destroyer57 Zombie

    Messages:
    275
    Whats your network speed or whats the network speed of your VPS
     
  10. CocoonBuilder

    CocoonBuilder Spider Jockey

    Messages:
    43
    GitHub:
    chimneychuckles
    hate to say this but i didnt host my server on VPS due to some reason :/
     
  11. CocoonBuilder

    CocoonBuilder Spider Jockey

    Messages:
    43
    GitHub:
    chimneychuckles
    i dont think im able to tell because the server i run is on host server
     
  12. EdwardHamHam

    EdwardHamHam Skeleton

    Messages:
    962
    GitHub:
    edwardhamham
    Which host are you hosting it with?
     
  13. CocoonBuilder

    CocoonBuilder Spider Jockey

    Messages:
    43
    GitHub:
    chimneychuckles
    Ramshard and people are saying it bad
     
  14. MalakasPlayzMCPE

    MalakasPlayzMCPE Zombie Pigman

    Messages:
    667
    Alright, so because we also use RAMShard, it has to be a plugin problem for sure. What we did wrong and we lagged was sending the statistics of the players on a popup searching on 3 files with over 10k lines every 0.5 seconds, so we changed the way we store them after we figured out. The leaderboard was also causing lag because it was scandir()ing every time a player joined, so the owner re-wrote it, after two months of the server opening because he did not know how, and made it update every 5 minutes (https://forums.pmmp.io/threads/change-the-text-of-a-floating-text-particle-multiple-levels-bug.6472/). What should be causing the lag on you is either your plugins or you are getting DDoSed.
     
  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.