<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Jie Li's GeekWorld : Troubleshooting</title><link>http://blogs.msdn.com/opal/archive/tags/Troubleshooting/default.aspx</link><description>Tags: Troubleshooting</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>ULS Viewer, for SharePoint 2010 Troubleshooting</title><link>http://blogs.msdn.com/opal/archive/2009/12/22/uls-viewer-for-sharepoint-2010-troubleshooting.aspx</link><pubDate>Tue, 22 Dec 2009 08:54:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9939977</guid><dc:creator>Jie Li</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/opal/comments/9939977.aspx</comments><wfw:commentRss>http://blogs.msdn.com/opal/commentrss.aspx?PostID=9939977</wfw:commentRss><description>&lt;P&gt;My friend Dan Winter posted &lt;A title="2009 SharePoint Toolbox Review" href="http://blogs.msdn.com/dwinter/archive/2009/12/21/2009-sharepoint-toolbox-review.aspx" mce_href="http://blogs.msdn.com/dwinter/archive/2009/12/21/2009-sharepoint-toolbox-review.aspx"&gt;2009 SharePoint Toolbox Review&lt;/A&gt; today on his blog. Within the post, the best tool I like is the &lt;A title=http://code.msdn.microsoft.com/ULSViewer href="http://code.msdn.microsoft.com/ULSViewer" mce_href="http://code.msdn.microsoft.com/ULSViewer"&gt;ULS Viewer&lt;/A&gt;. If there’s an election of SharePoint Administrator troubleshooting tools, I would vote it as the president!&lt;/P&gt;
&lt;P&gt;So what is ULS? It stands for Unified Logging Service. Mr. Winter explained that a lot in his blog so I would not repeat. But, it is the top one thing you should look at when you want to troubleshoot some SharePoint issue. Of course, troubleshooting is not always to get the symbols, debug and trace problems… If that is indeed needed, then it may be a bug.&amp;nbsp; Most of the time, ULS log is already quite helpful. For example, sometimes I got a service error in the webpage, some errors in event log, but nothing told the exact root of the problem. Then when I looked into ULS log, it told me that the credential of the user did not work. It is really helpful. &lt;/P&gt;
&lt;P&gt;I did a user research earlier this year, more than 75% of SharePoint Administrators had no idea about ULS log. There’re some reasons. Since the ULS log is designed mainly for product group and customer service usage, the default format is not very user friendly. The log is hard to read, and you may get overwhelming messages instead of the useful ones. Now, we have ULS Viewer to solve the problem.&lt;/P&gt;
&lt;P&gt;For SharePoint 2010, by default, ULS log is at &lt;/P&gt;
&lt;P&gt;C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\LOGS&lt;/P&gt;
&lt;P&gt;You can check the directory and try to read those logs. I was quite used to that, with notepad:)&lt;/P&gt;
&lt;P&gt;ULS Viewer can be used in different modes. The log can be read from log files, real time ULS log, or even clipboard. Here’s some examples:&lt;/P&gt;
&lt;P&gt;On a machine running SharePoint 2010, run ULS Viewer. Click File, Open From, then choose ULS (This could also be done by simply press Ctrl+U). Immediately the logs will be shown in real-time. You can filter message level by click the icons in the middle. This can tell you what is going on inside SharePoint.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.msdn.com/blogfiles/opal/WindowsLiveWriter/ULSViewerandWindowsPowerShell_2AB/snap0204_2.png" mce_href="http://blogs.msdn.com/blogfiles/opal/WindowsLiveWriter/ULSViewerandWindowsPowerShell_2AB/snap0204_2.png"&gt;&lt;IMG style="BORDER-RIGHT-WIDTH: 0px; DISPLAY: inline; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px" title=snap0204 border=0 alt=snap0204 src="http://blogs.msdn.com/blogfiles/opal/WindowsLiveWriter/ULSViewerandWindowsPowerShell_2AB/snap0204_thumb.png" width=644 height=452 mce_src="http://blogs.msdn.com/blogfiles/opal/WindowsLiveWriter/ULSViewerandWindowsPowerShell_2AB/snap0204_thumb.png"&gt;&lt;/A&gt; &lt;/P&gt;
&lt;P&gt;The best feature I love is the Toggle Correlation Tree button. In SharePoint 2010 we can use correlation id to trace a series of event inside SharePoint. For example, in this screenshot, my machine is trying to flush usage log. The different entries may be buried in the big ULS log file, but with correlation id you can easily track them – they shared the same id “c000006c-5b56-412b-9de1-78aae06d121f”. &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;A href="http://blogs.msdn.com/blogfiles/opal/WindowsLiveWriter/ULSViewerandWindowsPowerShell_2AB/snap0206_2.png" mce_href="http://blogs.msdn.com/blogfiles/opal/WindowsLiveWriter/ULSViewerandWindowsPowerShell_2AB/snap0206_2.png"&gt;&lt;IMG style="BORDER-RIGHT-WIDTH: 0px; DISPLAY: inline; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px" title=snap0206 border=0 alt=snap0206 src="http://blogs.msdn.com/blogfiles/opal/WindowsLiveWriter/ULSViewerandWindowsPowerShell_2AB/snap0206_thumb.png" width=644 height=271 mce_src="http://blogs.msdn.com/blogfiles/opal/WindowsLiveWriter/ULSViewerandWindowsPowerShell_2AB/snap0206_thumb.png"&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Another good feature is the notifications. You can set notification level for ULS Viewer, by default it will pop up notification for Critical message. For example in this screenshot, when Health Analyzer checked my machine for a security rule, it wrote a critical message into the log. With ULS Viewer, you can quickly identify the location of the message. If there’s an exception, you can also check the detail of that. &lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.msdn.com/blogfiles/opal/WindowsLiveWriter/ULSViewerandWindowsPowerShell_2AB/snap0208_2.png" mce_href="http://blogs.msdn.com/blogfiles/opal/WindowsLiveWriter/ULSViewerandWindowsPowerShell_2AB/snap0208_2.png"&gt;&lt;IMG style="BORDER-RIGHT-WIDTH: 0px; DISPLAY: inline; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px" title=snap0208 border=0 alt=snap0208 src="http://blogs.msdn.com/blogfiles/opal/WindowsLiveWriter/ULSViewerandWindowsPowerShell_2AB/snap0208_thumb.png" width=644 height=208 mce_src="http://blogs.msdn.com/blogfiles/opal/WindowsLiveWriter/ULSViewerandWindowsPowerShell_2AB/snap0208_thumb.png"&gt;&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I’m ready to throw my notepad away – &lt;A title=http://code.msdn.microsoft.com/ULSViewer href="http://code.msdn.microsoft.com/ULSViewer" mce_href="http://code.msdn.microsoft.com/ULSViewer"&gt;ULS Viewer&lt;/A&gt; is the one to go with, for troubleshooting.&lt;/P&gt;
&lt;P&gt;Jie.&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9939977" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/opal/archive/tags/Troubleshooting/default.aspx">Troubleshooting</category><category domain="http://blogs.msdn.com/opal/archive/tags/SharePoint+Server+2010/default.aspx">SharePoint Server 2010</category><category domain="http://blogs.msdn.com/opal/archive/tags/ULS/default.aspx">ULS</category></item><item><title>Troubleshooting Windows Search CPU Consuming Problem</title><link>http://blogs.msdn.com/opal/archive/2008/07/14/troubleshooting-windows-search-cpu-consuming-problem.aspx</link><pubDate>Sun, 13 Jul 2008 20:23:08 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8729022</guid><dc:creator>Jie Li</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/opal/comments/8729022.aspx</comments><wfw:commentRss>http://blogs.msdn.com/opal/commentrss.aspx?PostID=8729022</wfw:commentRss><description>&lt;p&gt;I have heard a lot of complains from my friends and the community that desktop search interferes their daily usage of the computer. These applications, such as Windows Search(also known as WDS, Windows Desktop Search, and the builtin search engine in Vista/2008), Google Desktop Search, index your files while the computer is idle. In this theory, it should not affect your PC’s performance. However, sometimes you can notice that your CPU usage goes up to 100% (or 50% for a dual core system, with 100% usage for one of the cores) for quite a few minutes, even when you are busily working with some applications. This not only brings down the performance of your current applications, but also affects your battery life if you are using a laptop in mobile, and boring fan noise.&lt;/p&gt;  &lt;p&gt;So, it is really a nasty problem. When you bring up task manager, you can see something relates with Search is sucking power from your CPU. In my experience, the name is SearchFilterHost.exe. Let’s take a look at it with Sysinternal’s Process Explorer, to understand the relationship of the services.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/opal/WindowsLiveWriter/TroubleshootingWindowsSearchCPUConsuming_1216B/snap099_2.jpg"&gt;&lt;img title="snap099" style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="87" alt="snap099" src="http://blogs.msdn.com/blogfiles/opal/WindowsLiveWriter/TroubleshootingWindowsSearchCPUConsuming_1216B/snap099_thumb.jpg" width="569" border="0" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;This is a child process of Windows Search. Without any thoughts, I killed this process, and after a short while it restarted, again with 50%+ CPU usage. Nasty. It’s quite hard to identify Windows Search problem because it cannot tell you what kind of thing it is working on (except those guys who can understand minidumps and can trace into the process, who is really a minority in our IT guys). But by its name, I can know it is a filter host, and with another child process in this tree, I can understand the two process is working on search job, one for the protocol of the file, one for the filter of the file. &lt;/p&gt;  &lt;p&gt;Filter daemon is a common part of Microsoft Search architecture. SharePoint, SQL and Windows Search using this daemon to load ifilters, and extract information from different types of files. If this process takes a lot of CPU power, it is quite possible the ifilter is suffering from some problem. And it’s quite likely, the ifilter encountered something it cannot process.&lt;/p&gt;  &lt;p&gt;Let’s take a look at the threads of SearchFilterHost. You can notice that one of the thread, RPCRT4.dll, is sucking CPU power. RPC stands for Remote Procedure Call, this can be another evidence.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/opal/WindowsLiveWriter/TroubleshootingWindowsSearchCPUConsuming_1216B/snap100_2.jpg"&gt;&lt;img title="snap100" style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="350" alt="snap100" src="http://blogs.msdn.com/blogfiles/opal/WindowsLiveWriter/TroubleshootingWindowsSearchCPUConsuming_1216B/snap100_thumb.jpg" width="412" border="0" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;Now, I’m suspecting there’s a corrupt or misformat file caused the problem. Because it’s corrupt, the ifilter might not be able to process it correctly, and the dead cycles drained all the processing power of the core.&amp;#160; But with no log of activity from Windows Search, how can I know which file caused the problem?&lt;/p&gt;  &lt;p&gt;Process Monitor is the tool this time. It is also from Sysinternal, as a combination or replacement for FILEMON/REGMON. Run it with filter setting to include all related processes, monitor only file activities, and wait for the problem to reappear.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/opal/WindowsLiveWriter/TroubleshootingWindowsSearchCPUConsuming_1216B/snap102_2.jpg"&gt;&lt;img title="snap102" style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="298" alt="snap102" src="http://blogs.msdn.com/blogfiles/opal/WindowsLiveWriter/TroubleshootingWindowsSearchCPUConsuming_1216B/snap102_thumb.jpg" width="513" border="0" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;After a short while, CPU usage goes up again. Stop the capture, and take a look at the log.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/opal/WindowsLiveWriter/TroubleshootingWindowsSearchCPUConsuming_1216B/snap103_2.jpg"&gt;&lt;img title="snap103" style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="244" alt="snap103" src="http://blogs.msdn.com/blogfiles/opal/WindowsLiveWriter/TroubleshootingWindowsSearchCPUConsuming_1216B/snap103_thumb.jpg" width="244" border="0" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Only SearchIndexer is working, and this already lasts for quite a moment. This is abnormal, because it should load protocol daemon and filter daemon to process different files. Another evidence for the suspect of corrupt file. Now scroll up, try to find what is the last file it accessed.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/opal/WindowsLiveWriter/TroubleshootingWindowsSearchCPUConsuming_1216B/snap101_2.jpg"&gt;&lt;img title="snap101" style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="301" alt="snap101" src="http://blogs.msdn.com/blogfiles/opal/WindowsLiveWriter/TroubleshootingWindowsSearchCPUConsuming_1216B/snap101_thumb.jpg" width="644" border="0" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;Now it is clear, the indexer loaded “KurzfassungvonInhalt.docx” into memory, and stuck there for a few minutes. That file, should be the root cause of the problem. &lt;/p&gt;  &lt;p&gt;I really didn’t have a idea that why this file is on my harddisk. But then I remembered this file was sent to me by one of my friend in Germany, she told me she had a word doc which she cannot open any more, and asked me to try to fix it if possible. If you open this file by Word, you will see an error notice.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/opal/WindowsLiveWriter/TroubleshootingWindowsSearchCPUConsuming_1216B/snap105_2.jpg"&gt;&lt;img title="snap105" style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="80" alt="snap105" src="http://blogs.msdn.com/blogfiles/opal/WindowsLiveWriter/TroubleshootingWindowsSearchCPUConsuming_1216B/snap105_thumb.jpg" width="244" border="0" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;I removed the file, and the CPU usage problem went away. &lt;/p&gt;  &lt;p&gt;In a similar case, I observed some doc files which produced by WPS Pro edition(a Office clone in China, while its personal edition does not have the problem) caused the same problem. These files can be opened in MS Word, but cannot be processed by the ifilter. I don’t have the idea with doc files from OpenOffice,&amp;#160; but these experiences might help you to identify the reason if you are suffering from the same problem.&lt;/p&gt;  &lt;p&gt;Process Explorer and Process Monitor can be downloaded from &lt;a title="http://technet.microsoft.com/en-us/sysinternals/default.aspx" href="http://technet.microsoft.com/en-us/sysinternals/default.aspx"&gt;http://technet.microsoft.com/en-us/sysinternals/default.aspx&lt;/a&gt;, or &lt;a href="http://www.sysinternals.com"&gt;www.sysinternals.com&lt;/a&gt;. Don’t capture too many events with Process Monitor at one time, otherwise your RAM will run out.&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8729022" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/opal/archive/tags/Troubleshooting/default.aspx">Troubleshooting</category><category domain="http://blogs.msdn.com/opal/archive/tags/Windows+Desktop+Search/default.aspx">Windows Desktop Search</category></item></channel></rss>