dosubot[bot] commented on issue #2564: URL: https://github.com/apache/incubator-hugegraph/issues/2564#issuecomment-2185523597
<!-- Answer --> 要配置 HugeGraph 0.12.0 的最大内存设置,你需要修改 `hugegraph-server.sh` 脚本中的 `MAX_MEM` 变量。脚本中的相关部分如下: ```bash # The maximum and minimum heap memory that service can use MAX_MEM=$((32 * 1024)) MIN_MEM=$((1 * 512)) ``` 你可以将 `MAX_MEM` 的值更改为你想要的最大内存(以 MB 为单位)。例如,要将最大内存设置为 2048 MB,可以这样修改: ```bash MAX_MEM=2048 MIN_MEM=512 ``` 这样就会将 HugeGraph 的最大内存分配设置为 2048 MB <sup>[[1]](https://github.com/apache/incubator-hugegraph/blob/master/hugegraph-server/hugegraph-dist/src/assembly/static/bin/hugegraph-server.sh)</sup>. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.* -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
