poggit / libasynql

Asynchronous MySQL access library for PocketMine plugins.
https://poggit.github.io/libasynql
Apache License 2.0
132 stars 44 forks source link

High CPU on Linux hosts only. #22

Closed AlexPads closed 4 years ago

AlexPads commented 4 years ago

Describe the bug Servers running Linux have High CPU usage when a server containing this is running.

Expected behavior CPU to stay at a lower level than what the allocated CPU is for the instances.

Other Info Me and matcracker looked into this issue on his plugin BedCoreProtect and found that the viron only affects Linux hosts.

Environment OS: Linux Ubuntu 16.04, 18.04, 19.04 CentOS 7 PocketMine versions: 3.0.0 - 3.11.1

SOF3 commented 4 years ago

I'd be grateful if someone could rewrite the thread communication part with pmmp/snooze.