常說要留一半以上的內存給 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