a large /etc/hosts file causes problems with "DirectoryServices" 800% CPU
Recently i've been noticing that DirectoryServices takes 800% CPU on my 8 core Mac Pro. Issue is very easily reproduced when doing subnet scans with ARD or looking at google maps pages on Safari. After much troubleshooting I discovered the culprit:
My /etc/hosts file
I use the entries provided by http://www.mvps.org/winhelp2002/hosts.txt to block advertising sites. The entries make the hosts file 16528 lines long. So the problem is related to the amount of lines entered into the /etc/hosts file. This is a big problem for me as the workaround is to remove the entries from the file.
My /etc/hosts file
I use the entries provided by http://www.mvps.org/winhelp2002/hosts.txt to block advertising sites. The entries make the hosts file 16528 lines long. So the problem is related to the amount of lines entered into the /etc/hosts file. This is a big problem for me as the workaround is to remove the entries from the file.
lots of different macs, Mac OS 8.6 or Earlier, macs!