title: w3wp crashing out
body: <p>One of our web servers is suffering from random w3wp.exe crashing and after a couple of weeks of debugging i simply cannot figure out why. The only thing that has helped so far is reducing the max worker processes from 15 to 5 however this isn't ideal as we are using a multi-cpu machine in the hopes of reducing the total number of servers needed. We serve a large volume of small requests so parallel processing is a requirement.</p>
  
  <p>As far as I am aware all possible sources of parallel processing collision have been addressed using thread locking.</p>
  
  <ul>
  <li>Win 2008 64Bit SP2 </li>
  <li>IIS7</li>
  <li>Dual 3.1Ghz Xeon</li>
  <li>4Gb Ram</li>
  </ul>
  
  <p>First error:
  Application: w3wp.exe
  Framework Version: v4.0.30319
  Description: The process was terminated due to an internal error in the .NET Runtime at IP 70D9CECA (70D40000) with exit code 80131506.</p>
  
  <p>Followed straight away by:
  Faulting application w3wp.exe, version 7.0.6002.18005, time stamp 0x49e023cf, faulting module clr.dll, version 4.0.30319.1, time stamp 0x4ba1d9ef, exception code 0xc0000005, fault offset 0x0005ceca, process id 0x%9, application start time 0x%10.</p>
  
  <p>Many Thanks</p>
  
  <p><strong>Edit</strong>
  Problem eventually solved. It turned out SQL server was unmounting the database straight after every query, so every new query had to wait for it to re-mount. Anyway, telling SQL Server not to do that seems to have solved it, no idea how but it's working so I'm happy</p>