版本 3.5.0,单机
执行下面语句:
MATCH p=(v:city)-[:railway*1..10]->(v) RETURN p
执行了至少10分钟没出结果。这时执行LINUX命令报错:
[nebula@test-86 ~]$ top
-bash: fork: 无法分配内存
CTRL+C终止查询,等一会LINUX恢复正常,查看nebula服务状态,发现nebula-graphd挂了:
[one@test-86 ~]$ sudo /nebula/nebula-graph-3.5.0.el7.x86_64/scripts/nebula.service status all
[WARN] The maximum files allowed to open might be too few: 1024
[INFO] nebula-metad(18fd7b1): Running as 18220, Listening on 9559
[INFO] nebula-graphd(18fd7b1): Exited
[INFO] nebula-storaged(18fd7b1): Running as 18355, Listening on 9779
[one@test-86 ~]$
问题是怎么限制nebula的最大内存避免出现这种情况。
steam
2024 年1 月 30 日 09:25
2
离职的Steam:
memory tracker
谢谢回复。我测试了下,在3.5中memory tracker 不起作用,在3.6中同样数据同样的语句是报错终止,如下:
[ERROR (-1005)]: GraphMemoryExceeded: (-2600)
steam
2024 年1 月 31 日 09:15
4
你的 memory tracker 是咋设置的呢?
默认设置,我比较了相关参数,3.5和3.6的设置一样。
配置是这样(3.5、3.6一样):
[nebula@nebulagraph1 nebula]$ grep memory_tracker /nebula/nebula-graph-3.5.0.el7.x86_64/etc/*.conf
/nebula/nebula-graph-3.5.0.el7.x86_64/etc/nebula-graphd.conf:--memory_tracker_limit_ratio=0.8
/nebula/nebula-graph-3.5.0.el7.x86_64/etc/nebula-graphd.conf:--memory_tracker_untracked_reserved_memory_mb=50
/nebula/nebula-graph-3.5.0.el7.x86_64/etc/nebula-graphd.conf:--memory_tracker_detail_log=false
/nebula/nebula-graph-3.5.0.el7.x86_64/etc/nebula-graphd.conf:--memory_tracker_detail_log_interval_ms=60000
/nebula/nebula-graph-3.5.0.el7.x86_64/etc/nebula-storaged.conf:--memory_tracker_limit_ratio=0.8
/nebula/nebula-graph-3.5.0.el7.x86_64/etc/nebula-storaged.conf:--memory_tracker_untracked_reserved_memory_mb=50
/nebula/nebula-graph-3.5.0.el7.x86_64/etc/nebula-storaged.conf:--memory_tracker_detail_log=false
/nebula/nebula-graph-3.5.0.el7.x86_64/etc/nebula-storaged.conf:--memory_tracker_detail_log_interval_ms=60000
[nebula@nebulagraph1 nebula]$ grep memory_purge /nebula/nebula-graph-3.5.0.el7.x86_64/etc/*.conf
/nebula/nebula-graph-3.5.0.el7.x86_64/etc/nebula-graphd.conf:--memory_purge_enabled=true
/nebula/nebula-graph-3.5.0.el7.x86_64/etc/nebula-graphd.conf:--memory_purge_interval_seconds=10
/nebula/nebula-graph-3.5.0.el7.x86_64/etc/nebula-storaged.conf:--memory_purge_enabled=true
/nebula/nebula-graph-3.5.0.el7.x86_64/etc/nebula-storaged.conf:--memory_purge_interval_seconds=10
system
关闭
2024 年3 月 23 日 02:29
9
此话题已在最后回复的 30 天后被自动关闭。不再允许新回复。