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

Performance problems, Memory Leaks #305

Open
marlon360 opened this issue Nov 1, 2021 · 5 comments
Open

Performance problems, Memory Leaks #305

marlon360 opened this issue Nov 1, 2021 · 5 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@marlon360
Copy link
Owner

Bildschirmfoto 2021-11-01 um 11 59 34

This chart shows the CPU usage and the memory consumption on the server.
The dotted line marks a server restart.

The memory consumption increases over time, which indicated a memory leak and missing garbage collection.
Furthermore the CPU spikes to 100% from time to time.

Help is really appreciated to eliminate these problems.

@marlon360 marlon360 added bug Something isn't working help wanted Extra attention is needed labels Nov 1, 2021
@Rubber1Duck
Copy link
Collaborator

Rubber1Duck commented Nov 1, 2021 via email

@Rubber1Duck
Copy link
Collaborator

The Message what i meen is this

WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.

@marlon360
Copy link
Owner Author

The memory usage of Redis is fine:
Bildschirmfoto 2021-11-12 um 11 00 54

There are some large objects that are held in memory. But it is really hard to debug that problem.

@marlon360 marlon360 pinned this issue Nov 12, 2021
@Rubber1Duck
Copy link
Collaborator

Rubber1Duck commented Nov 12, 2021

Did you have this Issue as bevor you switched to railway, too?

@marlon360
Copy link
Owner Author

Yes I think so. But the old server was a fixed price with 32GB RAM included and with Railway it is pay-per-usage, which means I am paying for every single MB of RAM that is currently used. So we can reduce costs with every MB we save.

In front of the railway server is a cloudflare cdn, where I cache the requests. So most of the traffic is actually not hitting the server:
1F5B7EBE-0A3E-40BE-A3EA-E1519EC50A4D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants