【Linux】【Kibana】解決Kibana啟動失敗:Data too large問題


  今天重啟Kibana容器,結果啟動不了,一看日志發現是Data數據量太大報錯。

FATAL  [circuit_breaking_exception] [parent] Data too large, data for [<http_request>] would be [250592200/238.9mb], which is larger than the limit of [246546432/235.1mb], real usage: [250592200/238.9mb], new bytes reserved: [0/0b], usages [request=16512/16.1kb, fielddata=11330/11kb, in_flight_requests=0/0b, accounting=7160235/6.8mb], with { bytes_wanted=250592200 & bytes_limit=246546432 & durability="PERMANENT" } :: {"path":"/.kibana","query":{},"statusCode":429,"response":"{\"error\":{\"root_cause\":[{\"type\":\"circuit_breaking_exception\",\"reason\":\"[parent] Data too large, data for [<http_request>] would be [250592200/238.9mb], which is larger than the limit of [246546432/235.1mb], real usage: [250592200/238.9mb], new bytes reserved: [0/0b], usages [request=16512/16.1kb, fielddata=11330/11kb, in_flight_requests=0/0b, accounting=7160235/6.8mb]\",\"bytes_wanted\":250592200,\"bytes_limit\":246546432,\"durability\":\"PERMANENT\"}],\"type\":\"circuit_breaking_exception\",\"reason\":\"[parent] Data too large, data for [<http_request>] would be [250592200/238.9mb], which is larger than the limit of [246546432/235.1mb], real usage: [250592200/238.9mb], new bytes reserved: [0/0b], usages [request=16512/16.1kb, fielddata=11330/11kb, in_flight_requests=0/0b, accounting=7160235/6.8mb]\",\"bytes_wanted\":250592200,\"bytes_limit\":246546432,\"durability\":\"PERMANENT\"},\"status\":429}"}

  數據量太大導致內存不足,可以設置fielddata的內存限制,默認60%

  • curl -u elastic -XPUT "ip:port/_cluster/settings" -H 'Content-Type: application/json' -d '{ "persistent" : { "indices.breaker.fielddata.limit" : "40%" } }'
  • -u elastic 為elasticsearch的用戶驗證,沒有設置可以不加


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM