gpt4 book ai didi

gremlin - JanusGraph 交易和配置

转载 作者:行者123 更新时间:2023-12-02 17:11:40 24 4
gpt4 key购买 nike

我在单个事务中最多可以创建多少个顶点和边,以及如何配置 JanusGraph 服务器堆以向其添加更多内存。提前致谢。

最佳答案

对于每个事务的最大顶点和边,它实际上取决于您的系统。有一个 discussion在涉及批量加载和提交频率的 janusgraph-users google 组中。

为了增加更多的内存,我要从 gremlin console tutorial 中窃取一个技巧。 .

You can change the amount of memory allotted to the console by altering its -Xmx setting in bin/gremlin.sh. This setting controls the maximum size of the JVM memory allocation pool. To set this value to 1024 megabytes, you would set this value as follows: -Xmx1024m. It is likely best to append this setting to the initialization of the JAVA_OPTIONS variable in that script. If you choose to override JAVA_OPTIONS, be sure to examine the default settings in bin/gremlin.sh to include them as they should not be omitted in your override.

如果您需要向服务器添加更多内存,您也可以使用 -Xmx 分配更多内存,但在 gremin-server.sh 或 janusgraph.sh 中,这取决于您运行服务器的方式。

我还有一些同事对批量加载性能进行了一些研究,您可能会发现他们的 presentation有帮助。

关于gremlin - JanusGraph 交易和配置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48911859/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com