Very slow STSADM commands…
As a SharePoint 2007 developer you have to use the stsadm command line tool to add a solution to the SharePoint solution store. You can do this with the following command:
stsdm -o addsolution -filename <the name of your solution (*.wsp) file>
This simple command takes up to 15 seconds on my development server. So I tried a simple stsadm command without parameters. And this command also takes 15 seconds.
I realised me a situation that the stsadm command was ready in 1 second. So I thought maybe it has something to do with the internet connection. (Because my development server is disconnected from internet)
I started googling and found this: “When you use authenticode signed assemblies in an application, the application needs to go out and check the certificate revocation lists (CRLs) to verify that the signature is still valid the first time it loads up the authenticode signed assembly. If the server, serving your asp.net application, doesn’t have internet access or if the internet connection is slow this can lead to issues where you stall the process during startup or when the assembly in question first loads.”
My experience in a disconnected scenario is that not only the first time the assemblies loads slow. It loads always slow, because the CRLs cannot be found and the network timeout is reached. Behind a firewall or proxy the stsadm commands are 2 times slower! The commands will always take place after the timeout period. So why should we wait for that?!
For more information read the article:
http://blogs.msdn.com/tess/archive/2008/05/13/asp-net-hang-authenticode-signed-assemblies.aspx
SOLUTION:
The solution is to avoid checking the CRLs by adding the following code to the machine.config:
<configuration>
<runtime>
<generatePublisherEvidence enabled=“false”/>
</runtime>
</configuration>
Be sure you have .Net Framework 2.0 SP1 installed.
For more information about the hotfix visit the following website:
http://support.microsoft.com/default.aspx/kb/936707
August 26th, 2008 at 13:32
Wow, Harmjan. I didn’t know this. I’m going to try it right away.
September 1st, 2009 at 17:37
[...] STSADM or any assembly loading terribly slow, behind firewall or VPC/VMWARE? Posted on September 1, 2009 by agiledirect A small tip which i found here: http://www.dynasign.nl/blog/?p=9 [...]