Skip to content

ndnd has a memory leak. #154

Description

@haowaiwai

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())  

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingfwYaNFD issues

Type

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions