Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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 MCSA Jan 9 at 11:06

2 Answers 2

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

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

 
discard

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.