推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
hayao650
V2EX  ›  Python

django 程序突然大量爆出 UnreadablePostError: request data read error 错误

  •  
  •   hayao650 · Jul 14, 2015 · 3690 views
    This topic created in 3990 days ago, the information mentioned may be changed or developed.
    我的django程序跑在树莓派上,用的是apache服务器,运行一段时间后会出现大量的UnreadablePostError: request data read error错误,直到手动重启才能解决问题。
    7 replies    2015-07-15 22:43:16 +08:00
    socrates
        1
    socrates  
       Jul 14, 2015
    有没有可能是network interface的MTU设置的不对?
    est
        2
    est  
       Jul 14, 2015
    遇到这类问题,一般解决办法是:处理1000个请求之后重启apache和python组件。
    hayao650
        3
    hayao650  
    OP
       Jul 14, 2015
    @socrates 你说的是linux系统的么?
    hayao650
        4
    hayao650  
    OP
       Jul 14, 2015
    @est 啊?处理1000个就要重启apache?那岂不是没多长时间就要重启一次!
    est
        5
    est  
       Jul 14, 2015
    @hayao650 一般服务器都是4核8核的,重启一个worker又不费事。python的好处就是重启载入特别快,几乎察觉不到有延迟。
    hayao650
        6
    hayao650  
    OP
       Jul 14, 2015
    @est 我用的是树莓派B+,性能比较差
    socrates
        7
    socrates  
       Jul 15, 2015
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3429 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 11:24 · PVG 19:24 · LAX 04:24 · JFK 07:24
    ♥ Do have faith in what you're doing.