• 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: proliferating CFURLCache worker threads
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: proliferating CFURLCache worker threads


  • Subject: Re: proliferating CFURLCache worker threads
  • From: Martin Wierschin <email@hidden>
  • Date: Tue, 22 May 2012 11:42:06 -0700

>> Does anyone know anything about "com.apple.CFURLCACHE_work_queue" and how many of these queues/threads should be running at once?
>
> I suspect that this is a bug.  CFURLCache is an internal CF object that backs NSURLCache.  Each CFURLCache has a GCD serial queue to wrangle cache tasks.  From what I can tell this queue is deadlocking against itself.

Thanks Quinn, submitted as rdar://11506919

The code attached to the bug report triggers the unwanted proliferation of threads and open files; decoding 5200 HTML chunks leaves 511 CFURLCache threads running and 1398 open files for "Cache.db". I'm actually surprised that lsof lists 1400+ files are open for the process, as I thought the hard limit was lower than that.

Anyways, thanks for your help. I ended up moving all the HTML decoding for my app to a separate process which can be restarted as needed.

Best,
~Martin


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >proliferating CFURLCache worker threads (From: Martin Wierschin <email@hidden>)
 >Re: proliferating CFURLCache worker threads (From: "Quinn \"The Eskimo!\"" <email@hidden>)

  • Prev by Date: Re: proliferating CFURLCache worker threads
  • Next by Date: [SystemConfiguration] How to be informed when the router IP address is available/known
  • Previous by thread: Re: proliferating CFURLCache worker threads
  • Next by thread: [SystemConfiguration] How to be informed when the router IP address is available/known
  • Index(es):
    • Date
    • Thread