I have a problem with an ASP.NET MVC project hosted in IIS. I flood the same query hundreds of times:
function Test(count){
for(var i=0; i<count; i++){
$.ajax({
url: "http://example.com?someparam=sth&test="+i,
context: document.body
}).done(function() {
console.log("done");
});
}
}
Test(500)
Below is the time of each request in milliseconds (here is only part of the sent requests):
221
215
225
429
217
228
227
209
236
355
213
224
257
249
223
211
227
1227
168
181
257
3241
201
244
130
198
283
1714
146
136
177
3304
294
868
772
2750
138
1283
221
775
136
235
792
278
641
1707
880
1711
As you can see, for some requests there are peaks, and the accepted time can be more than 10 times the average number of other requests.
- I, although this may be the problem of the garbage collector, but I think not. I called for every request. I had the same result, delays were still in the journal.
- This happens not only for my MVC project, but also for an empty MVC project.
- I created a new MVC project and sent many requests to Home / About. The result was the same.
- I tried with an action that returns
EmprtActionResult... the same result.
- , ... , ,
.NET Memory Profiler, , . .NET Memory Profiler? , .
!
EDIT: WebForms. 5 ... - IIS. 1495 .