Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

High CPU usage from web.py - MySQL #251

Open
WhenDaBoostHitU opened this issue Aug 18, 2016 · 5 comments
Open

High CPU usage from web.py - MySQL #251

WhenDaBoostHitU opened this issue Aug 18, 2016 · 5 comments

Comments

@WhenDaBoostHitU
Copy link

WhenDaBoostHitU commented Aug 18, 2016

I just updated the the newest release (v0.5.4) and now I'm getting extremely high CPU usage. On the previous release (v0.5.3) I was not experiencing this issue. It only happens when I run web.py.

When I run the query SHOW PROCESSLIST; I can see that the query SELECT fs.fort_id, fs.id, ... is causing the problem. I have to go in and manually and kill the query process after aborting the web.py script.

Anyone else experiencing this issue? Any quick fix?

EDIT: I also have all the latest versions of the requirements.txt

@Aiyubi
Copy link

Aiyubi commented Aug 19, 2016

just get the latest master where it is fixed

@gunawanputra
Copy link

What is the version of mysql you use?

@WhenDaBoostHitU
Copy link
Author

@Aiyubi I just downloaded the master version, same problem. @gunawanputra I'm currently running MySQL v5.5

@gunawanputra
Copy link

MySQL 5.5 should be able to run the query smoothly. I ask about mySQL version because I got the same problem when try to open web.py. My CPU usage even rise to 100%.

Later I found that I'm still using mysql 5.0.51b that come with xampp 1.6.7. When I try to run get_forts query mysql 5.0 need more than a minute to finish. Right now I'm using xampp 5.6 and migrate my pokeminer to mariaDB, and don't get any problem with the new get_forts query.

Maybe there is in your mysql configuration? What storage engine that you use?

check this link https://bobcares.com/blog/fix-mysql-high-cpu-usage/

@modrzew
Copy link
Owner

modrzew commented Aug 21, 2016

Could you try checking the query on MySQL 5.7 if possible? I don't have any issues with it there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants