<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Nixadmins.net &#187; Sharepoint</title>
	<atom:link href="http://www.nixadmins.net/category/windows/sharepoint/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.nixadmins.net</link>
	<description>Blogging for knowledge</description>
	<lastBuildDate>Thu, 26 Jan 2012 12:18:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>SharePoint 2007 filling hard drive with logs</title>
		<link>http://www.nixadmins.net/2009/01/31/sharepoint-2007-filling-hard-drive-with-logs/</link>
		<comments>http://www.nixadmins.net/2009/01/31/sharepoint-2007-filling-hard-drive-with-logs/#comments</comments>
		<pubDate>Sat, 31 Jan 2009 08:45:49 +0000</pubDate>
		<dc:creator>Mats Hellman</dc:creator>
				<category><![CDATA[Sharepoint]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[OWSTIMER.EXE]]></category>
		<category><![CDATA[Sharepoint Error]]></category>

		<guid isPermaLink="false">http://www.nixadmins.net/2009/01/31/sharepoint-2007-filling-hard-drive-with-logs/</guid>
		<description><![CDATA[I logged into our SharePoint server at work today and behold, the C:\ drive was full. It had a blazing 200Mb free, out of 150Gb I might ad. I almost fell of my chair, what the hell had happened. I started by checking out the databases, I knew I had set recovery mode to simple [...]]]></description>
			<content:encoded><![CDATA[<p>I logged into our SharePoint server at work today and behold, the <em>C:\</em> drive was <strong>full</strong>. It had a blazing 200Mb free, out of 150Gb I might ad. I almost fell of my chair, what the hell had happened.     <br />I started by checking out the databases, I knew I had set recovery mode to simple a while back so they wouldn’t fill up the drive with Transaction Logs. So checking folder sizes I noticed that <font color="#ff0000">C:\Program Files\Common Files\Microsoft Shared\webserver extensions\12\logs</font> was hogging over 140Gb.     <br />What the h***?&#160; Looking in the folder I found SHAREPOINT*.log files that were <strong>HUGE</strong>, some almost 7Gb. What’s going on here!     <br />I tried to open a logfile, but as you might guess Notepad doesn’t open a text file that’s 7Gb. Who would want to open one anyway. What was I thinking. I guess I could sink a server by opening something that large(<em>note to self: Trial of opening large files in controlled environment</em>).</p>
<h2>Google is your friend, your friend I tell you!</h2>
<p>Fixing problems almost always involves checking online to se if someone else has run into the same problem. And behold, someone had. But not as many as I thought and the answers were a lot harder to find than I thought.    <br />The problem seemed to have something to do with the SharePoint timer service( <em><font color="#ff0000">OWSTIMER.EXE</font></em> ), so I stopped the service. Moved the logfiles to my desktop for further analysis if needed and restarted it. Seconds later I had a logfile about 50Mb in size. Stop the timer fast so I can open the logfile in Notepad.</p>
<h2>OWSTIMER.EXE the bandit?</h2>
<p>Reading the log showed a timed job hanging. Well to even get to the bottom of this I had to get the server logging less, the drives filled up to fast and I needed to keep the server up and running.</p>
<p>&#160;</p>
<table cellspacing="0" cellpadding="2" width="598" border="1">
<tbody>
<tr>
<td valign="top" width="182"><font color="#0000ff">Process</font></td>
<td valign="top" width="21"><font color="#0000ff">TID</font></td>
<td valign="top" width="228"><font color="#0000ff">Area</font></td>
<td valign="top" width="10"><font color="#0000ff">Category</font></td>
<td valign="top" width="69"><font color="#0000ff">EventID</font></td>
<td valign="top" width="91"><font color="#0000ff">Level</font> </td>
</tr>
<tr>
<td valign="top" width="182">
<p><font color="#800000">OWSTIMER.EXE (0x014C)</font></p>
</td>
<td valign="top" width="21"><font color="#800000">0&#215;0440</font></td>
<td valign="top" width="228"><font color="#800000">Windows SharePoint Services</font></td>
<td valign="top" width="10"><font color="#800000">Timer</font></td>
<td valign="top" width="69"><font color="#800000">5uuf</font></td>
<td valign="top" width="91"><font color="#800000">Monitorable</font></td>
</tr>
</tbody>
</table>
<p>&#160;</p>
<p><font color="#ff0000">The next section is something you really shouldn&#8217;t do. Unless you are in a hurry and can’t afford to take the server offline.</font></p>
<h2>Suppressing the logging!</h2>
<p>Remember I said <em><u>this is something you really should not do</u></em>. If your server spits error logs faster than a chain gun shoots bullets you need to find the cause of it, not shut it up. Well I decided to get the logging down a notch before I get to the bottom of this, since as I said there really wasn’t a whole lot of documentation out there on this subject. And if like me you want to keep the server running during production hours and start the debugging after hours, since the server works fine for the users. The solution below,</p>
<ol>
<li><font color="#656564">Start SharePoint Central Administration</font> </li>
<li><font color="#656564">Go to Operations</font> </li>
<li><font color="#656564">Select Logging and Reporting</font> </li>
<li><font color="#656564">Select Diagnostic Logging</font> </li>
<li><font color="#656564">Under event throttling choose All as category.</font> </li>
<li><font color="#656564">Set least critical event to report to warning. I want to know anything that count’s as a warning or more serious than that. Unless I am debugging, and if I am I can always set the threshold lower again.</font> </li>
<li><font color="#656564">Set the least critical event to report to trace file to Unexpected. OWSTIMER.EXE error is giving out an Monitorable so setting it any lower and you’ll still fill up your drives.</font> </li>
<li><font color="#656564">Under trace log set number of logfile to something more reasonable than the default ( I had 96 files times 7Gb is quite something ), I set it at 10. And set the number of minutes to use a logfile to 60. If nothing really weird is happening 60 minutes should be ok. </font></li>
</ol>
<h2>Getting to the bottom of it</h2>
<p>Sorry to say I couldn’t find the cause of this horrible logging. But I’m not going to quit searching. This post was just to save fellow administrators some time, without SharePoint filling your drive.</p>
<p>If you are reading this and already solved this problem, please share your fix. There might be many out there battling the same issue. And <strike>if</strike> when I find a solution to this I will be posting about it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nixadmins.net/2009/01/31/sharepoint-2007-filling-hard-drive-with-logs/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

