• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSURLConnection: "Greedy Memory Eater" and Error 303
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSURLConnection: "Greedy Memory Eater" and Error 303


  • Subject: Re: NSURLConnection: "Greedy Memory Eater" and Error 303
  • From: David Duncan <email@hidden>
  • Date: Fri, 9 Sep 2011 06:59:53 -0700

On Sep 9, 2011, at 4:06 AM, Andreas Grosam wrote:

> The problem I get with NSURLConnection is, that it internally uses a lot (really a lot) memory for its data buffers. It seems, the connection reads as much data as it can from the network and a tries to safe it in internal buffers, no matter what, apparently until the system cannot provide more memory.
>
> In a simple test app, NSURLConnections quite quickly consumes up to 10Mbyte for a number of its buffers - on the iPhone!, which is probably the maximum before the app will be killed. With Instruments, it can be viewed quite easily.


Try setting the memory size of the NSURLCache, something like [[NSURLCache sharedURLCache] setMemoryCapacity:0].
--
David Duncan

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: NSURLConnection: "Greedy Memory Eater" and Error 303
      • From: Andreas Grosam <email@hidden>
References: 
 >NSURLConnection: "Greedy Memory Eater" and Error 303 (From: Andreas Grosam <email@hidden>)

  • Prev by Date: Re: NSURLConnection: "Greedy Memory Eater" and Error 303
  • Next by Date: Re: NSURLConnection: "Greedy Memory Eater" and Error 303
  • Previous by thread: Re: NSURLConnection: "Greedy Memory Eater" and Error 303
  • Next by thread: Re: NSURLConnection: "Greedy Memory Eater" and Error 303
  • Index(es):
    • Date
    • Thread