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

Solved How to remove all reloadings?

Discussion in 'Development' started by Yexeed, Nov 26, 2017.

  1. Yexeed

    Yexeed Slime

    Messages:
    76
    Is it really possible on PHP server softwares to not restart server every hour (or two)? Because clearing entities that is not instance of Player isn't helped alot. Maybe there is a way to clear unused chunks? I just dont know how to detect them and clear. Default level is actually really loads my server with 70+ online (judjing by the timings)
     
  2. jasonwynn10

    jasonwynn10 Moderator Poggit Reviewer

    Messages:
    1,489
    GitHub:
    jasonwynn10
    There actually shouldn't be any need to clear or restart anything with servers. PocketMine has garbage collection tasks to take care of clearing unused chunks and caches
     
  3. robske_110 (Tim)

    robske_110 (Tim) Wither Skeleton Poggit Reviewer

    Messages:
    1,342
    GitHub:
    robske110
    have you seen any improvement after restarting the server? is there any noticeable difference? are you experiencing a ram leak?
     
  4. QuiverlyRivalry

    QuiverlyRivalry Zombie Pigman

    Messages:
    491
    GitHub:
    quiverlyrivalry
    Enable the command gc in pocketmine config
    Do /gc :D
     
    jasonwynn10 and Yexeed like this.
  5. Yexeed

    Yexeed Slime

    Messages:
    76
    I dont know what exactly of this, but with ~50 online players default level gets 166ms time. Is it normal? And Average TPS is 4.59(100%)
     
  6. Yexeed

    Yexeed Slime

    Messages:
    76
    UPD: Solved, just doing garbage collection every 5 minuts. (Maybe hacky)
     
    Last edited: Nov 26, 2017
  7. QuiverlyRivalry

    QuiverlyRivalry Zombie Pigman

    Messages:
    491
    GitHub:
    quiverlyrivalry
    Howd you make that :D
     
  8. Yexeed

    Yexeed Slime

    Messages:
    76
    Not trough dispatchCommand(), i promise :rolleyes:
     
  9. jasonwynn10

    jasonwynn10 Moderator Poggit Reviewer

    Messages:
    1,489
    GitHub:
    jasonwynn10
    there's a setting for it in the pocketmine.yml :rolleyes:
     
    HimbeersaftLP and SOFe like this.
  10. Yexeed

    Yexeed Slime

    Messages:
    76
    Where is? This one? upload_2017-11-27_14-28-11.png
     
    jasonwynn10 likes this.
  11. jasonwynn10

    jasonwynn10 Moderator Poggit Reviewer

    Messages:
    1,489
    GitHub:
    jasonwynn10
    Yes. If you shorten the garbage collection period, the server will clear its caches more often. Remember, that number is in ticks.
     
    EdwardHamHam and NickTehUnicorn like this.
  12. QuiverlyRivalry

    QuiverlyRivalry Zombie Pigman

    Messages:
    491
    GitHub:
    quiverlyrivalry
    Is 1 tick, like 1 second?
     
  13. NickTehUnicorn

    NickTehUnicorn Zombie

    Messages:
    200
    GitHub:
    unickorn
    Depends on your TPS (ticks per second), but it's 20 ticks per second if you don't have performance problems.
     
  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.