Find Where Is The cuz Of lag

Discussion in 'Development' started by Zdhea, Jul 7, 2021.

  1. Zdhea

    Zdhea Spider

    Messages:
    13
    heey guys . so im working on a core plugin that make server freeze after like 10 minutes . console will die and anything will stop working and freeze . do you have any idea about how could i find the cuz of it ?
     
  2. Primus

    Primus Zombie Pigman

    Messages:
    693
    Sounds like a task that went into an infinite loop.

    Find a task that gets executed in that period?
     
    ErikX likes this.
  3. Zdhea

    Zdhea Spider

    Messages:
    13
    the problem is that core is so big . so i dont know where should i look for
     
  4. minijaham

    minijaham Zombie Pigman

    Messages:
    693
    GitHub:
    minijaham
    Don't you have things organized? Look in the files you schedule the tasks. Then you can start from there to track things down.
     
    ErikX likes this.
  5. ErikX

    ErikX Zombie

    Messages:
    219
    Also if you use the debug loggers, you can enable debug and see where your problem is
     
  6. Zdhea

    Zdhea Spider

    Messages:
    13
    how can i use debugger
    ?
     
  7. KygekDev

    KygekDev Witch

    Messages:
    72
    GitHub:
    KygekDev
    You can enable console debug in pocketmine.yml.
     
  8. Marabou

    Marabou Baby Zombie

    Messages:
    137
    GitHub:
    wiligangster
    Maybe using timings when server start
    use this commands /timings on
    When server freeze/ lagging try /timings paste
     
    ErikX likes this.
  9. ErikX

    ErikX Zombie

    Messages:
    219
    Logging in the debug logger:
    PHP:
    $this->getLogger()->debug(“Debug bla bla John somethin”);
    You can enable console debug in pocketmine.yml.
     
    NTT likes this.
  10. Zdhea

    Zdhea Spider

    Messages:
    13
    the problem is that whole server will freeze . also an update . this problem happens sometimes after AutoSaving . the problem is core for sure . but i didnt found anything in the plugin messing with autosaving
     
  11. minijaham

    minijaham Zombie Pigman

    Messages:
    693
    GitHub:
    minijaham
    If you couldn’t find anything wrong in your core, then the reason cant be the core. Perhaps the server is overloaded? Try upgrading your ram
     

Share This Page

  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.