apache / apache/hugegraph

[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
bug
Dominant language
Java
Stars
3.2k
Forks
636
Avg merge
3d 11h
Merged PRs (30d)
14

Description

### Bug Type (问题类型)

None

### Before submit

- [x] 我已经确认现有的 [Issues](https://github.com/apache/hugegraph/issues) 与 [FAQ](https://hugegraph.apache.org/docs/guides/faq/) 中没有相同 / 重复问题 (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 (问题点 / 边数据举例)

```javascript

```

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

```javascript

```

Contributor guide

Open the contributing guide

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.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.