很多人在个人虚拟机部署磐维测试环境时会碰上一个提示内存太少的报错,多数是因为虚拟机给的内存太少了。遇到报错也可以不用调整虚拟机内存,可以调整参数解决。报错示例如下:
BACKEND] FATAL:the values of memory out of limit, the database failed to be started, max_process_memory (2048MB) must greater than 2GB + cstore_buffers(512MB) + (udf_memory_limit(200MB) - UDF_DEFAULT_MEMORY(200MB)) + shared_buffers(651MB) + preserved memory(3026MB) = 6237MB, reduce the value of shared_buffers, max_pred_locks_per_transaction, max_connection, wal_buffers..etc will help reduce the size of preserved memory
解决办法:gs_guc set -N all -c "max_process_memory=6000MB";max_process_memory的值大于报错提醒中的值即可。
标签:greater,磐维,process,max,虚拟机,报错,memory,buffers From: https://www.cnblogs.com/panweidb/p/18278062