Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
johnpjustus
Helper IV
Helper IV

Gateway Performance App

Hi All,

 

I have this on-prem gateway performancee app and whever I run this app from the service, it just consumes lot of memory from the gateway server.

Does anyone know why refreshing this app cause massive RAM spike?

 

Thanks,

John

3 REPLIES 3
lbendlin
Super User
Super User

Wow, there's actually still someone trying to use this?

 

Create your own app, consume the log files and create your own telemetry.  focus on available memory, processor load, and mashup details. You can ignore most of the rest.

 

lbendlin_0-1707354003840.png

(this is an example from a test cluster. Production looks quite a bit more busy)

Thanks, would you be able to share the template of your custom report?

That won't really help you much.  Instead, create a streaming hybrid dataset like this 

lbendlin_0-1707491721895.png

 

and then on each cluster member have a Powershell script run every five minutes, pushing data in.

 

#capture stats
$date = (Get-Date).ToUniversalTime().ToString('yyyy-MM-ddTHH:mm:00.000Z')
$mem = (Get-Counter '\Memory\Available MBytes').CounterSamples.CookedValue
$proc = (Get-Counter '\Processor(_Total)\% Processor Time').CounterSamples.CookedValue
$disk = (Get-Counter '\LogicalDisk(C:)\% free space').CounterSamples.CookedValue
$mashups = 0+(get-process "Microsoft.Mashup.Container.NetFX45" -ErrorAction SilentlyContinue | Measure-Object ).Count
$mashmem = 0+(get-process "Microsoft.Mashup.Container.NetFX45" -ErrorAction SilentlyContinue | Measure-Object WS -Sum ).Sum
$gwmem = 0+(get-process "Microsoft.PowerBI.EnterpriseGateway" | Measure-Object WS -Sum ).Sum
$date1 = (Get-Date)
$proxy = (tnc <your proxy> -Port <your port>).TcpTestSucceeded
$date2 = (Get-Date)
#enforce TLS1.2
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
$payload = @{
"Host" = $env:computername
"Timestamp" = $date
"Available Memory in MB" = $mem
"Processor Load %" = $proc
"% Free on C:" = $disk
"Mashups" = $mashups
"Mashup Memory" = $mashmem
"Gateway Memory" = $gwmem
"Proxy ok" = ($date2 - $date1).TotalSeconds  #$proxy+0
}
#push URL
$endpoint = "https://api.powerbi.com/beta/<your tenant>/datasets/<your dataset>/rows?key=<your push key>"
Invoke-RestMethod -Method Post -Uri "$endpoint" -Body (ConvertTo-Json @($payload))

 

Helpful resources

Announcements
July 2024 Power BI Update

Power BI Monthly Update - July 2024

Check out the July 2024 Power BI update to learn about new features.