E
E
Eugene2012-10-23 18:05:19
ASP.NET
Eugene, 2012-10-23 18:05:19

Asp.NET MVC 3 performance?

Good evening.
Quite recently, a site written in A sp.NET MVC 3 fell off. The hosting response said that the CPU threshold of 20% was exceeded.
The fact is that every three days of any month there is a sharp jump in traffic on the site.
And in my code, sheer nonsense was written and it turned out that during the session of a particular user 3 temporary files were generated ( Get TempFileName() ). I didn't delete the temporary file after working with it in a method.
But I'm confused by the description of the problem. I assume that it was in the files that the trouble was, but what does 20% of the CPU have to do with it then?
Please tell me, was it really GetTe mpFileName()'s fault?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
P
pletinsky, 2012-10-23
@Qwofer

Perform site performance testing locally on your computer and identify weaknesses. Google how to do it - there are tools for this. I doubt it's GetTempFileName() .

K
krakako, 2012-10-23
@krakako

Good report on asp.net mvc performance

Z
ZOXEXIVO, 2015-03-24
@ZOXEXIVO

1) Generate the necessary traffic with your own console application. Or use
the loadimpact.com service, find weak spots in the code.
2) Change the host that has such idiotic working conditions
2) Update MVC. The library is constantly being optimized
Yes, if many people simultaneously force the processor to perform operations, then not only 20%, but all 100 can be obtained.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question