1, Redis-benchmark
Redis baseline information, Redis server performance detection
Redis-benchmark-h localhost-p 6379-c 100-n 100000
100 concurrent connections, 100,000 requests, detecting Redis server performance with host localhost port 6379
[Root@architect redis-1.2.6]# redis-benchmark-h localhost-p 6379-c 100-n 100000
= = PING = =
10001 reque STS completed in 0.41 seconds
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 milli Seconds
97.96% <= 5 milliseconds
98.83% <= 6 milliseconds
99.41% <= 7 milliseconds
99.7% & lt;= 8 milliseconds
99.99% <= 9 milliseconds
100.00% <= milliseconds 24274.27 requests per
second
2, REDIS-CLI
Redis-cli-h localhost-p 6380 Monitor
Dump all the received requests at real time;
Monitor host for localhost, port for 6380,redis connection and read and write operation
[Root@architect 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 for 6380,redis service with host as localhost, port
[Root@architect 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.25m
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_zipmap_value :
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;
Real-time print out host for localhost, port for 6380,redis instance of the overall information
[Root@architect redis-1.2.6]# redis-stat Port 6380 Overview
-------data------------------Load------------------ ------------Childs-
keys USED-MEM clients requests Connections
1319 5.37M 44108021 (+44108021) 810
1319 5.38M 44108124 (+103) 810
1319 5.38M 44108225 (+101) 810
1319 5.39M 44108326 (+101) 810 1319 5.40M 44108427 (+101) 810
1319 5.41M 44108528 (+101) 810
Redis-stat host localhost Port 6380 overview
Measure Redis Server latency;
The output host is localhost and the port is the response length of each request in the 6380,redis service
[Root@architect 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