Bug #2128

memory leak in timeseries adapter with influx backend

Added by J. Wienke over 9 years ago. Updated over 9 years ago.

Status:RejectedStart date:12/08/2014
Priority:NormalDue date:
Assignee:J. Wienke% Done:

0%

Category:-
Target version:Robotics Service Bus - rsb-0.11

Description

In case influxdb is used as a backend and anything (even completely unrelated things to protocol buffer messages, e.g. manually constructed strings) is written to the data base, then memory grows immediately with protocol buffer internal things accumulating inside the memory:

Partition of a set of 1624176 objects. Total size = 205469680 bytes.
 Index  Count   %     Size   % Cumulative  % Kind (class / dict of class)
     0 145795   9 78640840  38  78640840  38 dict (no owner)
     1 142138   9 39798640  19 118439480  58 dict of
                                             google.protobuf.internal.python_message._Listener
     2 474935  29 13242264   6 131681744  64 long
     3 142138   9 12508144   6 144189888  70 __builtin__.weakproxy
     4 195542  12 11513720   6 155703608  76 str
     5  94746   6  9853584   5 165557192  81 0x2505270
     6 142138   9  9096832   4 174654024  85 google.protobuf.internal.python_message._Listener
     7  52629   3  7449256   4 182103280  89 list
     8  46004   3  4784416   2 186887696  91 0x2507a70
     9  49187   3  3541464   2 190429160  93
                                             google.protobuf.internal.containers.RepeatedCompositeFi
                                             eldContainer
<353 more rows. Type e.g. '_.more' to view.>
Partition of a set of 1624176 objects. Total size = 205470448 bytes.
 Index  Count   %     Size   % Cumulative  % Referrers by Kind (class / dict of class)
     0 189492  12 68975088  34  68975088  34 0x2505270
     1 142138   9 39798640  19 108773728  53 google.protobuf.internal.python_message._Listener
     2 725482  45 26219608  13 134993336  66 dict (no owner)
     3 147971   9 15067832   7 150061168  73 list
     4  46020   3 12882144   6 162943312  79 0x2507a70
     5 142138   9 12508144   6 175451456  85 dict of
                                             google.protobuf.internal.python_message._Listener
     6  49187   3  7051736   3 182503192  89
                                             google.protobuf.internal.containers.RepeatedCompositeFi
                                             eldContainer
     7  32067   2  2959840   1 185463032  90 types.CodeType
     8  45988   3  2943232   1 188406264  92 0x2505270, 0x2507a70,
                                             google.protobuf.internal.containers.RepeatedCompositeFi
                                             eldContainer
     9  27054   2  1452928   1 189859192  92 tuple

History

#1 Updated by J. Wienke over 9 years ago

  • Status changed from New to In Progress

Let's see what happens on trusty.

#2 Updated by J. Wienke over 9 years ago

  • Status changed from In Progress to Rejected

Actually not a bug, but a feature. RSB event dispatching also queues events and we were faster than influxdb.

Also available in: Atom PDF