Using tracing intensively may cause high CPU.

It might sound banal but I actually help a guy few days ago. I got a phone call that ASP.NET application that he develop consuming 50% of CPU with minimum server pressure and climb to 100% CPU when request start to come rapidly.

That guy develop simple ASP.NET application, no multi-threading or other complexly just Select/Insert/Update application. So it looks very strange to me that CPU goes so high.

Well the reason was that he use Tracing as logger to write down what is going on in his application without being aware that ASP.NET write is own stuff into trace data. When he stop tracing, CPU just return to normal values. We end up by using Nspring to write a-synchronous into a log file, ending up with better RPS.

Published Thursday, February 19, 2004 4:35 PM by nattYGUR

Comments

# re: Using tracing intensively may cause high CPU.

Thursday, February 19, 2004 9:56 AM by Udi Dahan - The Software Simplist
Did you do a comparison of the various logging frameworks out there before choosing Nspring ? If you did, I'd be very interested in hearing about it.

# re: Using tracing intensively may cause high CPU.

Sunday, February 22, 2004 5:17 PM by Natty Gur
Udi hi,

No I just check Log4Net and Nspring. I found out that Nspring simpler solution and easier to work with. Log4Net match complicated logging demands but takes more efforts to work with.

Leave a Comment

(required) 
(required) 
(optional)
(required)