Posts

Showing posts from November 25, 2018

.NET Confluent Kafka consumer memory leak

Image
up vote 2 down vote favorite We're seeing huge memory leaks when consuming from Kafka using the Confluent Kafka .NET library. One thing I've noticed is the code consumes without a using statement: while (true) { if (_consumer.Consume(out Message<string, string> message, TimeSpan.FromMilliseconds(100))) { OnMessage(message); } } However, that while loop runs for the lifetime for the application, so .Dispose() would never be called whilst consuming anyway. No other consumer instances are created. As the code behind the library is in C, will objects created by the library be cleaned if we call GC.Collect(), or is this unmanaged code which the garbage collector has no control over? Anything else which might be causing the leak, does consumer.Close() need to be called at certain periods ...

How to use d3Plus in wrapping svg in svg ?

Image
up vote 0 down vote favorite <g id="group" opacity="1" style="pointer-events:inherit"> <rect x="504.5" y="384.3" class="class" width="76.6" height="38.5" id="svg_24" style="pointer-events:inherit" /> <text transform="matrix(0.9 -0.000105047 0.000116718 1 481.583 433.508)" class="test" id="svg_25" y="-11.997081870992588" x="27.779332551456037" style="pointer-events:inherit">Very Long Very Long Very Long Text</text> </g> I have this svg,I want to wrap the text inside rect using d3plus. javascript svg d3plus share ...