Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker container fails to allocate memory on Fedora 36 #116

Open
cvwright opened this issue Aug 19, 2022 · 1 comment
Open

Docker container fails to allocate memory on Fedora 36 #116

cvwright opened this issue Aug 19, 2022 · 1 comment

Comments

@cvwright
Copy link

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants