Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[mosquitto-dev] Memory Leak problem

Hi, all..

I'm working on mobile push messaging system for GCM/APNS and MQTT altogether in Linux (CentOS 6.4). 
 I have chosen mosquitto(ver 1.3.4) as private push mediator and works fine before memory leak problem is issued.

The problem is..:
1. mqtt clients' are about 8K+.
2. mqtt client keepalivetime is 60 seconds(default).
3. mosquitto broker starts with size 13mb but increased 500mb per day(24hours).
4. For monitoring system call (by strace), 
    accept and close are occurred 60+ times per second each.
5. For monitoring system call (by ltrace), 
    malloc/calloc/free with memory address are not matched, and memories are leak at some sizes.
    I found one thing about this problem. It is about topic string. I made up topic with leading '/' like unix's directory. I think that it causes memory leak.

Any suggestion be appreciated. 
Thank you.

Regards. 
Elvis.




--

(주) 디리아  이병훈 이사/기술연구소 소장

Addr    : (137-070) 서울 서초구 서초동 1597-1 신영빌딩 9층
E-mail : bhlee@xxxxxxxxxxx, lbspresley@xxxxxxxxx
Phone : 02-562-7132 ~ 3
Fax     : 02-562-7134
Mobile : 010-2224-4726

Back to the top