MugunthKumar / MKNetworkKit

Modern NSURLSession based Networking Framework with built in authentication and HTTP 1.1 caching standards support for iOS 8+ devices
http://mk.sg/8w
3.06k stars 754 forks source link

Apparent iOS 8 memory leak with numerous operations #444

Open lucaskuzma opened 9 years ago

lucaskuzma commented 9 years ago

Hello Kumar,

We're using your library to download a great number of JSON assets, and we've noticed a great deal of memory bloat, particularly as of iOS 8.

Here is an example that cycles through 100 URLs: https://gist.github.com/lucaskuzma/93afd329d8970303a778

Below is a leak we're seeing. The first plateau is before the download. The big hump is the download process, the second plateau is the memory remaining after the downloads finish. As you can see, there is quite a difference.

leak8

Any help would be most appreciated!

Here's the same process on iOS 7: leak7

sundarsan commented 9 years ago

Any updates on the above issue , since i am also facing quite a memory leaks issue on iOS 8 ...

wangyida12345 commented 9 years ago

About the problem,i can't comprehensive its mechanism,since i am only beginner.

dbainbridge commented 9 years ago

I'd suggest switching to AFNetwork.

DDany commented 9 years ago

It seems that MKNetworkKit is no longer maintained. No new upgrade version comes up.