I have an ASP.NET application that communicates with another API and processes a lot on Page_Load.
If in my browser I hold F5 and hit the site, the server shoots from 120mb to 1.5GB.
I can’t find any memory leaks or unclosed objects. Is there any way or extra things I can do to help?
Thank you for your time!
Use a profiler like ANTS Profiler or dotTrace.
There are many, many things that could cause that behavior – trying to solve the problem with arbitrary suggestions probably won’t get us anywhere.
Once the profiler has identified problem areas, you can post that code in a new question if you aren’t able to resolve that problem.
For what it’s worth, 1.5 GB isn’t huge. Does it eventually give an
OutOfMemoryExceptionif you keep the button pressed?