OWSTimer Pegging CPU and Filling Logs

This is the second posting I’ve put together regarding OWSTimer.  In a previous post I had a client who simply pegged the timer by running a batch update against thousands of list items subsequently kicking off thousands of workflows.  In a more recent encounter, one of my clients called me with the OWSTimer again going mad, but for a completely different reason. 

Problem

OWSTimer.exe taking 100% CPU and/or creating Gigabyte sized log files.

Solution

Below  are the steps I used to troubleshoot the client’s environment with the actual screenshots.  In the end I believe that a simple stsadm –o execadmnsvcjobs did the trick.

 

Step 1- Check the logfiles, they are too big to open.

clip_image001

 

Step 2 – Are we out of drive space?

clip_image002

Step 3 – With permission from the client, stop "Windows SharePoint Services Timer”

clip_image003

Step 3 – Also stop the “Windows SharePoint Services Tracing” services

clip_image004

Step 4 – Review the log.  We clearly have timer job issues

clip_image005

 

Step 5 – Review the event log.  Hmm, note how the time changed?  Client confirmed that they had a time issue with the server a few weeks back.  Looks like we had daylight savings time kick in unexpectedly this morning.

clip_image006

Step 6 – Review the timer jobs.  Nothing significant to see

clip_image008

Step 7 – Let’s execute any pending jobs

clip_image007

Step 8 – Before we restart let’s turn off tracing so that we don’t keep filling up the log files (note that we do turn tracing back on later).

clip_image009

Step 9 – Restart the "Windows SharePoint Services Timer” and “Windows SharePoint Services Tracing” services

clip_image010

Step 10 – Re-run stsadm –o execadmsvcjobs

clip_image011

Step 11 – Check the timer service, CPU looks good!

clip_image012

Step 12 – Re-enable tracing

clip_image013

 

Explanation/Theory

Time change caused timer job to trigger because it thought it was the predecessor of a timer job already in the stack. Of course 2 timer jobs most likely tried to communicate or attach to the same object causing the server to spin into a loop. Large logfiles was simply a side effect (and the logs were behaving properly).

VN:F [1.9.1_1087]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.1_1087]
Rating: 0 (from 0 votes)

Popularity: 11% [?]

Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
Share this Post:
Digg Google Bookmarks reddit Mixx StumbleUpon Technorati Yahoo! Buzz DesignFloat Delicious BlinkList Furl

One Response to “OWSTimer Pegging CPU and Filling Logs”

Leave a Reply:

Name (required):
Mail (will not be published) (required):
Website:
Comment (required):
XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>