SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question
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={$}} | 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 for MOSS

share|improve this answer
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.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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