Click here to Skip to main content
15,887,267 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
We have memory leaks issue in webservice. we are using WCf services for data transaction with db . is there any chance to know the web services consumed memory?
After calling a web service how can i identify the usage of web service memory?

What I have tried:

i have googled but i didn't find a solution. i'm not sure what i need to do..
Posted
Updated 4-Dec-17 22:13pm

1 solution

That part comes under debugging, and the tool used is called profiler. So before hosting in production, you need to bring it down for testing. In testing environment, run the program and attach a profiler (Visual Studio has profilers, which edition you have?), profiler will tell you almost everything

* CPU usage
* Memory consumption
* Network, disk usage etc.

That way, you will be able to get a full overview of what your service is doing, and where CPU or memory consumption is wrong. If Visual Studio does not provide enough information you can look for some third-party, and paid solutions. Google them. :-)

Mike Dos Zhang: Visual Studio Profile WCF project and look into the source code[^]
How to get started with WCF Performance profiling - Stack Overflow[^]
 
Share this answer
 
Comments
User-11630313 5-Dec-17 5:51am    
hey thank you for replying my question. how can i attach profiler to my visual studio?
i'm visual studio 2010
Afzaal Ahmad Zeeshan 5-Dec-17 5:57am    
Does this work for you? https://msdn.microsoft.com/en-us/library/ms182372.aspx

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900