elasticmq-docker icon indicating copy to clipboard operation
elasticmq-docker copied to clipboard

unable to allocate file descriptor table - out of memory

Open arudolph-cxt opened this issue 2 years ago • 2 comments

for no apparent reason (9 out of 32G mem in use) the container is in an endless restart loop

log output:

chronext-pa-sqs | 11:26:16.357 [main] INFO  org.elasticmq.server.Main$ - Starting ElasticMQ server (0.15.8) ...
chronext-pa-sqs | 11:26:16.642 [elasticmq-akka.actor.default-dispatcher-5] INFO  akka.event.slf4j.Slf4jLogger - Slf4jLogger started
chronext-pa-sqs | library initialization failed - unable to allocate file descriptor table - out of memorychronext-pa-sqs exited with code 139
chronext-pa-sqs | 11:26:31.522 [main] INFO  org.elasticmq.server.Main$ - Starting ElasticMQ server (0.15.8) ...
chronext-pa-sqs | 11:26:31.828 [elasticmq-akka.actor.default-dispatcher-4] INFO  akka.event.slf4j.Slf4jLogger - Slf4jLogger started
chronext-pa-sqs | library initialization failed - unable to allocate file descriptor table - out of memorychronext-pa-sqs exited with code 139
chronext-pa-sqs | 11:26:59.419 [main] INFO  org.elasticmq.server.Main$ - Starting ElasticMQ server (0.15.8) ...
chronext-pa-sqs | 11:26:59.728 [elasticmq-akka.actor.default-dispatcher-4] INFO  akka.event.slf4j.Slf4jLogger - Slf4jLogger started
chronext-pa-sqs | library initialization failed - unable to allocate file descriptor table - out of memorychronext-pa-sqs exited with code 139
chronext-pa-sqs | 11:27:53.068 [main] INFO  org.elasticmq.server.Main$ - Starting ElasticMQ server (0.15.8) ...
chronext-pa-sqs | 11:27:53.361 [elasticmq-akka.actor.default-dispatcher-5] INFO  akka.event.slf4j.Slf4jLogger - Slf4jLogger started
chronext-pa-sqs | library initialization failed - unable to allocate file descriptor table - out of memorychronext-pa-sqs exited with code 139

Service definition in docker-compose.yaml:

    sqs:
        image: s12v/elasticmq:latest
        logging:
            driver: "json-file"
            options:
                max-size: "1M"
                max-file: "100"
        restart: unless-stopped
        networks:
            - chronext-product-aggregator

How can I fix this?

arudolph-cxt avatar Jul 08 '22 11:07 arudolph-cxt

I have the same issue; @arudolph-cxt did you found a solution for this problem?

rvdwijngaard avatar Feb 16 '23 13:02 rvdwijngaard

see: https://superuser.com/questions/1413352/running-jdk-8-in-docker-suddenly-broken-on-arch-linux-with-unable-to-allocate-f/1413390#1413390

marcwittke avatar Nov 23 '23 13:11 marcwittke