-
Notifications
You must be signed in to change notification settings - Fork 85
Memoryleak with EstimoteSticker? #55
Copy link
Copy link
Open
Description
Here is a small, minimal test script which seems to expose a memory leak:
https://gist.github.com/T-X/99b18a3bb1667568245f823dcd19149f
I am running it via:
$ NOBLE_REPORT_ALL_HCI_EVENTS=1 node --expose-gc ./test-leak.js
Resulting in heapdump files like these:
http://metameute.de/~tux/bugreport/node-bleacon/heapdump-2016-06-25/
The first one is from after one minute of runtime, the second one at 30min. runtime, the last one at 60min.
Looking at them via the chromium profiler, it seems that after one hour there are more than 110'000 objects which look like:
{ advertisement, __proto__, address, addressType }
The heapUsed console log output grows constantly, too (one line per minute):
xxx heapUsed:5583776 xxx heapUsed:6281624 xxx heapUsed:6588352 xxx heapUsed:6953632 xxx heapUsed:7267560 xxx heapUsed:7628656 xxx heapUsed:8016104 xxx heapUsed:10719920 xxx heapUsed:11081072 xxx heapUsed:11426216 xxx heapUsed:11775760 xxx heapUsed:12042152 xxx heapUsed:12422480 ...
The phyisical setup contains 21 Estimote stickers in range of the bluetooth dongle.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels