apache / rocketmq-client-cpp

Apache RocketMQ cpp client
https://rocketmq.apache.org/
Apache License 2.0
366 stars 158 forks source link

re-dev possible memory leak #358

Open lirong-Lee opened 3 years ago

lirong-Lee commented 3 years ago

I use a simple code to only receive rocketmq normal messages and orderly messages. Return true when the message is received. The sender sends a packet of ordinary data and a packet of real-time data in 100ms. The following is the memory information graph from 2021-06-15 to 2021-06-28 image

rocketmqrecvtest.txt

ifplusor commented 3 years ago

@lirong-Lee Could you profiling memory by tcmalloc or valgrind?

lirong-Lee commented 3 years ago

@ifplusor Use valgrind to run for a short time and see the report that there is no leak. Valgrind takes too much CPU, I don’t have a machine to run for a long time

vongosling commented 3 years ago

@ShannonDing

wanzixin commented 3 years ago

@ifplusor Is there a risk of memory leakage?

ifplusor commented 3 years ago

@ifplusor Is there a risk of memory leakage?

I'm not found in the test.

lizhanhui commented 2 years ago

Address Sanitizer is a lot faster than valgrind. You guys may try it.