My sharepoint webpart with the webchart is working very nicely. So I decided to do some load testing using VS2005 loading testing tools. I then found that the w3wp process had a memory leak when I ran the test at 100 users for 3 min.
I then tried to isolate the problem and created a simple web page with just the chart control (no webpart or sharepoint) and no data source and found that the WebDev.WebServer.exe (the w3wp equivalent) leaked 22Meg in 3min at 100 user load.
This leak would equate to 10gig over a 24 hour period at 100 user load.
Is there a known issue with a memory leak of the WebChart control? Is a 100 user load generated by VS2005 a realistic load? Is there something that I am doing wrong?
Cheers,Jim
After futher testing, it looks like there is always a leak when performing the vs2005 load testing even for a blank page? Maybe it is IIS???
i would guess it's ASP.NET, not IIS, that's leaking memory. fortunately, ASP.NET is protected from memory leaks because it will terminate the process and restart periodically if the memory usage gets too high.
i don't know about VS2005's load test tools as memory profilers, though. you might want to temporarily add a call to GC.Collect in your Page_Load to make sure garbage collection is occurring-- because you can't really profile memory leaks effectively without running GC every time you evaluate memory usage.