Created
May 29, 2013 07:58
-
-
Save toburger/5668679 to your computer and use it in GitHub Desktop.
Based on this blog entry I've created a PowerShell single liner to retrieve to total database size: http://code-inside.de/blog/2013/05/28/wieviel-speicher-belegt-meine-ravendb-und-welchen-plan-bentige-ich-bei-cloudbird-oder-ravenhq/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"{0:N2} MB" -f ((((Invoke-WebRequest -uri http://localhost:8080/admin/stats -UseDefaultCredentials).Content | ConvertFrom-Json).LoadedDatabases | Measure-Object -Sum TotalDatabaseSize).Sum / 1MB) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment