c# - .NET Web Service Client Calls performance issue -


i have asp.net mvc application calling wcf service. below how doing call every request.

var xml = "my xml string"; var ep = new endpointaddress("http://myendpoint"); xml = new proxy.serviceclient(new nettcpbinding(), ep).getnewxml(new proxy.callcontext(), xml); 

the problem i'm having number of requests , not recycling.

see screenshot below using performance monitor. ran test opening web browser on server , holding down enter (which each request form post , tries call proxy client)

enter image description here

at point web browser spins until instances start dropping. takes 30 seconds causing issues when lots of activity performed on server. can prevent reaching 100%?

the client proxy class disposable - having idisposable implemented because connection resource should disposed asap. in codes did not seem dispose proxy object after use. common code pattern of making client calls this.

using (var proxy= new myproxyclass(...)) {    proxy.dosomething(...); } 

resource leaks on client side can cause severe performance problems on both client side , server side. since mvc application (web service broker) client wcf service, damage overall performance escalating.


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -