Too many TCP/IP socket connections

Kenny Deblaere asked on November 17, 2016 15:45

Hello

I'm receiving a message from Azure:

project has opened too many TCP/IP socket connections. Exceeding ephemeral TCP/IP port connection limits can cause unexpected connectivity issues for your apps.

When I look for the recommandations, there is no info.

Is there a way to reduce these connections?

Kind regards

Kenny

Recent Answers


Trevor Fayas answered on November 17, 2016 15:51

Are you doing anything custom in your Kentico that may be causing this?

What Level of WebApp/SQL Server in azure are you using (B1, B2, S1, S2, P1, P2, etc). Kentico may need to be on a higher plan in order to run, i think minimum is S1 for the SQL server.

0 votesVote for this answer Mark as a Correct answer

Kenny Deblaere answered on November 17, 2016 15:55

Hi

In my code I'm using the methods SelectSingleNodeand SelectSingleNodes from the class TreeProvider.

In my profiler, these methods doesn't run more than nessecary.

My WebApp is on level S2.

My SQL Server is also on level S2.

Kind regards

Kenny

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on November 17, 2016 18:36

This could be caused from a number of things like:

  • multiple webparts on the same page calling the same data unnecessarily (use a single webpart or datasource)
  • several API calls running at the same time
  • your website running in a webfarm sharing the DTU's between the instances and running out of DTU's because of the above 2 items.
  • scheduled tasks running in the background which don't need to or run too often (check the scheduled tasks and turn off ones which aren't needed)

What I'd do temporarily is change your Azure SQL plan to scale up to an S3 and see if anything changes. I'm guessing it will, then you'll need to do some research, aside from finding out which queries are running, into how your site is setup and what calls are being made from the Pages app.

1 votesVote for this answer Mark as a Correct answer

Kenny Deblaere answered on November 18, 2016 10:06

Thanks Brenden

I'll check with the change of the Azure SQL plan.

Kind regards

Kenny

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.