Todd Carter over at todd-carter.com has posted his very in-depth findings regarding a pretty significant memory leak in SharePoint 2007. The problem lies around the HttpApplication object and ultimately around the SPHttpApplication object.
For each HttpApplication which is leaked a potential huge number of child references are too rooted and therefore leaked.
The memory leak has proven to be pretty significant for certain clients as you can see below…
After having the customer install the fix I have described here the process which would normally grow to 10 GB an hour and recycle never went above 2.5 GB! And even after taking all servers out of the load balancer and running the entire farm off one WFE the memory never went above 3.3 GB!!
To learn more read the whole post at Todd’s blog.
I always seem to leave out a step when configuring anonymous access for a SharePoint site so I’ve finally put together a full guide so I don’t leave out any steps in the future.
Deactivate Hidden Features
If you are getting “Access Denied” for lists and libraries then you probably for got this step. There is a hidden feature that secures the lists and libraries by default for all sites that have anonymous access enabled. If you have already enabled anonymous access prior to deactivating this feature then you will need to turn all anonymous access off and back on to refresh this functionality.
- For each site collection that requires anonymous access execute the following stsadm command.
stsadm -o deactivatefeature -url http://sitecollection -name ViewFormPagesLockDown
Continue reading →
Many times I find myself in a command window hacking away deploying solution packages or activating features to only later think to myself that I would love to save those commands to a batch file. Previously I would have copy and pasted the contents of the window into notepad and started removing all of the directory information but now I use this method below:
doskey /history > commands.bat
This will export the entire command window history into a file called commands.bat. You’ll just need to go into commands.bat and remove any of the unwanted commands. Enjoy!