• 请不要在回答技术问题时复制粘贴 AI 生成的内容
kisshere
V2EX  ›  程序员

elasticsearch 怎样查看所有数据实际占内存大小?

  •  
  •   kisshere · Jul 3, 2019 · 4196 views
    This topic created in 2687 days ago, the information mentioned may be changed or developed.

    目前 64G 的机器,内存设置为-Xms30g,-Xmx30g,热字段都是设 fielddata 为 true,就是想让所有热数据全部常驻内存,那么问题来了,怎样查看我实际内存中,elasticsearch 里的数据占用了多少内存?

    4 replies  •  2019-07-03 15:06:39 +08:00
    dobelee
    dobelee
    Jul 3, 2019 via Android
    1
    /_cat/fielddata 看下内存占用你就会放弃这个想法。
    kisshere
    kisshere
    OP
    Jul 3, 2019
    2
    @dobelee 什么都没有
    qwefdrt
    qwefdrt
    Jul 3, 2019
    3
    可以直接用 API,GET _nodes/stats
    里面有段占用的内存信息。
    具体的可以看看: https://www.elastic.co/guide/cn/elasticsearch/guide/cn/_monitoring_individual_nodes.html
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4539 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 01:21 · PVG 09:21 · LAX 17:21 · JFK 20:21
    ♥ Do have faith in what you're doing.