Last post Apr 17, 2018 06:07 AM by Edward Z
Apr 12, 2018 03:41 PM|srs_karthik|LINK
I have migrated ASP.net MVC application in to .NET Core self-contained application, while hosting them in to the Production environment it occupying more memory and for every request causes the memory to increase. Initially my application loaded it took
around 300 MB of memory, Later if I do some operation in my application it increase bit higher but it won’t clear/reduce once it completed its operation .
Is there any suggestion to resolve this issue ?
Apr 13, 2018 02:56 AM|Edward Z|LINK
>>Later if I do some operation in my application it increase bit higher but it won’t clear/reduce once it completed its operation .
If you keep the application running, and request this method, will the memory increase all the time?
In general, the resource for unmanaged code will be collected by GC, and it occurs randomly.
What is the function for this method? Did you keep any resource reference and did not dispose them before you leave this method?
I would suggest you try link below to analyze performance.
Apr 17, 2018 04:22 AM|srs_karthik|LINK
Thanks for the response, i tried with snapshots in diagnostic tool in Visual Studio and I have taken different memory snapshots at the different time the memory won't decrease !!
how to handle the GC for this case , Since I have used Kestrel to host my application and I used application type as a Console application.
Apr 17, 2018 06:07 AM|Edward Z|LINK
Could you share us the related code which caused the memory increase all the time?