• Home
  • Categories
  • Recent
  • Popular
  • Pricing
  • Contact us
  • Docs
  • Login
FusionAuth
  • Home
  • Categories
  • Recent
  • Popular
  • Pricing
  • Contact us
  • Docs
  • Login

Insufficient memory error while running Fusion auth using docker compose

Scheduled Pinned Locked Moved
General Discussion
fusionauth docker-compose
2
4
1.7k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B
    bhardwajmunish88
    last edited by 11 Jul 2023, 19:05

    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/

    D 1 Reply Last reply 12 Jul 2023, 13:49 Reply Quote 1
    • D
      dan @bhardwajmunish88
      last edited by 12 Jul 2023, 13:49

      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.

      --
      FusionAuth - Auth for devs, built by devs.
      https://fusionauth.io

      B 1 Reply Last reply 12 Jul 2023, 15:20 Reply Quote 0
      • B
        bhardwajmunish88 @dan
        last edited by 12 Jul 2023, 15:20

        @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/amd64

        Server:
        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

        1 Reply Last reply Reply Quote 0
        • D
          dan
          last edited by 16 Jul 2023, 21:35

          @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.

          --
          FusionAuth - Auth for devs, built by devs.
          https://fusionauth.io

          1 Reply Last reply Reply Quote 0
          2 out of 4
          • First post
            2/4
            Last post