Skip to content
This repository was archived by the owner on Jul 12, 2023. It is now read-only.
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

Closed

Description

@robecor

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.

Activity

  1. dfernandezlop commented on Feb 26, 2016

    @dfernandezlop

    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.

  2. robecor commented on Feb 26, 2016

    @robecor
    Author

    It is only one image. As long as the player endpoint is connected to that filter with the image, the memory usage keeps increasing.

  3. dfernandezlop commented on Feb 26, 2016

    @dfernandezlop

    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.

  4. robecor commented on Feb 29, 2016

    @robecor
    Author

    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

  5. dfernandezlop commented on Mar 2, 2016

    @dfernandezlop

    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.

  6. dfernandezlop commented on Mar 11, 2016

    @dfernandezlop

    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.

  7. igracia commented on Mar 11, 2016

    @igracia
    Contributor

    @dfernandezlop Can we close this now then?

  8. added
    bug
    kms
    on Mar 11, 2016
  9. dfernandezlop commented on Mar 11, 2016

    @dfernandezlop

    I'm waiting for a @robecor test.

  10. igracia commented on Mar 11, 2016

    @igracia
    Contributor

    @robecor Would you mind testing this in the development branch?

  11. robecor commented on Mar 16, 2016

    @robecor
    Author

    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.

  12. dfernandezlop commented on Mar 21, 2016

    @dfernandezlop

    Hi @robecor,

    Thanks for your tests. I'm going to close the bug.

    Regards.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugkms

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions