1. 程式人生 > >Presto記憶體優化解決報錯Max query memory per node cannot be greater than the max query total memory per node

Presto記憶體優化解決報錯Max query memory per node cannot be greater than the max query total memory per node

如下圖:

跑一個SQL發現超過了官網給出的預設記憶體,這裡需要進行優化。

修改邏輯如下:

修改jvm.config 檔案與 config.properties檔案

內容如下:

jvm.config檔案

config.properties檔案

預設的配比是query.max-memory-per-node的值在jvm重點的Xmx的10%左右即可。