Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 377
Salomon Zhang Avatar asked Apr 02 '19 01:04

Salomon Zhang


1 Answers

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 =)

like image 153
Gaspa79 Avatar answered Sep 18 '22 12:09

Gaspa79