ma1uta / ma1sd

Federated Matrix Identity Server (formerly fork of kamax/mxisd)
GNU Affero General Public License v3.0
166 stars 55 forks source link

Docker container fails to allocate memory on Fedora 36 #116

Open cvwright opened 2 years ago

cvwright commented 2 years ago

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
BlackSazha commented 1 year ago

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