apache / incubator-hugegraph

A graph database that supports more than 100+ billion data, high performance and scalability (Include OLTP Engine & REST-API & Backends)
https://hugegraph.apache.org
Apache License 2.0
2.58k stars 512 forks source link

hugegraph最大内存配置 #2564

Closed 2867021781 closed 1 week ago

2867021781 commented 1 week ago

Problem Type (问题类型)

None

Before submit

Environment (环境信息)

Your Question (问题描述)

请问一下hugegraph的最大内存在哪里配置?怎么配置? image

Vertex/Edge example (问题点 / 边数据举例)

No response

Schema [VertexLabel, EdgeLabel, IndexLabel] (元数据结构)

No response

2867021781 commented 1 week ago

hugegraph版本0.12.0

dosubot[bot] commented 1 week ago

要配置 HugeGraph 0.12.0 的最大内存设置,你需要修改 hugegraph-server.sh 脚本中的 MAX_MEM 变量。脚本中的相关部分如下:

# The maximum and minimum heap memory that service can use
MAX_MEM=$((32 * 1024))
MIN_MEM=$((1 * 512))

你可以将 MAX_MEM 的值更改为你想要的最大内存(以 MB 为单位)。例如,要将最大内存设置为 2048 MB,可以这样修改:

MAX_MEM=2048
MIN_MEM=512

这样就会将 HugeGraph 的最大内存分配设置为 2048 MB [1].

To continue talking to Dosu, mention @dosu.

2867021781 commented 1 week ago

已解决