[Bug] Failed to start thread "GC Thread#0" - pthread_create failed (EPERM) for attributes:

Open
#3,072 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Quiet
Tech stack
docker, java
Domain
databases, devops

Research direction

Reproduce the failure with the reported docker run command for hugegraph/hugegraph:1.7.0, then inspect the container logs and /hugegraph-server/hs_err_pid36.log. Compare the reported pthread and insufficient-resource errors with the container environment. Done means the container initializes and HugeGraphServer starts successfully on port 8080.

Written by the indexing model from the issue text.

Description

bug
Bug Type (问题类型)

None

Before submit
  • 我已经确认现有的 IssuesFAQ 中没有相同 / 重复问题 (I have confirmed and searched that there are no similar problems in the historical issue and documents)
Environment (环境信息)

(base) [root@lnpg ~]# docker run -itd --name=hugegraph -p 8080:8080 hugegraph/hugegraph:1.7.0
Unable to find image 'hugegraph/hugegraph:1.7.0' locally
1.7.0: Pulling from hugegraph/hugegraph
ad1a9d392ffd: Pull complete
393028e021f4: Pull complete
d8f2ffc099ec: Pull complete
1f45ae8edac9: Pull complete
4a49934c65ed: Pull complete
c16fda3c839e: Pull complete
4f4fb700ef54: Pull complete
d7335e14718b: Pull complete
fa265f9039bf: Pull complete
75fddef8729a: Pull complete
1e2b79a8d290: Pull complete
Digest: sha256:077b89e1f2d5e228d99598bdb537161fb2e8a7b5abedf4724d97cf4de11529ba
Status: Downloaded newer image for hugegraph/hugegraph:1.7.0
5d745f5c75f3e01700998e5f30715220fd077edb60377f88d3e923f595d188db
(base) [root@lnpg ~]# docker logs -f hugegraph
[hugegraph-server-entrypoint] init hugegraph with non-auth mode
Initializing HugeGraph Store...
[0.003s][warning][os,thread] Failed to start thread "GC Thread#0" - pthread_create failed (EPERM) for attributes: stacksize: 1024k, guardsize: 4k, detached.

There is insufficient memory for the Java Runtime Environment to continue.

Cannot create worker GC thread. Out of system resources.

An error report file with more information is saved as:

/hugegraph-server/hs_err_pid36.log

Initialization finished.
Starting HugeGraphServer in daemon mode...
Connecting to HugeGraphServer (http://0.0.0.0:8080/graphs)..Starting HugeGraphServer failed
See /hugegraph-server/logs/hugegraph-server.log for HugeGraphServer log output.

Expected & Actual behavior (期望与实际表现)
Image
Vertex/Edge example (问题点 / 边数据举例)

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

Dominant language
Java
Stars
3.2k
Forks
637
Avg merge
3d 18h
Merged PRs (30d)
23

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from apache/hugegraph

All issues in apache/hugegraph

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.