Resource limits have been exceeded. Data collection in this window has been stopped. Visual Studio 2017

6.4k Views Asked by At

I am running an ASP.NET MVC web application on Visual Studio 2017 over IIS.

The Diagnostic Tools tell me the alert:

Resource limits have been exceeded. Data collection in this window has been stopped.

Screenshot:

enter image description here

It happens after running around 5 mins. I stopped and restarted it, still the same thing.

Checked the computer memory in the task manager. There is still some space.

What causes this?

1

There are 1 best solutions below

0
On

The default value of the diagnostic settings timeout is 5 minutes, that's why.

You can change it like this:

Step1

enter image description here

enter image description here

It's confusing at first if you don't read everything because it says "Minimum session duration" but whatever. Keep in mind you'll have to restart the debugging session (unfortunately).

You can also disable the resource usage limits altogether and that will work too. Good luck =)