Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
452 views
in Technique[技术] by (71.8m points)

greenplum 给数据创建索引报错 invalid memory alloc request xxx

greenplum中给27亿条结构化数据创建索引,create index idx_gp1C1 on gp_1(C1);
报错如下:ERROR: invalid memory alloc request 1182583872 (context 'TupleSort') (mcxt.c:1257) (mcxt.c: 447) (seg2 GP1:40002 pid=9838)(cdbdisp:1320) ,如果不建索引则点查慢到根本不能接受,其中C1是分布列,环境是3台segment机,一个master机,机器配置2*12=24核,256GB内存,现在目测是greenplum的参数设置的不对,对传统数据库也不是很熟悉,很多思想没法借鉴,在网上查了很多,尝试过修改不同参数了,请问这个问题有没有什么解决方法?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

申请的内存大于限制了。应该是某个参数值设置的过大了,看看你最近改动过什么和内存相关的参数,缩小试试。


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...