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

[Bug] 换hugegraph-core-1.0.0.jar后,服务正常启动,但访问报“Please wait for the server to initialize” #2444

Closed LiJie20190102 closed 5 months ago

LiJie20190102 commented 5 months ago

Bug Type (问题类型)

server status (启动/运行异常)

Before submit

Environment (环境信息)

Expected & Actual behavior (期望与实际表现)

我换了jar包,然后重启之后server日志显示正常,但是我hubble访问时,报“Please wait for the server to initialize”。是不是和数据量有关系,数据量比较大,然后server init比较慢? image

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

No response

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

No response

dosubot[bot] commented 5 months ago

🤖

嗨,@LiJie20190102,又见面了!希望一切都好 😊

您的问题可能确实与数据量大导致服务器初始化慢有关。但也可能是由于其他因素,如系统资源、网络延迟或配置问题。

您提供的脚本是HugeGraphServer的启动脚本。它包含一个SERVER_STARTUP_TIMEOUT_S变量,默认设置为30秒。这是脚本等待服务器启动的最长时间。如果服务器初始化时间超过这个值,脚本将退出,您可能会看到“请等待服务器初始化”的消息。

您可以尝试增加SERVER_STARTUP_TIMEOUT_S的值,以便服务器有更多的时间进行初始化。例如,将超时设置为60秒,您可以修改脚本如下:

SERVER_STARTUP_TIMEOUT_S=60

然后,重新启动服务器,看问题是否仍然存在。如果存在,您可能需要进一步调查以确定根本原因。检查服务器日志中是否有任何错误消息或警告,这可能表明出了什么问题。

至于hugegraph-core-1.0.0.jar文件,它是一个编译后的Java Archive(JAR)文件,包含HugeGraph数据库的核心功能。这个类负责管理HugeGraph数据库中的任务。它提供了创建任务、设置任务属性、管理任务依赖以及处理任务执行和完成的方法。

运行大数据量的incubator-hugegraph的系统要求会根据这些和其他选项的具体配置,以及数据和工作负载的性质而变化。因此,具有更多CPU核心、更多内存以及更快和更大存储的系统通常能够处理更大的数据量和更重的工作负载。

参考资料:

Sources


This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.

Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.

If you want to continue the conversation, start your reply with @dosu-bot.

LiJie20190102 commented 5 months ago

等一会好使了,估计是数据量大的原因