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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

How to set the maximum number of connections a gateway can have to a single source?

I have a PostgreSQL database as a datasource, and a PBI report with 16 tables. I would like to refresh tha dataset through an on-premises gateway, but it always fails with SQL 53300 too many requests. It is actually caused by the gateway as it opens endless number of connections to the server, until it reaches the limit, and the next connection fails. What I tried are the following:

  1. Disable parallel loading based on this: https://community.powerbi.com/t5/Desktop/Power-BI-Desktop-automatic-refresh-queries-one-by-one/td-p/...
  2. Limit the MashupDefaultPoolContainerMaxCount to 1 based on this: https://community.powerbi.com/t5/Integrations-with-Files-and/On-premises-gateway-ability-to-limit-da...
  3. I found the following settings in the same file as in the 2. option: DbConnectionPoolMinSize, DbConnectionPoolMaxSize and DbConnectionStatefulPoolMaxSize which were 128 for min and 256 for max count, so I reduced them to 1 and 32 respectively.

What other options can be, how can I achieve a normal connection count? Where are those options for the gateway documented?

2 REPLIES 2
v-chuncz-msft
Community Support
Community Support

@Anonymous,

 

Also check if Timeout parameter in Advanced Editor helps.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Hello @v-chuncz-msft,

 

That is about the timeout regarding no answer from the server for the connection request, but the server answers correctly, it is declining the request due to too many other connections. I do not see how this option prevents opening too much connections in the first place. Could you explain a bit more?

 

Br,

Szabolcs

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.

Top Solution Authors