jzmq icon indicating copy to clipboard operation
jzmq copied to clipboard

Memory leak zmq msg_t initsize ?

Open constantmanish opened this issue 3 years ago • 0 comments

We are using zmq inproc socket to transmit messages between threads. we have set Hwm accordingly and using multipart message, i.e send() method with the necessary flag. We are seeing this behavior of large memory consumption when large amount of messages are being transmitted using this socket, the usage is outsize heap. I looked into the page-fault graph and can see that most of the page-fault is created by java_org_zeromq_SocketSend , I tried to trace native allocation using jemalloc and the output obtained also suggest large allocation during SocketSend. From jemalloc output I can see that leak might be associated with zmq msg_t initsize() function. I have attached graph of what I have described above. I tried to use ZMsg.send() along with destroy flag set , but no change in the memory usage pattern. Can someone help me how to tackle the issue. Screen Shot 2022-06-29 at 12 00 20 Screen Shot 2022-06-21 at 19 34 57

constantmanish avatar Jun 29 '22 16:06 constantmanish