Gozargah / Marzban-node

Proxy Node for Marzban
GNU Affero General Public License v3.0
147 stars 66 forks source link

marzban-node has a lot of resource usage #48

Closed m0x61h0x64i closed 2 months ago

m0x61h0x64i commented 2 months ago

Hi, how can i fix this? image

SaintShit commented 2 months ago

Hi, would you show which process is taking resources?

m0x61h0x64i commented 2 months ago

yes, main.py

I cant send picture because I already restarted docker container.

It solves issue temporary, I will need to restart container soon.

After restart memory usage was 600 500 MB now its this:

image

m0x61h0x64i commented 2 months ago

CPU usage of main.py was 150% when i checked it using docker stats

m0x61h0x64i commented 2 months ago

yesterday before sleep memory usage was 2.7 GB after i wake up memory usage is 600 MB but my docker container was restarted automatically 40 min ago! image

m0x61h0x64i commented 2 months ago

today after last restart memory usage increased from 600MB to 1900MB then 2600MB and now without restart its like this: image image memory increase problem is just for node, for master mem usage is between 2.4GB ~ 2.7GB (both have haproxy)

m0x61h0x64i commented 2 months ago

main server is now this: image i guess no way to fix this, since users could not have good connection on the second server its ram was 600MB all the day, but now all are using main server so this time main server ram increased from 2.4GB ~ 2.7GB to this.