Skip to content
This repository has been archived by the owner on Apr 19, 2021. It is now read-only.

100% loads #245

Open
3 tasks
TDMidkwhatisxd opened this issue Oct 20, 2017 · 13 comments
Open
3 tasks

100% loads #245

TDMidkwhatisxd opened this issue Oct 20, 2017 · 13 comments
Labels
Category: Enhancement This makes the code quality better Status: Confirmed

Comments

@TDMidkwhatisxd
Copy link

  • This issue isn't duplicated - you can check if it is by using the search bar located at the top left hand corner and select "Issues" on the left.
  • This issue includes appropriate markdown for sections - e.g. code blocks for crash dumps.
  • This issue is understandable - feel free to use your native language to write issues if you are not comfortable with English.

Issue description

...

Reproducing the issue

  1. ...
  2. ...

Client information

PocketMine-MP Version: ( PocketMine-MP 1.7dev-275 ▒[REDACTED]▒
)
Plugin Version: (1805209)
PHP version: 7.02rc3(default)

Optional information such as Client OS/Version What was happening when the error occured.

...

Replace this text with console / error logs or crash dumps. (Do not remove the triple backticks above and below this.)

Hi, I experienced really high loads with this plugin. May be, player explotation.
Every time a player joined, username: Delal.....etc... , Server loads would be at 100% and could not do any action in console or connect to it anymore, I used kill-9 to can close it.

I will try to make the story short:

  1. A player joined server froze ( I joined without problems, until that player came)
  2. Server loads were at 100% with 2 players online and 14 mobs.
  3. close/open server , wen that player joined server froze again.
  4. Remove plugin , all fine but that player died in void 0-0 .
  5. Plugin removed and server loads is at 10% with 9 player on.
  6. No problems no lag

I really like the plugin , but is there a way to optimize it? I just wanna mobs walking and attacking, don't need heavy tasks :D ....

I'm sorry if this issue is invalid or just a spam, I searched in issues, but they were incomplete and closed.

@TDMidkwhatisxd
Copy link
Author

TDMidkwhatisxd commented Oct 20, 2017

this was 2-3 days ago, I really wanna to add mobs in my server but from loads 2-3% it go to 100% and all froze if I install the plugin.

@jasonw4331
Copy link
Contributor

The AI of the mobs in this plugin is not calculated async, so the server will put all load on the main thread. This needs changed @95CivicSi

@TDMidkwhatisxd
Copy link
Author

thanks for info.

@95CivicSi
Copy link
Collaborator

Looking into it.

@95CivicSi
Copy link
Collaborator

From what I can tell at the moment, this will probably require a significant rewrite to the code. That means time. I'm creating a branch that will handle this issue (and some other AI movement problems) and will try to post updates either here, in the wiki or something so that you can keep up with what's happening.

@TDMidkwhatisxd
Copy link
Author

TDMidkwhatisxd commented Oct 21, 2017

I think is something else. Server froze because all cpu was used.
Like 5 players online 14 mobs and cpu at 200%.
Check for leaks.

@TDMidkwhatisxd
Copy link
Author

there may be a loop glitch, or something like that, like a bad code.

@jasonw4331
Copy link
Contributor

There are no loops, just poor optimization

@95CivicSi
Copy link
Collaborator

95CivicSi commented Feb 9, 2018

Anyone experiencing this problem, please test with this version of PureEntitiesX
https://poggit.pmmp.io/r/22751/PureEntitiesX_dev-220.phar

And this version of PocketMine-MP:
https://github.com/pmmp/PocketMine-MP/releases/tag/1.7dev-698

See Below Comment

And report back if you still experience issues.

@TDMidkwhatisxd
Copy link
Author

Cant test on that pmmp version because it freeze server due to XP glitch. It was fixed on latest release.

@95CivicSi
Copy link
Collaborator

PocketMine-MP had significant problems in 1.7-dev698 that were fixed with 1.7-dev743. Please test with this release instead:

https://github.com/pmmp/PocketMine-MP/releases/tag/1.7dev-743

@TDMidkwhatisxd
Copy link
Author

I don't know if u had this problem, but creeper don't die after exploding, so it makes explosion spam

@95CivicSi
Copy link
Collaborator

@TDMidkwhatisxd I created an issue (#285) for that this morning and fixed it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Category: Enhancement This makes the code quality better Status: Confirmed
Projects
None yet
Development

No branches or pull requests

3 participants