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

Memory

Discussion in 'Help' started by Mr174, May 13, 2019.

  1. Mr174

    Mr174 Baby Zombie

    Messages:
    187
    GitHub:
    mr174
    I've been having a memory leak I cant seem to find when my player base hits 60 server dies from raklib memory accessed
    So what is the best way to find a leak?
    What are some ways I can prevent this from happening again
    NOTE: I've tried timings
     
  2. hikingjungle

    hikingjungle Baby Zombie

    Messages:
    123
    GitHub:
    hikingjungle
    first of all how much memory do you have.
    how much do you have allocated to pmmp.
    and what version of pmmp are you using
     
  3. Mr174

    Mr174 Baby Zombie

    Messages:
    187
    GitHub:
    mr174
    Ram 16GB, 1 TB SSD Space
    Dedicate 3 to PMMP
    PocketMine-MP 3.8.2
     
  4. Mr174

    Mr174 Baby Zombie

    Messages:
    187
    GitHub:
    mr174
    Error: RakLib Thread crashed
    File: src/pocketmine/network/mcpe/RakLibInterface
    Line: 112
    Type: Exception

    Code:
    [103]
    [104] public function setNetwork(Network $network){
    [105] $this->network = $network;
    [106] }
    [107]
    [108] public function process() : void{
    [109] while($this->interface->handlePacket()){}
    [110]
    [111] if(!$this->rakLib->isRunning() and !$this->rakLib->isShutdown()){
    [112] throw new \Exception("RakLib Thread crashed");
    [113] }
    [114] }
    [115]
    [116] public function closeSession(string $identifier, string $reason) : void{
    [117] if(isset($this->players[$identifier])){
    [118] $player = $this->players[$identifier];
    [119] unset($this->identifiers[spl_object_hash($player)]);
    [120] unset($this->players[$identifier]);
    [121] unset($this->identifiersACK[$identifier]);
    [122] $player->close($player->getLeaveMessage(), $reason);
     
  5. Destroyer57

    Destroyer57 Zombie

    Messages:
    275
    In pocketmine.yml try setting main-hard-limit to 16000
     
  6. Mr174

    Mr174 Baby Zombie

    Messages:
    187
    GitHub:
    mr174
    16gb ram hell no plus I have multiple servers
     
  7. Levi

    Levi Skeleton

    Messages:
    955
    GitHub:
    captainleviftw
    Put 0
     
  8. TeraCube

    TeraCube Zombie

    Messages:
    262
    GitHub:
    teracube
  9. TeraCube

    TeraCube Zombie

    Messages:
    262
    GitHub:
    teracube
    Last edited: Jul 23, 2019
    Mr174 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.