Insufficient memory error while running Fusion auth using docker compose
-
I am getting error on running the fusion auth using docker compose.
fusionauth:
image: fusionauth/fusionauth-app:latest
container_name: fusionauth
restart: always
environment:
- DATABASE_URL=jdbc:postgresql://postgres:5432/fusionauth
- DATABASE_ROOT_USERNAME=<username>
- DATABASE_ROOT_PASSWORD=<password>
- DATABASE_USERNAME=<username>
- DATABASE_PASSWORD=<password>
- FUSIONAUTH_APP_MEMORY=512m
- FUSIONAUTH_APP_RUNTIME_MODE=development
- FUSIONAUTH_APP_URL=http://fusionauth:9011
- SEARCH_SERVERS=http://search:9200
- SEARCH_TYPE=elasticsearch
- ES_JAVA_OPTS="-Xms1g -XX:+UseG1GC -XX:MaxGCPauseMillis=200"
ports:
- 9011:9011
Starting fusionauth-app...
--> Logging to /usr/local/fusionauth/logs/fusionauth-app.log
[0.012s][warning][os,thread] Failed to start thread - 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:
/usr/local/fusionauth/fusionauth-app/
-
Hmmm. What version of docker are you using?
https://stackoverflow.com/questions/72546901/why-my-jib-container-failed-to-start-pthread-create-failed-eperm indicates it is related to that.
-
@dan Here are the details.
Client:
Version: 17.09.0-ce
API version: 1.32
Go version: go1.8.3
Git commit: afdb6d4
Built: Tue Sep 26 22:42:18 2017
OS/Arch: linux/amd64Server:
Version: 17.09.0-ce
API version: 1.32 (minimum version 1.12)
Go version: go1.8.3
Git commit: afdb6d4
Built: Tue Sep 26 22:40:56 2017
OS/Arch: linux/amd64
Experimental: false -
@bhardwajmunish88 From the stackoverflow link:
According to this github issue this is corrected by using docker 20.10.5.
Can you try with a later version of Docker? I think this is due to the Java Docker image, and isn't an issue with FusionAuth.