NubeIO / driver-bacnet

0 stars 2 forks source link

High memory usage over the time #43

Closed RaiBnod closed 1 year ago

RaiBnod commented 1 year ago

It starts with low memory usage, but over the time the memory usage by driver-bacnet becomes high. See this video:

https://user-images.githubusercontent.com/6800775/221141343-c2ec0461-128b-4c51-b11c-5b27aeb31135.mov

RaiBnod commented 1 year ago

More info: it grows memory usage linearly like every 0.1% in 1 minute RC device.

Time: 3:13 PM NPT

image

Time: 3:15 NPT

image

Time: 3:18 NPT

image

Time: 3:19 NPT

image

Time: 3:20 NPT

image

Time: 3:25 NPT

image

shomaglasang commented 1 year ago

Thanks @RaiBnod , possible memory leak. btw, is it receiving a lot of messages?

NubeDev commented 1 year ago

yes it is, would be 100 messages evey 5 sec

shomaglasang commented 1 year ago

thanks

shomaglasang commented 1 year ago

@NubeDev @RaiBnod I created a new release 0.0.32. Found the memory leak in the json parser. Tested the new version on my env and seemed to have fixed the issue. Pls try it out if you can and let me know. thanks

RaiBnod commented 1 year ago

Working fine as expected.

shomaglasang commented 1 year ago

Thanks @RaiBnod