Memory

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

  1. Mr174

    Mr174 Slime

    Messages:
    86
    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:
    125
    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 Slime

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

    Mr174 Slime

    Messages:
    86
    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:
    259
    In pocketmine.yml try setting main-hard-limit to 16000
     
  6. Mr174

    Mr174 Slime

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

    Levi Skeleton

    Messages:
    846
    GitHub:
    captainleviftw
    Put 0
     

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.