-
-
Notifications
You must be signed in to change notification settings - Fork 132
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
RAM and CPU usage skyrocketting when sending FLAC to input.harbor (on v2.1.4 and 2.2.0) #3017
Comments
Hi, Thanks for this report. I'm running a test script and will report. One remark that I would suggest trying is to test with the sending and receiving liquidsoap on the same machine to make sure the memory doesn't increase because |
Would be interested to know if you can had that issue as well :-) |
I haven't forgotten about this one. |
Using a minimal script. I send a %ogg(%flac) encoded stream to input.harbor:
I still see a memory leak and CPU usage grows also. But, if I try setting the FLAC and OGG decoders at a higher priority than the FFMPEG one:
Then it no longer seems to have a memory leak and CPU usage is stable. So I'm pretty confident that the issue lies within the FFMPEG decoder for OGG/FLAC. Not sure if it's important that it comes from input.harbor or not. |
Great thanks. What are you using to send to the |
Just another Liquidsoap flac stream using output.icecast |
Ok. I assume you mean ogg/flac? I haven't been able to reproduce so far. |
Yes, I send OGG/Flac to input.harbor. The same thing happens on my two servers. Here is the exact script (stripped of passwords and such) that I run on a NAS at home, and that sends the audio to my servers:
Hopefully you'll be able to replicate with this although the important part is probably the output.icecast part and preparaton made before. The .PLS playlists link to hundreds of various .flac files that have nothing special. |
I'm still not sure what was causing the issue but it would be worth revisiting now that we are producing ogg/flac streams that conform to what ffmpeg is expecting. |
All that is needed is sending an %ogg(%flac) stream to input.harbor on this minimal script:
If no leak then it should be okay. |
Well Mixxx cannot stream in FLAC, damnit. |
Hello,
My setup :
Whatever I try, when I send FLAC to input.harbor, in less than 2 or 3 hours it's almost 100% cpu usage and 90% RAM used.
And when I try to send WAV to my server, CPU and RAM usage is much lower. Still increasing but very slowly.
This is on Debian bullseye 11.6 AMD64. Liquidsoap 2.1.4 installed from the Github releases page. I also tried 2.2.0.
Here is my script on the server, it is very simple:
The text was updated successfully, but these errors were encountered: