简体   繁体   English

.NET 核心工作者服务冻结

[英].NET Core worker service freezing

We have a long running .net core worker service which has been in production for over 6 months now without any problem.我们有一个长期运行的 .net 核心工作者服务,该服务已经投入生产超过 6 个月,现在没有任何问题。 Now 2nd of January it just froze after midnight and just stood there doing nothing.现在 1 月 2 日午夜刚过就结冰了,只是站在那里无所事事。

We have daily log file and 1. day has last entry at 2022-01-01T23:15:38.我们有每日日志文件,并且 1. day 的最后一个条目是 2022-01-01T23:15:38。 Second day doesn't have logfile at all.第二天根本没有日志文件。

As the service is "running" our monitoring didn't notice anything wrong.由于服务正在“运行”,我们的监控没有发现任何错误。

So on third days morning we notice that our service is frozen and restart it.所以在第三天早上我们注意到我们的服务被冻结并重新启动它。 Fourth day it works as intended until midnight, last entry in log is 2022-01-04T23:47:55 and service has frozen again.第四天它按预期工作到午夜,日志中的最后一个条目是 2022-01-04T23:47:55 并且服务再次冻结。 No log file for 5th day, until I restart it again.第 5 天没有日志文件,直到我再次重新启动它。

So has anyone experienced similar behavior?那么有没有人经历过类似的行为?

So I updated all nuget packages, published and deployed and problem disappeared.所以我更新了所有 nuget 包,发布和部署,问题消失了。 Also Visual Studio had several update since this application was last deployed.自上次部署此应用程序以来,Visual Studio 也进行了多次更新。 So something somewhere was updated that fixed this issue.所以某处更新了一些东西来解决这个问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM