dqg2269 2015-10-28 09:03
浏览 71

这些读数是否适用于~500 CCU的应用?

The server is setup with the site (PHP + MariaDB + Nginx) on the frontend connected to a websocket server (Node.js + socket.io) in the backend. The node.js server is on the left and the LEMP stack is on the right. I'm getting unusually high CPU usage from MySQL, I'm not sure though if this is normal since I do have an 8 core CPU.

https://gyazo.com/9b3a7e740360c79623ab7d58f1b9d9ca

MySQL idles at 5-10% CPU usage, and this happens under load. MySQL maxes out at around 200% CPU usage under load, but it seems to be balanced among the 8 cores. I'm just wondering, is this normal behaviour? If not, what can I do to figure out what's causing it?

  • 写回答

1条回答 默认 最新

  • drxnfdx798517235 2015-11-03 05:14
    关注

    High CPU is almost always caused by inefficient queries, possibly involving missing or inadequate indexes.

    SHOW FULL PROCESSLIST, then show us the slow queries, plus EXPLAIN SELECT ... and SHOW CREATE TABLE.

    评论

报告相同问题?

悬赏问题

  • ¥15 安装svn网络有问题怎么办
  • ¥15 Python爬取指定微博话题下的内容,保存为txt
  • ¥15 vue2登录调用后端接口如何实现
  • ¥65 永磁型步进电机PID算法
  • ¥15 sqlite 附加(attach database)加密数据库时,返回26是什么原因呢?
  • ¥88 找成都本地经验丰富懂小程序开发的技术大咖
  • ¥15 如何处理复杂数据表格的除法运算
  • ¥15 如何用stc8h1k08的片子做485数据透传的功能?(关键词-串口)
  • ¥15 有兄弟姐妹会用word插图功能制作类似citespace的图片吗?
  • ¥15 latex怎么处理论文引理引用参考文献