Squadrick / shadesmar

Fast C++ IPC using shared memory
MIT License
550 stars 84 forks source link

Probable memory leak #50

Open jian-li opened 2 years ago

jian-li commented 2 years ago

Hallo, @Squadrick , thank for for your helpful ipc project, it really saved my life. I tested this project for half an hour, the memory it consumed grow from 0.2% to 0.5%, but all my program do is just received and publish, nothing else. I doubt there are some memory leak related bugs in the code. Thank you for replay:)

Squadrick commented 2 years ago

@jian-li Can you share the code that resulted in the memory leak? That would help me with debugging.

jian-li commented 2 years ago

I noted that, if set the buffer_size to small(eg, 2M), and pub/sub big size structure(~2k), the publisher will stuck once the published number is about(2M/2k=1000).