首页 > 数据库 >【Redis】常用命令

【Redis】常用命令

时间:2022-10-10 14:11:41浏览次数:53  
标签:used mem 常用命令 Redis human memory allocator rss

查看内存

# redis-cli
127.0.0.1:6379> auth 123456
127.0.0.1:6379> info memory

结果

# Memory
used_memory:42030440
used_memory_human:40.08M
used_memory_rss:46362624
used_memory_rss_human:44.21M
used_memory_peak:64010632
used_memory_peak_human:61.05M
used_memory_peak_perc:65.66%
used_memory_overhead:2108332
used_memory_startup:803008
used_memory_dataset:39922108
used_memory_dataset_perc:96.83%
allocator_allocated:42146632
allocator_active:43757568
allocator_resident:47595520
total_system_memory:67326414848
total_system_memory_human:62.70G
used_memory_lua:37888
used_memory_lua_human:37.00K
used_memory_scripts:0
used_memory_scripts_human:0B
number_of_cached_scripts:0
maxmemory:0
maxmemory_human:0B
maxmemory_policy:noeviction
allocator_frag_ratio:1.04
allocator_frag_bytes:1610936
allocator_rss_ratio:1.09
allocator_rss_bytes:3837952
rss_overhead_ratio:0.97
rss_overhead_bytes:-1232896
mem_fragmentation_ratio:1.10
mem_fragmentation_bytes:4373192
mem_not_counted_for_evict:0
mem_replication_backlog:0
mem_clients_slaves:0
mem_clients_normal:1053132
mem_aof_buffer:0
mem_allocator:jemalloc-5.1.0
active_defrag_running:0
lazyfree_pending_objects:0

 

标签:used,mem,常用命令,Redis,human,memory,allocator,rss
From: https://www.cnblogs.com/yangchongxing/p/16775519.html

相关文章

  • 思科交换机常用命令汇总
    思科交换机常用命令汇总show versionshow running-configshow vlan briefshow ip interface briefshow running-config interface f0/1show ip routeshow inve......
  • k8s中部署redis集群(三主三从)
    1环境说明主机名系统版本IP地址cpu/内存/磁盘用途软件版本k8s_nfsCentOS7.5172.16.1.602核/2GB/60GBnfs存储nfs-utils-1.3.0-0.68k8s-master1CentOS7.5172.16.1.812核/2GB/......
  • Docker学习(二)常用命令
    一、帮助启动类命令启动docker:systemctlstartdocker停止docker:systemctlstopdocker重启docker:systemctlrestartdocker查看docker状态:systemctlstatusdocker......
  • Redis理论
    什么是RedisRedis(RemoteDictionaryServer)是使用C语言编写的,开源的(BSD许可)高性能非关系型(NoSQL)的键值对数据库。Redis可以存储键和五种不同类型的值之间的映射。键......
  • linux 防火墙常用命令 - 备忘
    新增端口访问firewall-cmd--permanent--add-port=8080/tcp重启防火墙`systemctlrestartfirewalld.service其他关闭防火墙systemctlstopfirewalld.service......
  • npm 常用命令
    查看less-loader的所有版本:npmviewless-loaderversions查看less-loader最新的版本:npmviewless-loaderversion安装7版本的less-loader:npmiless-loader@7......
  • FastAdmin 开源常用命令笔记
    FastAdmin开源常用命令笔记常规命令TODO特殊的命令1.less编译将fastadmin.less编译为fastadmin.csslessc./public/assets/less/fastadmin.less./public/asse......
  • dotnet core操作Mysql、Redis
    usingSystem;usingMicrosoft.AspNetCore.Hosting;usingMicrosoft.Extensions.Hosting;usingMySql.Data.MySqlClient;namespacedotnet_demo{publicclassProgramcl......
  • tmux的常用命令
    tmux的常用命令终端复用器(terminalmultiplexer)tmux的用处命令行的用法是打开一个终端窗口(窗口:terminalwindow),输入命令。用户与主机之间的交互称之为会话(sess......
  • @Redis数据类型及应用场景
    一、Redis与Memcached的区别1、Redis不仅仅支持简单的k/v类型的数据,同时还提供list,set,zset,hash等数据结构的存储。2、Redis支持数据的备份,即master-slave模式的数据......