You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1,如标题所述,我们在这个场景下查询电站下当天每5分钟数据时总是报查询内存不足:
Msg: 301: There is not enough memory to execute current fragment instance, current remaining free memory is 382609774, estimated memory usage for current fragment instance is 424696064
有时候又是报另一个预估查询需要的内存太大然后报错的内存不足错误,不知道这两个有什么区别:
WARN o.a.i.d.u.ErrorHandlingUtils:91 - Status code: 301, Query Statement: "select round(avg(po),2) from root.zj.Z24202eb72_.* group by ([2024-02-28 00:00:00,2024-02-29 00:00:00),5m)". executeStatement failed
org.apache.iotdb.commons.exception.IoTDBException: org.apache.iotdb.db.queryengine.execution.fragment.FragmentInstanceFailureInfo$FailureException: Query is aborted since it requests more memory than can be allocated.
2,我在对一个电站下所有的设备进行连续查询统计的时候很慢,逻辑就是把电站组件级的数据统计成电站级维度的数据,创建连续查询后执行比较慢,然后时间都是从1970开始,不知道为啥,我无法确定iotdb是否还能支持我们后续的电站甚至多电站的各种时间维度统计需求,cqs如下:
CREATE CONTINUOUS QUERY cq_dz5m
RESAMPLE
EVERY 5m RANGE 20m
BEGIN
SELECT last_value(mos),sum(eiacc),sum(eoacc),sum(ii),sum(io),sum(ui),sum(uo),sum(pi),sum(po),last_value(t),last_value(bdt),last_value(hwReset),last_value(reset)
INTO root.zj_5m.H24201dab1_sum(mos,eiacc,eoacc,ii,io,ui,uo,pi,po,t,bdt,hwReset,reset)
FROM root.zj.H24201dab1.
group BY level = 4
fill(0)
END
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
1,如标题所述,我们在这个场景下查询电站下当天每5分钟数据时总是报查询内存不足:
Msg: 301: There is not enough memory to execute current fragment instance, current remaining free memory is 382609774, estimated memory usage for current fragment instance is 424696064
有时候又是报另一个预估查询需要的内存太大然后报错的内存不足错误,不知道这两个有什么区别:
WARN o.a.i.d.u.ErrorHandlingUtils:91 - Status code: 301, Query Statement: "select round(avg(po),2) from root.zj.Z24202eb72_.* group by ([2024-02-28 00:00:00,2024-02-29 00:00:00),5m)". executeStatement failed
org.apache.iotdb.commons.exception.IoTDBException: org.apache.iotdb.db.queryengine.execution.fragment.FragmentInstanceFailureInfo$FailureException: Query is aborted since it requests more memory than can be allocated.
2,我在对一个电站下所有的设备进行连续查询统计的时候很慢,逻辑就是把电站组件级的数据统计成电站级维度的数据,创建连续查询后执行比较慢,然后时间都是从1970开始,不知道为啥,我无法确定iotdb是否还能支持我们后续的电站甚至多电站的各种时间维度统计需求,cqs如下:
CREATE CONTINUOUS QUERY cq_dz5m
RESAMPLE
EVERY 5m RANGE 20m
BEGIN
SELECT last_value(mos),sum(eiacc),sum(eoacc),sum(ii),sum(io),sum(ui),sum(uo),sum(pi),sum(po),last_value(t),last_value(bdt),last_value(hwReset),last_value(reset)
INTO root.zj_5m.H24201dab1_sum(mos,eiacc,eoacc,ii,io,ui,uo,pi,po,t,bdt,hwReset,reset)
FROM root.zj.H24201dab1.
group BY level = 4
fill(0)
END
Beta Was this translation helpful? Give feedback.
All reactions