摘要:
举个例子,用户 CPU 使用率高,我们应该去排查进程的用户态而不是内核态。因为用户 CPU 使用率反映的就是用户态的 CPU 使用情况,而内核态的 CPU 使用情况只会反映到系统 CPU 使用率上。 从 top 的输出可以得到各种 CPU 使用率以及僵尸进程和平均负载等信息。从 vmstat 的输出 阅读全文
摘要:
import logging from rest_framework.views import exception_handler as rest_handler from rest_framework.response import Response from django.db import D 阅读全文