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

Some memory leak is happening #44

Open
kamleshsahu opened this issue Feb 17, 2024 · 1 comment
Open

Some memory leak is happening #44

kamleshsahu opened this issue Feb 17, 2024 · 1 comment

Comments

@kamleshsahu
Copy link

kamleshsahu commented Feb 17, 2024

Screenshot 2024-02-17 at 12 37 44 PM Seems like some memory leak is happening. Using V3 branch, Started with `npm start` without any other configuration. Need help :)
@warren-bank
Copy link
Owner

warren-bank commented Oct 27, 2024

Off-hand, I can't imagine what would cause this. I've never run into any CPU or RAM issues, but I've also never used the proxy in a production environment. I'm going to cross-reference this issue with another, which also has similar observations.

Either myself, or someone else, will need to run some kind of software to profile usage.. that can identify exactly which block of code within hlsd.js is responsible for the excessive usage.

My first question would be: what command-line options do you use when you start the proxy?

update: I've added some scripts to the repo that simplify the task of running the Node.js built-in profiler, applying some load on the proxy server, and then processing the raw log file to produce a log file that provided good insight. Unfortunately, the trivial load applied by this script doesn't produce any performance issues; nearly all of the CPU cycles are spent performing regex operations.. as would be expected. But.. it's a starting point…

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants