c# - High CPU usage when sending data using SOAP -
c# - High CPU usage when sending data using SOAP -
we wrote in c# webservice sends , receives info remote clients. works fine. few days ago found when sending client array of bytes cpu usage increases 2% 30% on iis worker process. during debugging found cpu usage peak occurs after our webmethod ended, nil in our code. there don't know cause such cpu usage? when sends error code there no such peak...
this cpu usage occurs when there 1 client connected. when had 4-5 clients connected cpu used in 100%!
with little go on, i'm assuming (educated) guesses.
here's mine: check if gc active (you can in perfmon). if was, allocating/deallocating lots of memory? have long running transactions?
maybe of interest:
optimizing wcf web service performance .net debugging demos lab 4: high cpu hang c# web-services soap gsoap svc
Comments
Post a Comment