解决hugegraph启动时报错问题:Failed to start HugeGraphServer, requires at least 512m free memory

时间:2024-04-04 19:33:22

今天在运行hugegraph时,报错提示让看错误日志,日志的大致意思是:无法启动HugeGraphServer,需要至少512M可用内存。截图如下:

解决hugegraph启动时报错问题:Failed to start HugeGraphServer, requires at least 512m free memory

日志截图:

解决hugegraph启动时报错问题:Failed to start HugeGraphServer, requires at least 512m free memory

解决法案:修改bin目录下的hugegraph-server.sh文件,将运行内存改成256M,具体如下:

解决hugegraph启动时报错问题:Failed to start HugeGraphServer, requires at least 512m free memory

vi命令打开文件:vi hugegraph-server.sh,然后将此处的512改成如下图的256,然后wq保存并退出,重新启动,发现正常启动了。

解决hugegraph启动时报错问题:Failed to start HugeGraphServer, requires at least 512m free memory