Open suchoss opened 1 year ago
"Unhadled exception >500 \"OnHTTPErrorMidddleware\" \"/Error/500\"?\"?q=osobaid%3Aandrej-babis\"\n Ex Type: Enyim.Caching.Memcached.MemcachedClientException
LogMessage: Empty response received.
In Method: System.String ReadResponse(Enyim.Caching.Memcached.PooledSocket)
Stack Trace:
at Enyim.Caching.Memcached.Protocol.Text.TextSocketHelper.ReadResponse(PooledSocket socket)
at Enyim.Caching.Memcached.Protocol.Text.GetHelper.ReadItem(PooledSocket socket)
at Enyim.Caching.Memcached.Protocol.Text.GetOperation.ReadResponse(PooledSocket socket)
at Enyim.Caching.Memcached.MemcachedNode.ExecuteOperation(IOperation op)
at Enyim.Caching.MemcachedClient.PerformTryGet(String key, UInt64& cas, Object& value)
at Enyim.Caching.MemcachedClient.TryGet(String key, Object& value)
at Devmasters.Cache.Memcached.MemcachedCacheProvider1.Exists(String key) at Devmasters.Cache.BaseCache
1.Get()
at Devmasters.Cache.ManagerBase3.Get(Key key, TimeSpan itemSpecificExpiration) at Devmasters.Cache.ManagerBase
3.Get(Key key)
at HlidacStatu.Repositories.Osoby.OsobyMCMByNameId.Get(String key) in P:\CCD\hs.team\Hlidac-Statu\Repositories\Temp\Osoby.cs:line 129
at HlidacStatu.Repositories.Searching.Rules.OsobaId.processQueryPart(Part part) in P:\CCD\hs.team\Hlidac-Statu\Repositories\Searching\Rules\OsobaId.cs:line 36
at HlidacStatu.Repositories.Searching.Rules.RuleBase.Process(Part queryPart) in P:\CCD\hs.team\Hlidac-Statu\Repositories\Searching\Rules\RuleBase.cs:line 43
at HlidacStatu.Repositories.Searching.SimpleQueryCreator.GetSimpleQuery(SplittingQuery sq, IRule[] rules) in P:\CCD\hs.team\Hlidac-Statu\Repositories\Searching\SimpleQueryCreator.cs:line 20
at HlidacStatu.Repositories.Searching.SimpleQueryCreator.GetSimpleQuery[T](String query, IRule[] rules) in P:\CCD\hs.team\Hlidac-Statu\Repositories\Searching\SimpleQueryCreator.cs:line 89
at HlidacStatu.Repositories.SmlouvaRepo.Searching.SimpleSearchAsync(String query, Int32 page, Int32 pageSize, OrderResult order, AggregationContainerDescriptor1 anyAggregation, Nullable
1 platnyZaznam, Boolean includeNeplatne, Boolean logError, Boolean fixQuery, Boolean withHighlighting, Boolean exactNumOfResults, CancellationToken cancellationToken) in P:\CCD\hs.team\Hlidac-Statu\Repositories\SmlouvaRepo.Search.cs:line 236
at HlidacStatu.Repositories.ES.QueryGrouped.SmlouvyPerYearAsync(String query, Int32[] interestedInYearsOnly) in P:\CCD\hs.team\Hlidac-Statu\Repositories\Temp\QueryGrouped.cs:line 112
at HlidacStatu.Repositories.Statistics.SmlouvyStatistics.CalculateAsync(String query) in P:\CCD\hs.team\Hlidac-Statu\Repositories\Statistics\SmlouvyStatistics.cs:line 34
at AspNetCoreGeneratedDocument.Views_Home_PartialsanalyzaPage.ExecuteAsync() in P:\CCD\hs.team\Hlidac-Statu\Web\Views\Home\Partials\_analyzaPage.cshtml:line 18
at Microsoft.AspNetCore.Mvc.Razor.RazorView.RenderPageCoreAsync(IRazorPage page, ViewContext context)
at Microsoft.AspNetCore.Mvc.Razor.RazorView.RenderPageAsync(IRazorPage page, ViewContext context, Boolean invokeViewStarts)
at Microsoft.AspNetCore.Mvc.Razor.RazorView.RenderAsync(ViewContext context)
at Microsoft.AspNetCore.Mvc.TagHelpers.PartialTagHelper.RenderPartialViewAsync(TextWriter writer, Object model, IView view)
at Microsoft.AspNetCore.Mvc.TagHelpers.PartialTagHelper.ProcessAsync(TagHelperContext context, TagHelperOutput output)
at Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner.1 statusCode) at Microsoft.AspNetCore.Mvc.ViewFeatures.ViewExecutor.ExecuteAsync(ViewContext viewContext, String contentType, Nullable
1 statusCode)
at Microsoft.AspNetCore.Mvc.ViewFeatures.ViewExecutor.ExecuteAsync(ActionContext actionContext, IView view, ViewDataDictionary viewData, ITempDataDictionary tempData, String contentType, Nullable`1 statusCode)
at Microsoft.AspNetCore.Mvc.ViewFeatures.ViewResultExecutor.ExecuteAsync(ActionContext context, ViewResult result)
at Microsoft.AspNetCore.Mvc.ViewResult.ExecuteResultAsync(ActionContext context)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.
Častý garbage collecting, který jde z infofactů:
Tady mi přijde, že na S3 cache dochází k velké deserializaci (škoda, že nejde načíst hotové objekty z cache) - napadá mě možná optimalizace => přechod z newtonsoft json na dotnet json. Snížil by se nejspíš pressure na GC.
VZ z produkce - hit je docela velký
[ ] Úřad práce - KIndex memory cache - "KIndexData72496991_False" - 117 MB paměti! Ten objekt je dost velký na memory cache (a takových je víc). Potřebujeme mít v té paměti jednotlivá Iča a k nim poznámky? Tady by to chtělo ideálně předělat KIndex objekty...
[ ] KIndex jako takový má na starosti v paměti cca 90 % zabraného místa
U Kindexu bych navrhoval uložit data do databáze a zbavit se memory cache. Nepřepočítáváme to tak často a jsou to pevné objekty po letech.