I need to get the memory consumed by the root web of the site collection.

How could we know this using powershell scripting?

Any ideas, please share me.

Note- My farm is running on MOSS 2007.

  • If one of the answers solved the problem statet in your question, you should mark this answer as accepted answer to help future visitors. – Benny Skogberg Jan 9 '14 at 11:06

You can use the following script for SP2010

Get-SPSite | select url, @{label=”Size in MB”;Expression={$_.usage.storage/1MB}} | Sort-Object -Descending -Property “Size in MB” | ConvertTo-Html -title "Site Collections sort by size" | Set-Content filename.html

This will output the size of all webs to a file

Try http://spusedspaceinfo.codeplex.com/ for MOSS

  • I think Anil wants to know how much memory (RAM) is being consumed by the root web app, not storage in the content database. – Anthony Kasses Nov 6 '12 at 8:57
  • Hi Paddy, thanks for sharing the script. Yes, I wanted to know the storage consumed in content DB. – anil kumar Nov 6 '12 at 9:28

I don't know a powershell script for this. But do you have remote acces to the server? Then you can try to check it with sysinternals. There you can see, how much memoy the workerprocess takes.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.