Uploaded image for project: 'Qpid Proton'
  1. Qpid Proton
  2. PROTON-1871

Ruby leaks memory sending messages

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • proton-c-0.23.0
    • None
    • ruby-binding
    • None

    Description

      We have developed a simple fluentd output plugin which only sends messages to AMQ. Sending messages with sender.send, memory increases continuously and it is never released, not even when message processing is stopped.

      The qpid-proton code is really simple and we have checked that it is sender.send the one that leaks memory.

      I have run memory_profiler, and the leak does not seem to by in ruby but in C++ code because both the number of objects and bytes remain between constant values. I have tried to debug it with valgrind but I cannot find the source class of the leak.

      I have attached the ruby code, ruby version 2.3.4.

      Attachments

        1. valgrind.txt
          6 kB
          roi costas
        2. out_amq.rb
          7 kB
          roi costas

        Activity

          People

            Unassigned Unassigned
            roi.costas roi costas
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: