常说要留一半以上的内存给 ES 的 cache,那么怎样查看 ES 占用的 cache 的大小?(干货 | 吃透Elasticsearch 堆内存)node
CPU: Intel Xeon E5-2620 v2 (24) @ 2.600GHz Memory: 128GB OS: CentOS Linux release 7.9.2009 ES: 7.10.0
GET _cat/nodes?help
GET _cat/nodes?v&h=ip,name,heap.*
ip name heap.current heap.percent heap.max 192.168.1.219 node-1 17.2gb 57 30gb
GET _cat/nodes?v&h=ip,name,ram.*
ip name ram.current ram.percent ram.max 192.168.31.219 node-1 78.8gb 63 125.6gb
htop -p 11259
./hcache -top 3
./hcache -pid 11259
本文出自 qbit snap