Home  >  Q&A  >  body text

python - Django web project has high CPU usage. How to perform performance analysis?

First of all, I have never done performance analysis. I am a newcomer. When I was maintaining the previous code, the project had a very high CPU usage, which could probably eat up the CPU. Now that the original code maintainer has resigned, it is difficult to ask anyone. , I have no choice but to come here to ask all the veterans, what should I do when encountering this situation, or how should I start the analysis, please, newbies, please help

typechotypecho2709 days ago1148

reply all(2)I'll reply

  • 我想大声告诉你

    我想大声告诉你2017-06-12 09:28:40

    http://www.ituring.com.cn/boo...
    I don’t do web, so I don’t know very well.

    reply
    0
  • 巴扎黑

    巴扎黑2017-06-12 09:28:40

    First locate the CPU-consuming process and see which process accounts for the highest CPU usage. Is the database on the same machine?

    reply
    0
  • Cancelreply