Skip to main content

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

Hi Elvis,

You're right, this can happen. This is fixed in the 1.4 branch, but
unfortunately was missed out of 1.3.4. I would suggest just not using
a leading slash for the moment, or trying out the 1.4 code.

Cheers,

Roger


On Mon, Sep 22, 2014 at 12:49 PM, Byounghoon Lee <lbspresley@xxxxxxxxx> wrote:
> 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
>
> _______________________________________________
> mosquitto-dev mailing list
> mosquitto-dev@xxxxxxxxxxx
> To change your delivery options, retrieve your password, or unsubscribe from
> this list, visit
> https://dev.eclipse.org/mailman/listinfo/mosquitto-dev


Back to the top