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

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:
    749
    Sounds like a task that went into an infinite loop.

    Find a task that gets executed in that period?
     
    Axon 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 Skeleton

    Messages:
    801
    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.
     
    Agent and Axon like this.
  5. Axon

    Axon Zombie

    Messages:
    276
    Also if you use the debug loggers, you can enable debug and see where your problem is
     
    Agent likes this.
  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
     
    Axon likes this.
  9. Axon

    Axon Zombie

    Messages:
    276
    Logging in the debug logger:
    PHP:
    $this->getLogger()->debug(“Debug bla bla John somethin”);
    You can enable console debug in pocketmine.yml.
     
    Agent and NTT like 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 Skeleton

    Messages:
    801
    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
     
    Agent likes this.
  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.