Forum Discussion
SrinivasaManiPrabhakar
Nov 13, 2019Copper Contributor
Error in Starting SSAS Tabluar Service in Windows Server 2012 R2
Hi All, I am facing issue while starting up Sql Server Analysis service in Windows Server 2012 R2. My Sql Server version is Sql Server 2016 Enterprise edition. I am getting error "The request f...
SrinivasaManiPrabhakar
Nov 20, 2019Copper Contributor
renefk
Nov 20, 2019Copper Contributor
yes, but can you elaborate on the amount allocated to other resources?
Function Test-MemoryUsage {
[cmdletbinding()]
Param()
$os = Get-Ciminstance Win32_OperatingSystem
$pctFree = [math]::Round(($os.FreePhysicalMemory/$os.TotalVisibleMemorySize)*100,2)
if ($pctFree -ge 45) {
$Status = "OK"
}
elseif ($pctFree -ge 15 ) {
$Status = "Warning"
}
else {
$Status = "Critical"
}
$os | Select @{Name = "Status";Expression = {$Status}},
@{Name = "PctFree"; Expression = {$pctFree}},
@{Name = "FreeGB";Expression = {[math]::Round($_.FreePhysicalMemory/1mb,2)}},
@{Name = "TotalGB";Expression = {[int]($_.TotalVisibleMemorySize/1mb)}}
}
Test-MemoryUsage
can you run above Powershell command and return the result ?
Function Test-MemoryUsage {
[cmdletbinding()]
Param()
$os = Get-Ciminstance Win32_OperatingSystem
$pctFree = [math]::Round(($os.FreePhysicalMemory/$os.TotalVisibleMemorySize)*100,2)
if ($pctFree -ge 45) {
$Status = "OK"
}
elseif ($pctFree -ge 15 ) {
$Status = "Warning"
}
else {
$Status = "Critical"
}
$os | Select @{Name = "Status";Expression = {$Status}},
@{Name = "PctFree"; Expression = {$pctFree}},
@{Name = "FreeGB";Expression = {[math]::Round($_.FreePhysicalMemory/1mb,2)}},
@{Name = "TotalGB";Expression = {[int]($_.TotalVisibleMemorySize/1mb)}}
}
Test-MemoryUsage
can you run above Powershell command and return the result ?