Pylons / waitress

Waitress - A WSGI server for Python 3
https://docs.pylonsproject.org/projects/waitress/en/latest/
Other
1.44k stars 164 forks source link

waitress-servce consume 100% cpu #411

Closed liyuan231 closed 7 months ago

liyuan231 commented 1 year ago

flask waitress-serve Package Version


attrs 21.4.0 boto3 1.20.39 botocore 1.23.54 click 8.0.4 coverage 6.2 et-xmlfile 1.1.0 Flask 2.0.2 flask-http-middleware 0.1.3 flask-swagger 0.2.14 flask-swagger-ui 3.36.0 gurobipy 9.5.0 importlib-metadata 4.11.1 iniconfig 1.1.1 itsdangerous 2.1.0 Jinja2 3.0.3 jmespath 0.10.0 MarkupSafe 2.1.0 numpy 1.21.6 openpyxl 3.0.9 packaging 21.3 pandas 1.3.5 pip 22.0.3 pluggy 1.0.0 py 1.11.0 PyJWT 2.3.0 PyMySQL 1.0.2 pyparsing 3.0.7 pytest 6.2.5 pytest-flask 1.2.0 python-dateutil 2.8.2 pytz 2023.3 PyYAML 6.0 s3transfer 0.5.1 setuptools 57.4.0 six 1.16.0 toml 0.10.2 typing_extensions 4.1.1 urllib3 1.26.8 waitress 2.0.0 Werkzeug 2.0.3 wheel 0.37.0 xlwt 1.3.0 zipp 3.7.0

image image
mcdonc commented 1 year ago

Hi,

The waitress process serves the code that it's instructed to, so even though it says "waitress-serve" as the process name, it could be any code that you're serving that is consuming CPU. You might want to try use a Python profiler to narrow things down.

digitalresistor commented 7 months ago

Closing in favor of #418 in case it is the same issue.