Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to solve the problem of high Redis CPU

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)05/31 Report--

How to solve the problem of Redis CPU high, many novices are not very clear about this, in order to help you solve this problem, the following small series will explain in detail for everyone, there are people who need this can learn, I hope you can gain something.

Problem Description:

The OS CPU alarm utilization rate of the host where redis is located exceeds 90%.

Problem analysis:

According to zabbix view, the number of redis transactions started to increase at 19:00 the previous day, and cpu usage increased synchronously and continued to increase. Query slow log get 10, there are no abnormal slow logs.

Looking at the current state of redis, memory usage is low, only 20%, but the number of transactions per second for a single instance reaches 80,000.

Check the monitor output, constantly ping and rpop. 80,000 ops per second.

1459904160.169236 [0 192.168.10.241:7993] "RPOP" "mm_dd_crash"

1459904160.169243 [0 192.168.10.44:9694] "PING"

1459904160.169247 [0 192.168.10.193:13517] "PING"

1459904160.169285 [0 192.168.10.44:9921] "RPOP" "mm_dd_crash"

1459904160.169306 [0 192.168.10.119:4365] "PING"

1459904160.169311 [0 192.168.10.193:13464] "RPOP" "mm_dd_crash"

CPU usage dropped after the middleware application was discontinued.

Did reading the above help you? If you still want to have further understanding of related knowledge or read more related articles, please pay attention to the industry information channel, thank you for your support.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report