-
-
Notifications
You must be signed in to change notification settings - Fork 580
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
Memory problem with GOP cache enabled #29
Comments
Did you use the latest commit? Some guys posted the same problem as you mentioned. However, I think I've solved it in codes after release v1.2.3. Here is my benchmark: Answers for GOP cache: |
And here is my nginx.conf:
|
Hi @winshining, |
Hi @tuan3w: PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND |
Hi @winshining, |
Sorry to reply you after a long time. PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND Some memories were recycled in connections pool by nginx, so they were not all freed. |
I updated how you can reproduce the output here. https://gist.github.com/tuan3w/3230988b23f13cd30ce59f7a91321c44 I also made a proof video, you can watch here: https://www.youtube.com/watch?v=SUkcasp83w8&feature=youtu.be After 10 minutes, my machine still reports that 3.02G memory is used. |
BTW, I can not watch the video you uploaded, since it refused to be connected. |
Hi @winshining , I updated video pivacy. Can you recheck again? Maybe the video is abandoned from your country :)). Thanks |
In fact it was with parameters, but there was not enough space for terminal to display them. When I ran it foreground, it showed the complete command. |
I uploaded it on google-drive: https://drive.google.com/file/d/1SlKsMq_zDzOzquoqtnStPH4Tc4ySKgCz/view |
The video was broken, player could only play 26 seconds (both vlc and quicktime). |
Please check this link. Not sure why old file is broken :)) . https://drive.google.com/file/d/1DZokdi_hp_uiAyBjZPeHOZvIPlu229TU/view?usp=sharing |
@tuan3w The video is OK. I will check what caused the high memory consumption. |
Hi @tuan3w, have you ever tried the latest code? I rewrote the gop cache module, maybe it would decrease the memory consumption. Looking forward to your reply. |
Hi @winshining, |
Hi @tuan3w, I found the reason. |
Hi @winshining , |
Hi @winshining,
When I start nginx, it consumes about a little memory. When i simulate concurrent downloads using wrk tool, memory of my machine starts to increase up to 4.5G. However, after benchmark, I see that the memory doesn't release at all.
Beside that, I have several questions about GOP cache. Is the size of memory for caching proportional to the number of subscriber/players when GOP cache enable ? Is there any way for me to control size of GOP cache?
Thanks.
The text was updated successfully, but these errors were encountered: