Redis monitoring status connect command

Source: Internet
Author: User
Tags keep alive redis server
Redis monitoring status connect command 1, redis-benchmarkredis benchmark information, redis server performance detection redis-benchmark-hlocalhost-p6379-c100-n100000100 concurrent connections, 100000 requests, check the performance of the redis server whose host is localhost and port is 6379. Java code [root @ mongotredi

Redis monitoring status connect command 1, redis-benchmark redis benchmark information, redis server performance detection redis-benchmark-h localhost-p 6379-c 100-n 100000 100 concurrent connections, 100000 requests. Check the performance of the redis server whose host is localhost and port is 6379. Java code [root @ effecect redi

Redis monitoring status connect command

1. redis-benchmark

Redis benchmark information, redis server performance Detection

Redis-benchmark-h localhost-p 6379-c 100-n 100000

100 concurrent connections and 100000 requests. Check the performance of the redis server whose host is localhost and port is 6379.

Java code

[Root @ effecect redis-1.2.6] # redis-benchmark-h localhost-p 6379-c 100-n 100000

===== PING ======

10001 requests completed in 0.41 seconds

50 parallel clients

3 bytes payload

Keep alive: 1

0.01% <= 0 milliseconds

23.09% <= 1 milliseconds

85.82% <= 2 milliseconds

95.60% <= 3 milliseconds

97.20% <= 4 milliseconds

97.96% <= 5 milliseconds

98.83% <= 6 milliseconds

99.41% <= 7 milliseconds

99.70% <= 8 milliseconds

99.99% <= 9 milliseconds

100.00% <= 12 milliseconds

24274.27 requests per second

2. redis-cli

Redis-cli-h localhost-p 6380 monitor

Dump all the specified ed requests in real time;

Monitor the connection and read/write operations of redis when the host is localhost and the port is 6380.

Java code

[Root @ effecect redis-1.2.6] # redis-cli-h localhost-p 6380 monitor

+ OK

+ 1289800615.808225 "monitor"

+ 1289800615.839079 "GET" "name"

+ 1289800615.853694 "PING"

+ 1289800615.853783 "PING"

+ 1289800615.854646 "PING"

+ 1289800615.854974 "PING"

+ 1289800615.857693 "PING"

+ 1289800615.866862 "PING"

+ 1289800615.871944 "PING"

Redis-cli-h localhost-p 6380 info

Provide information and statistics about the server;

Provides statistics on the redis service, including the host, localhost, and port 6380.

Java code

[Root @ effecect redis-1.2.6] # redis-cli-h localhost-p 6380 info

Redis_version: 2.0.4

Redis_git_sha1: 00000000

Redis_git_dirty: 0

Arch_bits: 32

Multiplexing_api: epoll

Process_id: 21990

Uptime_in_seconds: 490580

Uptime_in_days: 5

Connected_clients: 103

Connected_slaves: 0

Blocked_clients: 0

Used_memory: 4453240

Used_memory_human: 4.25 M

Changes_since_last_save: 200

Bgsave_in_progress: 0

Last_save_time: 1290394640

Bgrewriteaof_in_progress: 0

Total_connections_received: 809

Total_commands_processed: 44094018

Expired_keys: 0

Hash_max_zipmap_entries: 64

Hash_max_zimap_value: 512

Pubsub_channels: 0

Pubsub_patterns: 0

Vm_enabled: 0

Role: slave

Master_host: localhost

Master_port: 6379

Master_link_status: up

Master_last_io_seconds_ago: 18

Db0: keys = 1319, expires = 0

3. redis-stat

Redis-stat host localhost port 6380 overview

Print general information about a Redis instance;

In real time, the host is localhost, the port is 6380, and the overall information of the redis instance is printed.

Java code

[Root @ effecect redis-1.2.6] # redis-stat port 6380 overview

------- Data ------ ------------ load ------------------------------childs-

Keys used-mem clients requests connections

1319 5.37 M 103 44108021 (+ 44108021) 810

1319 5.38 M 103 44108124 (+ 103) 810

1319 5.38 M 103 44108225 (+ 101) 810

1319 5.39 M 103 44108326 (+ 101) 810

1319 5.40 M 103 44108427 (+ 101) 810

1319 5.41 M 103 44108528 (+ 101) 810

Redis-stat host localhost port 6380 overview

Measure Redis server latency;

The output host is localhost and the port is 6380. the response time of each request in the redis Service

Java code

[Root @ effecect redis-1.2.6] # redis-stat port 6380 latency

1: 0.16 MS

2: 0.11 MS

3: 0.15 MS

4: 0.11 MS

5: 0.18 MS

6: 0.14 MS

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.