Monday 31 December 2007

OWSTimer Hogging Max Processor Time in VMWare

This issue isn't exclusive to VMWare, but is much easier to come across. You may notice your MOSS server being completely unresponsive for serveral minutes at a time. On investigation you find that OWSTimer is taking up 80%-100% processor utilisation. I have particularly found this occuring on VMWare MOSS installations, and often occurs straight after you restart a VM that has been off for a significant amount of time.

The issue here is clock time synch. If the SQL Server/SharePoint server do not agree then OWSTimer gets itself in a right tizz and maxes the processor. In a VM environment this might look particularly weird - as your VM Host may be reporting plenty of resources available.

To resolve this (in WMWare)


To resolve this do the following:
  • Stop and disable the OWSTimer and Windows SharePoint Services Tracing services
  • Install VMWare Tools if not already installed on the SQL and SP boxes
  • Right click on the VMWare System Tray icon and tick the "Time Synchronisation between the virtual machine and the console operating system
  • Ensure your VM host synchronises time from your internal time synch service (ie in synch with the AD controller)
  • Verify that all servers are time synched
  • restart OWSTimer and Tracing services

Why does this happen so much in VMWare?

Well, VMWare has issues when the CPU goes into powersaving modes, meaning that the clocks don't correctly calculate time (eg the VM image thinks it is running at 2.4Ghz, but is actually at 1GHz), therefore gets out of synch easily. The same effect seems to occur when you power up a VM image that has been left for months.

6 comments:

  1. Ah, Thanks!

    My SQL and OWSTimer we maxing out in my VM and now everything seems well.

    ReplyDelete
  2. Thanks for this fix. It just saved me from a night in a cold server room!

    Just realised your from Newcastle too, hi!

    ReplyDelete
  3. Thanks very much, Paul.

    If only my customer had learned this before switching back to physical machines.

    Josh
    Ottawa, Canada

    ReplyDelete
  4. Thanks I spent all morning trying to work out what was going on.

    This fixed it instantly.

    I was on the verge of reinstalling my test machine.

    ReplyDelete
  5. Il semble que vous soyez un expert dans ce domaine, vos remarques sont tres interessantes, merci.

    - Daniel

    ReplyDelete
  6. Great resolution..tks. I had come across several times. I was sidetracked from it however because the server time was not out of synch.

    ReplyDelete