Sometimes I see the iMac with 4GB of RAM having a few MB of swap file only, and after I left for a few hours and come back, the swap file is 2.7GB.

Looking into the Activities Monitor, the Finder is using 796MB. How can it use so much memory -- could it be due to some "Search" that was left over in a Finder window?

I then chose File -> Close All (by pressing down the Option key while clicking File, and closed all Finder windows, only that it still won't close but just hidden, and looks like the only way is to reboot. How can this situation be prevented?

有帮助吗?

解决方案

I can't say much about preventing this, but there is no need to reboot. Just kill Finder, using Force Quit from the apple menu or killall Finder in a Terminal window. A new Finder will then be started in the old one's place.

其他提示

This inconvenience is caused by a finder prefs entry:

"show in new window: all my files" this is consuming too much mem. Select a different folder and all is fine

Removing 1k screenshots and images from the desktop reduced Finder's RAM usage from 1.5G+ to 220 MB instantly without relaunch.

I have found the following advice most useful to fix the issue of Finder using way too much RAM.

you may be a victim of a corrupt spotlight index. Here's how you fix a corrupt spotlight index:

  1. Open system preferences
  2. open spotlight (top right)
  3. click on privacy tab
  4. click and drag your hard drive into the window (if you have more than one, perform this one at a time.)

you will leave this in here for at least 10 minutes. no less. (seems hokey but osx does stuff behind the scene ie removing existing index)

after your 10 mins at least is up, go back in and remove your HD from the privacy tab, and osx should start rebuilding a new index.

repeat for any additional drives you may have. I would also close out of system preferences while you are waiting your 10 minutes.

https://discussions.apple.com/thread/3402693?answerId=16422750022#16422750022

许可以下: CC-BY-SA归因
不隶属于 apple.stackexchange
scroll top