You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using mosquitto compiled for the ATMEL Cortex-A5 as broker .
the mosquitto borker memory rises slowly,no stop.
I take some log in int packet__write(struct mosquitto *mosq) 。like that:
beacuse my mqtt client is busy ,and cannot recv msg quickly,
when socket send buffer is fill, the net__write will cause errno == EAGAIN, then return MOSQ_ERR_SUCCESS without free packet.
when the next message need to pub, in int packet__queue(struct mosquitto *mosq, struct mosquitto__packet *packet) , i add some log :
i fund that some times,it will run mosq->out_packet_last->next = packet; ,but i can not found anywhere to free mosq->out_packet_last, only see : mosq->out_packet_last = NULL
it is a memory leak? my mosquitto version is 1.5.0, but i use mosquitto 2.0.15 , it also cause memory rises slowly,no stop. i see mosquitto-2.0.15 packet__queue function and packet__write fucntion as same as mosquitto-1.5.0
this file is add log to packet__queue function and packet__write function, it found that net__write cause errno == EAGAIN 。
my mqtt client run in STM singlechip ,CPU is 72MHz, cannot recv msg quickly MqttServer.log
The text was updated successfully, but these errors were encountered:
I am using mosquitto compiled for the ATMEL Cortex-A5 as broker .
the mosquitto borker memory rises slowly,no stop.
I take some log in
int packet__write(struct mosquitto *mosq)
。like that:beacuse my mqtt client is busy ,and cannot recv msg quickly,
when socket send buffer is fill, the net__write will cause errno == EAGAIN, then return MOSQ_ERR_SUCCESS without free packet.
when the next message need to pub, in
int packet__queue(struct mosquitto *mosq, struct mosquitto__packet *packet)
, i add some log :i fund that some times,it will run
mosq->out_packet_last->next = packet;
,but i can not found anywhere to free mosq->out_packet_last, only see :mosq->out_packet_last = NULL
it is a memory leak? my mosquitto version is 1.5.0, but i use mosquitto 2.0.15 , it also cause memory rises slowly,no stop. i see mosquitto-2.0.15
packet__queue
function andpacket__write
fucntion as same as mosquitto-1.5.0this file is add log to
packet__queue
function ,it found some time, runmosq->out_packet_last->next = packet;
MqttServer_only_change_packet__queue.log
this file is add log to
packet__queue
function andpacket__write
function, it found thatnet__write
cause errno == EAGAIN 。my mqtt client run in STM singlechip ,CPU is 72MHz, cannot recv msg quickly
MqttServer.log
The text was updated successfully, but these errors were encountered: