Using:
- .NET Core 2.1.x
- StackExchange.Redis.Extensions 4.0.5
- messagepack c-sharp 2.3.85
- Azure Redis
- Azure app service
Hello, i am not sure it is a bug in the messagepack-csharp library,but i have the following problem and hopefully somebody can help me.
My Application uses MessagePack-csharp to set and get items in/from Azure Redis cache. 99.9% of the time this works fine but sometimes i get two errors which causes the CPU to go to 100% and the application crashes until i restart the application.
Related errors: The errormessages found in the logs and related to eachother are the following:
- Failed to deserialize System.Collections.Generic.List1[[MYOBJECT]] value. at MessagePack.MessagePackSerializer.Deserialize[T](MessagePackReader& reader, MessagePackSerializerOptions options) at MessagePack.MessagePackSerializer.Deserialize[T](ReadOnlyMemory1 buffer, MessagePackSerializerOptions options, CancellationToken cancellationToken) at CacheService.GetAsync[T](String key)
- Out of memory exceptions on different kind of actions (reading db items, reading jwt etc..
- REDIS InternalFailure on EXPIRE at Microsoft.Extensions.Caching.Redis.RedisCache.RefreshAsync(String key, Nullable1 absExpr, Nullable1 sldExpr, CancellationToken token)
- No connection is available to service this operation: EVAL; Exception of type 'System.OutOfMemoryException' was thrown. at StackExchange.Redis.ConnectionMultiplexer.ThrowFailed[T](TaskCompletionSource`1 source, Exception unthrownException)
Someone any clue what it can be?
--> Redis shows no memory issues, the application neither. Both only shows a maximum of 25% usage so i have no idea why i get a memory exception.
--> CPU raises up to 100% usage... Only waiting a few minutes or a restart of the application fixes the issue..
Does this ring a bell to anyone?