mosquitto icon indicating copy to clipboard operation
mosquitto copied to clipboard

REAL_WITH_MEMORY_TRACKING is not enabled for musl.

Open mazerun09 opened this issue 4 years ago • 3 comments

I am trying to use memory_limit option but seems because of REAL_WITH_MEMORY_TRACKING its not getting enabled and doesn't work. I am using musl libc for compilation. is there way I can enable for musl.

mazerun09 avatar Aug 25 '21 13:08 mazerun09

If you modify the header to force REAL_WITH_MEMORY_TRACKING to be defined, does it work ok on musl? From a quick search I would expect it to.

ralight avatar Aug 31 '21 09:08 ralight

Yes it does. in fact tested that. but that creates new problem that when I enable memory_limit, after amount of message being queued, mosquito is not increasing which is expected but after that client connection are being rejected with peer reset error. which causes problem with message dequeue.

mazerun09 avatar Sep 01 '21 03:09 mazerun09

If you use the --with-memory-limit option instead of --with-real-memory-tracking. Another suggestion is to use a different "libc" implementation such as glibc.

Spinachboul avatar Jul 12 '23 17:07 Spinachboul