romad

Q: Slowdown

After running a few hours, my iMac starts to slow down. When I check Activity Monitor (I have it set to run in the background), I see that the culprit is a process called "activitymonitord" which leads me to conclude that there is a problem with Activity Monitor itself. I can temporarily fix it by restarting the iMac, but after a few hours, even if the iMac is asleep during that time, it slows down again. So what would be the best way to stop this permanently? Stop running Activity Monitor?

Posted on Aug 18, 2013 5:42 PM

Close

Q: Slowdown

  • All replies
  • Helpful answers

  • by Kappy,

    Kappy Kappy Aug 18, 2013 5:46 PM in response to romad
    Level 10 (271,850 points)
    Desktops
    Aug 18, 2013 5:46 PM in response to romad

    Don't open Activity Monitor. There is not need for it unless you are trying to troubleshoot a problem.

     

    Kappy's Personal Suggestions About Mac Maintenance

     

    For disk repairs use Disk Utility.  For situations DU cannot handle the best third-party utility is: Disk Warrior;  DW only fixes problems with the disk directory, but most disk problems are caused by directory corruption. Drive Genius provides additional tools not found in Disk Warrior for defragmentation of older drives, disk repair, disk scans, formatting, partitioning, disk copy, and benchmarking. 

     

    Four outstanding sources of information on Mac maintenance are:

     

    1. OS X Maintenance - MacAttorney.

    2. Mac maintenance Quick Assist

    3. Maintaining Mac OS X

    4. Mac Maintenance Guide

     

    Periodic Maintenance

     

    OS X performs certain maintenance functions that are scheduled to occur on a daily, weekly, or monthly period. The maintenance scripts run in the early AM only if the computer is turned on 24/7 (no sleep.) See Mac OS X- About background maintenance tasks. If you are running Leopard or later these tasks are run automatically, so there is no need to use any third-party software to force running these tasks.

     

    If you are using a pre-Leopard version of OS X, then an excellent solution is to download and install a shareware utility such as Macaroni, JAW PseudoAnacron, or Anacron that will automate the maintenance activity regardless of whether the computer is turned off or asleep.  Dependence upon third-party utilities to run the periodic maintenance scripts was significantly reduced after Tiger.  (These utilities have limited or no functionality with Snow Leopard, Lion, or Mountain Lion and should not be installed.)

     

    Defragmentation

     

    OS X automatically defragments files less than 20 MBs in size, so unless you have a disk full of very large files there's little need for defragmenting the hard drive except when trying to install Boot Camp on a fragmented drive. But you don't need to buy third-party software. All you need is a spare external hard drive and Carbon Copy Cloner.

     

    Cheap and Easy Defragmentation

     

    You will have to backup your OS X partition to an external drive, boot from the external drive, use Disk Utility to repartition and reformat your hard drive back to a single volume, then restore your backup to the internal hard drive. You will use Carbon Copy Cloner to create the backup and to restore it.

     

      1. Get an empty external hard drive and clone your internal drive to the

           external one.

      2. Boot from the external hard drive.

      3. Erase the internal hard drive.

      4. Restore the external clone to the internal hard drive.

     

    Clone the internal drive to the external drive

     

      1. Open Carbon Copy Cloner.

      2. Select the Source volume from the left side dropdown menu.

      3. Select the Destination volume from the left side dropdown menu.

      4. Be sure the Block Copy button is not depressed or is ghosted.

      5. Click on the Clone button.

     

    Destination means the external backup drive. Source means the internal startup drive.

     

    Restart the computer and after the chime press and hold down the OPTION key until the boot manager appears.  Select the icon for the external drive and click on the upward pointing arrow button.

     

    After startup do the following:

     

    Erase internal hard drive

     

      1. Open Disk Utility in your Utilities folder.

      2. After DU loads select your internal hard drive (this is the entry with the

           mfgr.'s ID and size) from the left side list. Note the SMART status of the

           drive in DU's status area.  If it does not say "Verified" then the drive is

           failing or has failed and will need replacing.  SMART info will not be

           reported  on external drives. Otherwise, click on the Partition tab in the

           DU main window.

      3. Under the Volume Scheme heading set the number of partitions from the

           drop down menu to one. Set the format type to Mac OS Extended

           (Journaled.) Click on the Options button, set the partition scheme to

           GUID then click on the OK button. Click on the Partition button and wait

           until the process has completed.

     

    Restore the clone to the internal hard drive

     

      1. Open Carbon Copy Cloner.

      2. Select the Source volume from the left side dropdown menu.

      3. Select the Destination volume from the left side dropdown menu.

      4. Be sure the Block Copy button is not selected or is ghosted.

      5. Click on the Clone button.

     

    Destination means the internal hard drive. Source means the external startup drive.

     

    Note that the Source and Destination drives are swapped for this last procedure.

     

    Malware Protection

     

    As for malware protection there are few if any such animals affecting OS X. Starting with Lion, Apple has included built-in malware protection that is automatically updated as necessary. To assure proper protection, update your system software when Apple releases new OS X updates for your computer.

     

    Helpful Links Regarding Malware Protection:

     

    1. Mac Malware Guide.

    2. Detecting and avoiding malware and spyware

    3. Macintosh Virus Guide

     

    For general anti-virus protection I recommend only using ClamXav, but it is not necessary if you are keeping your computer's operating system software up to date. You should avoid any other third-party software advertised as providing anti-malware/virus protection. They are not required and could cause the performance of your computer to drop.

     

    Cache Clearing

     

    I recommend downloading a utility such as TinkerTool System, OnyX 2.4.3, Mountain Lion Cache Cleaner 7.0.9, Maintenance 1.6.8, or Cocktail 5.1.1 that you can use for periodic maintenance such as removing old log files and archives, clearing caches, etc. Corrupted cache files can cause slowness, kernel panics, and other issues. Although this is not a frequent nor a recurring problem, when it does happen there are tools such as those above to fix the problem.

     

    If you are using Snow Leopard or earlier, then for emergency cleaning install the freeware utility Applejack.  If you cannot start up in OS X, you may be able to start in single-user mode from which you can run Applejack to do a whole set of repair and maintenance routines from the command line.  Note that AppleJack 1.5 is required for Leopard. AppleJack 1.6 is compatible with Snow Leopard. (AppleJack works with Snow Leopard or earlier.)

     

    Installing System Updates or Upgrades

     

    Repair the hard drive and permissions beforehand.

    Update your backups in case an update goes bad.

     

    Backup and Restore

     

    Having a backup and restore strategy is one of the most important things you can do to maintain your computer. Get an external Firewire drive at least equal in size to the internal hard drive and make (and maintain) a bootable clone/backup. You can make a bootable clone using the Restore option of Disk Utility. You can also make and maintain clones with good backup software. You can never have too many backups. Don't rely on just one. Make several using different backup utilities. My personal recommendations are (order is not significant):

     

         1. Carbon Copy Cloner

         2. Get Backup

         3. Deja Vu

         4. SuperDuper!

         5. Synk Pro

         6. Tri-Backup

     

    Visit The XLab FAQs and read the FAQs on maintenance and backup and restore.

     

    Always have a current backup before performing any system updates or upgrades.

     

    Final Suggestions

     

    Be sure you have an adequate amount of RAM installed for the number of applications you run concurrently. Be sure you leave a minimum of 10% of the hard drive's capacity or 20 GBs, whichever is greater, as free space. Avoid installing utilities that rely on Haxies, SIMBL, or that alter the OS appearance, add features you will rarely if ever need, etc. The more extras you install the greater the probability of having problems. If you install software be sure you know how to uninstall it. Avoid installing multiple new software at the same time. Install one at a time and use it for a while to be sure it's compatible.

     

    Additional reading may be found in:    

     

    1. Mac OS X speed FAQ

    2. Speeding up Macs

    3. Macintosh OS X Routine Maintenance

    4. Essential Mac Maintenance: Get set up

    5. Essential Mac Maintenance: Rev up your routines

    6. Five Mac maintenance myths

    7. How to Speed up Macs

    8. Myths of required versus not required maintenance for Mac OS X

     

    Referenced software can be found at CNet Downloads or MacUpdate.

     

    Most if not all maintenance is for troubleshooting problems. If your computer is running OK, then there isn't really a thing you need to do except repair the hard drive and permissions before installing any new system updates.

  • by romad,

    romad romad Aug 18, 2013 5:56 PM in response to Kappy
    Level 3 (634 points)
    Apple Watch
    Aug 18, 2013 5:56 PM in response to Kappy

    OK, I'll try that. What is weird is that I've been running AM in the background for over a year without this problem; it just started last week. I started running AM because before it would not identify a problem if launched AFTER the problem started.

     

    BTW, I already do a lot of what you listed:

     

    Backup: TM & CCC

    I have Onyx for Lion, TinkerTool 2 & TinkerTool System.

  • by romad,

    romad romad Aug 22, 2013 7:52 PM in response to Kappy
    Level 3 (634 points)
    Apple Watch
    Aug 22, 2013 7:52 PM in response to Kappy

    Well, it is still slowing down even with Activity Monitor not open. When I launch Activity Monitor to see what is the cause, there is the activitymonitord process consuming about 35% of the CPU. Again, shutting down the iMac fixes it. So I need to get in the habit of shutting down whenever I'm going to be away for at least an hour.

  • by Kappy,

    Kappy Kappy Aug 22, 2013 8:37 PM in response to romad
    Level 10 (271,850 points)
    Desktops
    Aug 22, 2013 8:37 PM in response to romad

    "activitymonitord" is a process created by Activity Monitor.

  • by romad,

    romad romad Aug 22, 2013 8:53 PM in response to Kappy
    Level 3 (634 points)
    Apple Watch
    Aug 22, 2013 8:53 PM in response to Kappy

    Right, which shows that Activity Monitor is the cause of the slowdown after the iMac has been on for several hours. The questions are a) why is AM causing this, and b) anyway to fix it other that shutting down the computer every few hours?

  • by Kappy,

    Kappy Kappy Aug 22, 2013 8:56 PM in response to romad
    Level 10 (271,850 points)
    Desktops
    Aug 22, 2013 8:56 PM in response to romad

    Activity Monitor always places a high load on the processor, but it isn't an abnormally high load. It certainly isn't enough to cause a major slowdown and high heat output. The easy solution is not to run Activity Monitor unless you really need to monitor something that needs fixing.

  • by romad,

    romad romad Aug 22, 2013 9:36 PM in response to Kappy
    Level 3 (634 points)
    Apple Watch
    Aug 22, 2013 9:36 PM in response to Kappy

    That. is. precisely. what. I. did. today.

     

    I did NOT launch AM until AFTER the iMac started slowing down. To repeat what I said above: Well, it is still slowing down even with Activity Monitor not open.

     

    Why do you consider a 35% load on the processor not "abnormally high"? I think 1 process tying up over 1/3 of the processor is very high.

  • by Kappy,

    Kappy Kappy Aug 22, 2013 10:08 PM in response to romad
    Level 10 (271,850 points)
    Desktops
    Aug 22, 2013 10:08 PM in response to romad

    Abnormally high is up at 100% or more continuously. Activity Monitor is in need of the processor a lot because of what it is doing - monitoring and collecting data on every process and updating every 2 seconds.

  • by romad,

    romad romad Aug 23, 2013 6:43 AM in response to Kappy
    Level 3 (634 points)
    Apple Watch
    Aug 23, 2013 6:43 AM in response to Kappy

    OK, I see where you're coming from. This morning I booted up the iMac and after everything loaded, I launched AM. activitymonitord was using less than 2% of the CPU. So what I'd like to figure out is why after the iMac has been on several hours and with only the same stuff running as when first booted up, the process is now consuming 35% of the CPU? Since I have a quad core CPU that would equate to 1.4 cores being tied up!

  • by Kappy,

    Kappy Kappy Aug 23, 2013 12:35 PM in response to romad
    Level 10 (271,850 points)
    Desktops
    Aug 23, 2013 12:35 PM in response to romad

    I will reiterate that there is no reason to run AM all the time unless you are troubleshooting. Change the update frequency in AM from the 2 seconds default to, say, 10 seconds. See what effect that has on the usage stat for the AM daemon.

  • by romad,

    romad romad Aug 23, 2013 1:20 PM in response to Kappy
    Level 3 (634 points)
    Apple Watch
    Aug 23, 2013 1:20 PM in response to Kappy

    Kappy, I said I had stopped running it all the time back on August 18th.

     

    I ran it once yesterday evening after my iMac had been on for 12 hours and was slowing down. I launched AM to troubleshoot the slowdown and found that the activitymonitord process was tying up 35% 0f the CPU.

     

    I ran it once this morning after my iMac had started up and been running for 5 minutes. I launched AM to see what it showed for the activitymonitord process right after the iMac had just started up - the process was using less than 2%.

     

    Both times I shutdown AM 1-2 minutes after I launched it. Thus for the last 7,200 minutes (5 days), I only ran AM for a total of about 5 minutes or 0.07% of the time.

     

    I checked the Update Frequency and the slowest option is every 5 seconds, which I selected. The options are: Very Often (every 0.5 seconds), Often (every 1.0 seconds), Normally (every 2.0 seconds), and Less Often (every 5 seconds). Oh this is in Mac OS 10.7.5

  • by Kappy,

    Kappy Kappy Aug 23, 2013 1:29 PM in response to romad
    Level 10 (271,850 points)
    Desktops
    Aug 23, 2013 1:29 PM in response to romad

    OK. Do you still have the original problem you posted about? If so, create a new user account. Log into the new account. Does this have any impact on the problem?

  • by romad,

    romad romad Aug 24, 2013 7:40 AM in response to Kappy
    Level 3 (634 points)
    Apple Watch
    Aug 24, 2013 7:40 AM in response to Kappy

    The original problem was activitymonitord process consuming more and more CPU % the longer the iMac was running. Don't know if it still does as the iMac has to be running for several hours for the slowdown to manifest itself. Now that I'm shutting it down if I'm going to be away for awhile, it isn't on long enough.