-
Notifications
You must be signed in to change notification settings - Fork 25
Open
Labels
Description
I observed through pprof that two areas are continuously growing in memory usage:
291.04MB 36.24% 36.24% 331.54MB 41.28% github.com/named-data/ndnd/std/utils/io.ReadTlvStream
168.89MB 21.03% 57.26% 168.89MB 21.03% github.com/named-data/ndnd/fw/face.(*linkServiceBase).makeLinkServiceBase (inline)
I suspect there is a memory leak here:
291.04MB 291.04MB 17: recvBuf := make([]byte, ndn.MaxNDNPacketSize*8)
168.39MB 168.39MB 97: l.sendQueue = make(chan dispatch.OutPkt, CfgFaceQueueSize())
zjkmxy