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

Possible memory leaks #2820

Closed
2 tasks done
Lanhild opened this issue Feb 22, 2023 · 9 comments
Closed
2 tasks done

Possible memory leaks #2820

Lanhild opened this issue Feb 22, 2023 · 9 comments
Labels
bug Something isn't working

Comments

@Lanhild
Copy link

Lanhild commented Feb 22, 2023

⚠️ Please verify that this bug has NOT been raised before.

  • I checked and didn't find similar issue

🛡️ Security Policy

Description

Often more than not, I have to restart my Uptime Kuma because of an exponentially increasing memory usage. Searched through the logs but I haven't found anything relevant. I have about ~60 HTTP monitors.
image

👟 Reproduction steps

Have an uptime kuma container on Docker.

👀 Expected behavior

No memory leaks

😓 Actual Behavior

Huge memory leaks over time.

🐻 Uptime-Kuma Version

1.20.1

💻 Operating System and Arch

Ubuntu 22.04

🌐 Browser

Irrelevant

🐋 Docker Version

No response

🟩 NodeJS Version

No response

📝 Relevant log output

No response

@Lanhild Lanhild added the bug Something isn't working label Feb 22, 2023
@louislam
Copy link
Owner

Similar issue: #2344

It is hard to fix as I cannot reproduce the issue. It will be great if you could provide more info on how to reproduce.

@Lanhild
Copy link
Author

Lanhild commented Feb 24, 2023

Seems like using a MongoDB monitor causes a very high memory usage/fluctuations. I had enabled a MongoDB monitor, and that's when the memory usage spikes started. I disabled it and now my memory usage seems to have come back to normal.

@milindpatel63
Copy link

I am also having a similar issue...
I am running uptime kuma on fly.io free plan...with 1GB disk space and 232MB of memory...it has been running fine for a year, but after the latest update, I had 2 crashes in the past week due to out of memory

image

@louislam
Copy link
Owner

I am also having a similar issue... I am running uptime kuma on fly.io free plan...with 1GB disk space and 232MB of memory...it has been running fine for a year, but after the latest update, I had 2 crashes in the past week due to out of memory

image

Using mongodb too?

@PeterCxy
Copy link

PeterCxy commented Feb 25, 2023

I have the same issue running uptime kuma on fly.io after updating to 1.20.1, and I am not using the MongoDB monitor. I am only using monitors of type HTTP, PING, DNS, or PUSH.

@chakflying
Copy link
Collaborator

Interesting that there is mention of a memory leak in MongoDB's JIRA which was fixed in the latest version.

@louislam
Copy link
Owner

Interesting that there is mention of a memory leak in MongoDB's JIRA which was fixed in the latest version.

Thanks, it should have a quick release for this.

@PeterCxy
Copy link

But the issue is also present for me without using the MongoDB monitor type. Is it triggered regardless of whether the MongoDB driver is actually used?

@louislam
Copy link
Owner

But the issue is also present for me without using the MongoDB monitor type. Is it triggered regardless of whether the MongoDB driver is actually used?

Probably not, would be appreciated if you could find the root cause of your issue.

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

No branches or pull requests

5 participants