This article is a mirror article of machine translation, please click here to jump to the original article.

View: 23467|Reply: 1

[Redis] Monitor the commands that Redis is executing

[Copy link]
Posted on 6/19/2021 11:02:50 AM | | | |
Recently, I was working on performance optimization and wanted to see the commands that Redis was executing in real time to understand the status of website calls. So I found the Monitor command provided by redis-cli, which can be used directly to monitor most of the redis commands executed, because some commands such as config will not be recorded for security reasons.
Using the redis-cli client, run the following command:




Since the MONITOR command returns all the commands processed by the server, there is some performance consumption. According to the benchmarks on the Internet,Running a MONITOR command reduces throughput by 50%Therefore, it is only for debugging during the development process.





Previous:MySQL determines whether a table or field exists when adding a new table
Next:Linux gets the total size of the disk
Posted on 9/22/2021 8:29:46 PM |
Learn to learn...
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com