Pocketmine-mp: Memory leak

Created on 15 Aug 2017  路  14Comments  路  Source: pmmp/PocketMine-MP

Issue description

When I turn on the server, write / status sends me that the virtual memory is 581. I will try again for a few seconds and the virtual memory is 587. If I wait for an hour and I only have a server for 1GB ram after some time of the server crash. (Up to 10 players online).



Steps to reproduce the issue

  1. Start server
  2. Wait hour and few minutes

OS and versions

  • down

Plugins

  • Tested without plugins

Crashdump, backtrace or other files

minecraft_ windows 10 edition 15 08 2017 15_04_32

Core Awaiting Response

Most helpful comment

700 chunks does not consume such a large amount of RAM.

All 14 comments

If you could obtain a memory dump when the server has nearly exhausted its memory limit, that would help debugging the problem.

When the server is near the memory limit, run dumpmemory in the console. It will dump the memory contents to a memoryDump directory in your server folder. Zip that up and upload it somewhere so we can take a look. Thanks.

I do not know if I did everything right... link: https://files.fm/u/dhh4eqaa

how high was the memory usage when you created this memory dump?

1100MB

But... Take a look to the world chunks. They go from ~300 to ~700. I think it's normal this memory usage.

700 chunks does not consume such a large amount of RAM.

@GamakCZ I cannot identify the cause of your issue from the memory dump you've given. The dump needs to be performed when the server main thread memory is near its limit.

I tested it in my server and it happens too. After half hour the total memory goes from 800-850 MB (stable) to 6 GB and it crashes. I will send you the dump memory result.

@dktapps where can I send you privately the files? (Crash dump, dumpmemory and images)

Upload it somewhere and then PM me the link on the forums if you want.

I pushed a commit to add memory limits for AsyncWorkers, would you guys mind testing it?

Until is fixed, you could use RestartMe plugin, to restart server at a interval.

Closing this due to lack of response.

No fixed

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dktapps picture dktapps  路  3Comments

TheDiamondYT1 picture TheDiamondYT1  路  3Comments

L3ice picture L3ice  路  3Comments

jasonwynn10 picture jasonwynn10  路  3Comments

sergeysova picture sergeysova  路  3Comments