Thursday, 9 January 2014

Application Pool Spin-up Times

With reference to: http://ddkonline.blogspot.co.uk/2010/05/fix-sharepoint-very-slow-to-start-after.html

These steps seem to improve spool-up time following GAC deployments, after making the changes a server restart (or at least an IISRESET, restart Timer, restart Administration) can't hurt. Not sure I'd recommend doing this on a production system.

Add this to your hosts file:


 127.0.0.1 crl.microsoft.com  

Stick the following in a .vbs file and execute under CMD as an administrator (prevents all user accounts (presumably that have a 'profile') on the server from attempting to retrieve the CRL from Microsoft):

 const HKEY_USERS = &H80000003   
 strComputer = "."   
 Set objReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\" _   
 & strComputer & "\root\default:StdRegProv")   
 strKeyPath = ""   
 objReg.EnumKey HKEY_USERS, strKeyPath, arrSubKeys   
 strKeyPath = "\Software\Microsoft\Windows\CurrentVersion\WinTrust\Trust Providers\Software Publishing"   
 For Each subkey In arrSubKeys   
  objReg.SetDWORDValue HKEY_USERS, subkey & strKeyPath, "State", 146944   
 Next   

Finally, update the 'machine.config' files in C:\Windows\Microsoft.NET\ (search for them, one per .NET version per CPU arch):


 <configuration>  
 <runtime>  
 <generatePublisherEvidence enabled="false"/>  
 </runtime>  
 </configuration>  

No comments:

Post a Comment