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

[BUG] High Memory Consumption #52

Closed
matthewbaggett opened this issue Aug 22, 2023 · 3 comments
Closed

[BUG] High Memory Consumption #52

matthewbaggett opened this issue Aug 22, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@matthewbaggett
Copy link

Describe the bug
Noticed that Zoraxy is consuming a solid gigabyte of RAM in its docker container. Services that it loadbalances, like Frigate (transcoding 4x2k video streams) uses ~700MB by comparison.

To Reproduce
Steps to reproduce the behavior:

  • Run zoraxy in a container for a while
  • Measure ran usage with docker stats

Expected behavior
RAM usage to be more in-line with expectation for a loadbalancer seeing trivial traffic

Screenshots
N/A

Browser (if it is a bug appears on the UI section of the system):
N/A

Host Environment (please complete the following information):

  • Arch: x86_64
  • Device: Server
  • OS: Ubuntu
  • Version: 22.04.2
@matthewbaggett matthewbaggett added the bug Something isn't working label Aug 22, 2023
@tobychui
Copy link
Owner

Thank you for pointing this out. I also notice this issue and have left a note in the release page.

This is not a bug, it just the embedded web interface is not that well optimized yet. Back then when this project is simple, it has no issue embedded all the required web UI into the binary itself and make deployment much easier. Now, as there are so many features and UI snippets included, it started to get "too big" and consume lots of memory in runtime.

I am planning to separate the embedded web UI from the binary to reduce memory usage in the future builds. It would be helpful if you could modify the issue accordingly and post some statistic on how much RAM it is consuming in your system over time. This will help our future optimizing work greatly!

@matthewbaggett
Copy link
Author

With an uptime of about 60 days, its now consuming 2GB.

@tobychui
Copy link
Owner

@matthewbaggett Can you show me the page at (your_zoraxy_ip):(management port)/api/info/pprof to see what is eating up all your memory?

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

2 participants