Re: proliferating CFURLCache worker threads
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