Sql-server – Does WMI cause CPU Creep

cpu-usagesql serverwindows-server-2003wmi

I have a few servers, running Server 2003 Std/Ent and SQL 2000/2005, that I've noticed will start showing higher CPU usages over time. Stopping the WMI service and restarting it will always bring it back down. It's not a huge creep, but after a month it will be around a 10% increase, so even in idle times, it will show 10% cpu usage. We don't use WMI heavily, just a couple of scripts checking service states, and perfmons (does it use WMI?) which is how it was noticed. Are there WMI trace tools? Any other methods to troubleshoot this? The servers that show the symptoms are vastly different, no common elements other than the OS and SQL.

Best Answer

I actually had this problem once. We pulled up filemon and found that WMI was writing to a log file a lot (Framework.log). We checked out the file and found it grew over 2 GB in size. We either renamed the file or stopped the service and renamed it (can't remember). At any rate, we found that it relieved the CPU. There is a KB article with a fix published that shows why the file gets so large and how to fix it. This worked for us:

http://support.microsoft.com/kb/836605

HTH

Related Topic