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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
vitorp
New Member

Gateway Low CPU and Memory Usage

Hi, my gateway is installed inside a VM with 36 vCPUs and 233GB of ram, there is nothing installed in this server, just my gateway.

 

The gateway is using 1~3% of CPU and about 2~4GB, i changed some parameters inside the configuration file, but nothing has changed. Not even my projects are more fast or slow, they are all taking the same time to run.

 

My projects are connected to a Postgres (i'm trying to implement an ETL with a SQL Server DW, but this is what i got to work with now).

 

I want to increase CPU and Memory Usage in order to gain performance and lower my projects refresh time, can anyone help?

 

Some of my settings:


<Microsoft.PowerBI.DataMovement.Pipeline.GatewayCore.GatewayCoreSettings>
<setting name="DbConnectionPoolMinSize" serializeAs="String">
<value>256</value>
</setting>
<setting name="DbConnectionPoolMaxSize" serializeAs="String">
<value>2048</value>
</setting>
<setting name="DbConnectionPoolExpirationTimeout2" serializeAs="String">
<value>00:10:00</value>
</setting>
<setting name="DbConnectionStatefulPoolMaxSize" serializeAs="String">
<value>2048</value>
</setting>
<setting name="DbConnectionStatefulPoolExpirationTimeout" serializeAs="String">
<value>00:10:00</value>
</setting>
<setting name="SpoolerOperationMaxOutstandingStreamedPackets"
serializeAs="String">
<value>10000</value>
<setting name="StreamBeforeRequestCompletes" serializeAs="String">
<value>True</value>
</setting>
<setting name="MashupDQPoolContainerMaxCount" serializeAs="String">
<value>10000</value>
</setting>
</setting>
<setting name="MashupTestConnectionPoolContainerMaxInstanceCount"
serializeAs="String">
<value>10000</value>
</setting>
<setting name="MashupDefaultPoolContainerMaxCount" serializeAs="String">
<value>10000</value>
</setting>
<setting name="MashupAzureConnectorsCachingPoolContainerMaxCount"
serializeAs="String">
<value>10000</value>
</setting>
<setting name="PowerQueryOnlineCachingPoolContainerMaxCount"
serializeAs="String">
<value>10000</value>
</setting>
<setting name="MashupDisableContainerAutoConfig" serializeAs="String">
<value>True</value>
<setting name="QueryExecutionAggregationTimeInMinutes" serializeAs="String">
<value>5</value>
</setting>
<setting name="SystemCounterAggregationTimeInMinutes" serializeAs="String">
<value>5</value>
</setting>
<setting name="EnableFastCombine" serializeAs="String">
<value>False</value>
<setting name="CPUUtilizationPercentageThreshold" serializeAs="String">
<value>0</value>
</setting>
<setting name="MemoryUtilizationPercentageThreshold" serializeAs="String">
<value>0</value>
<setting name="MashupDefaultPoolContainerMaxWorkingSetInMB" serializeAs="String">
<value>32000</value>
<setting name="BypassConcurrentOperationLimit" serializeAs="String">
<value>True</value>

1 ACCEPTED SOLUTION
GilbertQ
Super User
Super User

Hi @vitorp 

 

I think to make it faster you need to get your Postgres server to return the queries faster. 


The Gateway is just a throughput device between your Postgres server and the Power BI Service. I would suggest chatting to your DBA to see how they can increase query performance and through put.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

View solution in original post

4 REPLIES 4
GilbertQ
Super User
Super User

Hi @Anonymous 

 

I have to disagree with your statement, if you have a lot of Power Query transformation steps that will consume CPU on the Gateway Server.

 

Also depending on how many mashup containers you have configured to run in paralell and the size of each mashup container will cause an increase in memory on the gateway server.

 

The only time this wont be affected is if it is using DirectQuery or LiveConnection.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

Anonymous
Not applicable

Hi @GilbertQ ,

 

Yes! You're right!

 

I am sorry for my misunderstanding and thank you very much for making this clear to me😊.

 

Best regards,

Community Support Team Selina zhu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Hi @vitorp ,

 

In fact, the CPU and memory usage of the gateway does not have much effect on the refresh performance.

 

Generally, refreshing is easily affected by the network environment, the sheer volume of data, capacity limitations, etc.

 

You can consider the following recommendations to establish and maintain reliable data refresh processes for your datasets:

vmengzhumsft_0-1660813045564.png

Related link:

Data refresh in Power BI - Power BI | Microsoft Docs

 

Best regards,

Community Support Team Selina zhu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

GilbertQ
Super User
Super User

Hi @vitorp 

 

I think to make it faster you need to get your Postgres server to return the queries faster. 


The Gateway is just a throughput device between your Postgres server and the Power BI Service. I would suggest chatting to your DBA to see how they can increase query performance and through put.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.