ma1sd icon indicating copy to clipboard operation
ma1sd copied to clipboard

Docker container fails to allocate memory on Fedora 36

Open cvwright opened this issue 2 years ago • 1 comments

I'm running the Docker container, using the configuration created by matrix-docker-ansible-deploy.

It works great on Debian stable. But on Fedora 36, ma1sd crashes claiming to be out of memory. Adding an extra argument to set the JVM heap size, eg -Xmx512m, does not help. The host system has 8 GB of memory, and is currently using only about 800 MB.

The last few lines of ma1sd output look like this:

[main] INFO io.kamax.mxisd.config.PolicyConfig - --- Policy Config ---
[main] INFO io.kamax.mxisd.config.PolicyConfig - Empty
[main] INFO io.kamax.mxisd.config.HashingConfig - --- Hash configuration ---
[main] INFO io.kamax.mxisd.config.HashingConfig -    Pepper length: 20
[main] INFO io.kamax.mxisd.config.HashingConfig -    Rotation policy: per_requests
[main] INFO io.kamax.mxisd.config.HashingConfig -    Hash storage type: sql
[main] INFO io.kamax.mxisd.config.HashingConfig -    Rotation after requests: 10
[main] INFO io.kamax.mxisd.config.HashingConfig -    Algorithms: [none, sha256]
[main] INFO io.kamax.mxisd.config.InternalAPIConfig - --- Internal API config ---
[main] INFO io.kamax.mxisd.config.InternalAPIConfig - Internal API enabled: false
library initialization failed - unable to allocate file descriptor table - out of memory

cvwright avatar Aug 19 '22 14:08 cvwright

docker run --ulimit nofile=122880:122880 ....

BlackSazha avatar Dec 29 '22 05:12 BlackSazha