Base solution for your next web application
Open Closed

Out of Memory Issue: ASPNET ZERO 7.0.0 #10515


User avatar
0
demo.solaru created
  • What is your product version? -- ASP NET ZERO 7.0.0
  • What is your product type (Angular or MVC)? -- Angular
  • What is product framework type (.net framework or .net core)? -- .Net Core

We have application running on prodcution environment and it was almost one and half month since last release, and all of sudden all calls to API started throwing following:

System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown. at System.Collections.Generic.Dictionary2.Initialize(Int32 capacity) at System.Collections.Generic.Dictionary2.TryInsert(TKey key, TValue value, InsertionBehavior behavior) at Abp.Web.Configuration.AbpUserConfigurationBuilder.GetUserLocalizationConfig() at Abp.Web.Configuration.AbpUserConfigurationBuilder.GetAll() at Abp.AspNetCore.Mvc.Controllers.AbpUserConfigurationController.GetAll() at lambda_method(Closure , Object ) at Microsoft.Extensions.Internal.ObjectMethodExecutorAwaitable.Awaiter.GetResult() at Microsoft.AspNetCore.Mvc.Internal.ActionMethodExecutor.TaskOfActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments) at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeActionMethodAsync() at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeNextActionFilterAsync()

Not sure what happened: but after restarting application on azure everything is working fine. Is there any way to find out root cuase for this problem ?


1 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @demo.solaru

    We haven't face this problem before. Maybe you can try to use a tool like jMeter to make high amount of request to this endpoint and during that run Visual Studio Profiler (or any other profiler) to detect the cause of the problem.