Is my memory usage of the Dokploy app itself higher than it should be? #4063
-
|
Hello all. I recently have made a Dokpoyment on a VPS for my backend for a webapp. Used docker compose, linked my github and have automatic updates based on changes in the repo. All looks great and was a smooth experience. After I confirmed it was all set up and working, I ran my realtime resource moniter on the VPS. Was a bit surprised to find that it was using about 700mb to run. That seems quite a bit higher than I expected, as I heard Dokploy was quite lean. The only deployments I am running are those 2 containers sourced from a docker compose, which seem to come out to about 225mb memory together. Here's some data: Memory usage from bpytop: sudo docker ps | grep 8e4c340401d4 sudo docker stats dokploy.1.98ljqn2nmnwuc44syhpl81s8u --no-stream And yes, i know the VPS is quite small. will be upgrading the memory soon regardless. Debian 12 Happy to provide more info if needed. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
|
Hi @Shragenator! I'm Dosu and I’m helping the dokploy team. Your ~700MB memory usage is within the expected range for Dokploy. On a fresh installation, Dokploy typically uses 450-465MB in idle state, and users have reported it can grow to around 950MB over time. The memory consumption increased in v0.27.1 due to healthchecks that spawn a curl process every 10 seconds to perform database queries. This adds overhead from process spawning (~360 curl processes/hour), database connection pool activity, and memory fragmentation. If you want to reduce memory usage, you have a few options:
So in short — your usage is normal, not a leak or misconfiguration. To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
-
|
@dosu what are the consequences of using the lighter health endpoint (option 1)? |
Beta Was this translation helpful? Give feedback.
-
|
You can check your memory usage by monitoring your containers using:
This will show real-time CPU and memory usage for each container. Also, make sure you're not running unnecessary services in your docker-compose.yml file, as they can consume extra memory. You can also try:
If the issue persists, it might be related to memory leaks in the application or misconfigured services. |
Beta Was this translation helpful? Give feedback.
Hi @Shragenator! I'm Dosu and I’m helping the dokploy team.
Your ~700MB memory usage is within the expected range for Dokploy. On a fresh installation, Dokploy typically uses 450-465MB in idle state, and users have reported it can grow to around 950MB over time.
The memory consumption increased in v0.27.1 due to healthchecks that spawn a curl process every 10 seconds to perform database queries. This adds overhead from process spawning (~360 curl processes/hour), database connection pool activity, and memory fragmentation.
If you want to reduce memory usage, you have a few options:
Use a lighter health endpoint that skips the database query: