You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 12, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Jul 12, 2023. It is now read-only.
KMS 6.4.0, Image overlay memory consumption to high #34
Hello,
When using the ImageOverlay filter the Memory consumption is enormous. The structure is something like this:
PlayerEndpoint(give the url from an IP camera)-->ImageOverlayFilter(with an image)-->WebRtcEndpoints of viewers. When the PlayerEndpint is connected to the filter the memory consumption start increasing at about 50MB/s and when it reaches 100%(which happens in a couple of minutes) KMS crashes and the server itself freezes. Its kinda unusable like this.
KMS version 6.4.0(but it also happened with 6.2.0)
gstreamer - 1.5
Configuration files are the default ones that come with the server installation.
I am using NodeJs and its on the same machine as Kurento.
The machine is running on an 64bit Ubuntu 14.04 and has 8GB Ram, Intel Xeon X5570 2.93Ghz 8 core.
Are you configuring only one image or are you changing the overlayed image several times? I have tested the filter for more than 15 minutes and the KMS memory hasn't increased. I'm going to develop a valgrind based tested to discard memory leaks in the filter.
We can't reproduce the bug. The valgrind test doesn't show any memory leak and I have executed the filter for a long time with any memory leak. Could you provide a project test? Or, at least, a KMS log to look for a strange behaviour.
Sorry for the late reply!
I restarted the server with a clean log, connected the player endpoint to the image filter with a picture and closed if after a minute or two.
Here is the log. media-server_2016-02-29_02-58-26.00000.pid27825.zip
I can say that the problem is not related with the image overlay filter but with the connection between the player (with an rtsp source) and any filter. This bug needs further investigation.
We have fixed this bug in the development version. The problem was the filter couldn't consume all the data retrieves by the player. This data was stored and that is the reason why you saw increasing the memory.
Sorry for the late reply!
I'll test it and come back with a response.
Edit:
How do I install development version if I already have the repository for the stable one?
If I try to add the repo of the development version it still installs the stable version.
Edit2:
When I try to remove stable version(apt-get remove/autoremove/purge) it only deletes about 5MB of data.
Edit3:
It seems I had to use "apt-get install kurento-media-server-6.0-dev".
Seems fine now. 10 minutes of stream and no more than 30MB of RAM increase.
Activity
dfernandezlop commentedon Feb 26, 2016
Hi,
Are you configuring only one image or are you changing the overlayed image several times? I have tested the filter for more than 15 minutes and the KMS memory hasn't increased. I'm going to develop a valgrind based tested to discard memory leaks in the filter.
Thank you for the report.
Regards.
robecor commentedon Feb 26, 2016
It is only one image. As long as the player endpoint is connected to that filter with the image, the memory usage keeps increasing.
dfernandezlop commentedon Feb 26, 2016
Hi,
We can't reproduce the bug. The valgrind test doesn't show any memory leak and I have executed the filter for a long time with any memory leak. Could you provide a project test? Or, at least, a KMS log to look for a strange behaviour.
Thank you.
robecor commentedon Feb 29, 2016
Sorry for the late reply!
I restarted the server with a clean log, connected the player endpoint to the image filter with a picture and closed if after a minute or two.
Here is the log.
media-server_2016-02-29_02-58-26.00000.pid27825.zip
dfernandezlop commentedon Mar 2, 2016
Hi,
I have readed your log and checking the bug.
I can say that the problem is not related with the image overlay filter but with the connection between the player (with an rtsp source) and any filter. This bug needs further investigation.
I will come back when I have new data.
Thank you for the report.
David.
dfernandezlop commentedon Mar 11, 2016
Hi,
We have fixed this bug in the development version. The problem was the filter couldn't consume all the data retrieves by the player. This data was stored and that is the reason why you saw increasing the memory.
Thanks for the report.
Best.
igracia commentedon Mar 11, 2016
@dfernandezlop Can we close this now then?
dfernandezlop commentedon Mar 11, 2016
I'm waiting for a @robecor test.
igracia commentedon Mar 11, 2016
@robecor Would you mind testing this in the development branch?
robecor commentedon Mar 16, 2016
Sorry for the late reply!
I'll test it and come back with a response.
Edit:
How do I install development version if I already have the repository for the stable one?
If I try to add the repo of the development version it still installs the stable version.
Edit2:
When I try to remove stable version(apt-get remove/autoremove/purge) it only deletes about 5MB of data.
Edit3:
It seems I had to use "apt-get install kurento-media-server-6.0-dev".
Seems fine now. 10 minutes of stream and no more than 30MB of RAM increase.
dfernandezlop commentedon Mar 21, 2016
Hi @robecor,
Thanks for your tests. I'm going to close the bug.
Regards.