pmmp / PocketMine-MP

A server software for Minecraft: Bedrock Edition in PHP
https://pmmp.io
GNU Lesser General Public License v3.0
3.27k stars 1.54k forks source link

Abnormal resource usage #3274

Closed nnnlog closed 4 years ago

nnnlog commented 4 years ago

Issue description

Steps to reproduce the issue

  1. join the server or teleport to other worlds.

OS and versions

Plugins

Crashdump, backtrace or other files

https://timings.pmmp.io/?id=7809

dktapps commented 4 years ago

There's no problem with chunk loading in that timings report.

nnnlog commented 4 years ago

@dktapps Looking at resource usage using htop when moving from one world to another, it seems that PMMP's async task is reaching 100% CPU usage. I do not believe PMMP measures asynchronous operations.

dktapps commented 4 years ago

This isn't abnormal, it's just a consequence of using the new chunk format. The paletted format is more expensive to encode.