ZHANGTIANYAO1 / TS3AudioBot-NetEaseCloudmusic-plugin

这是一个用C#给TS3AudioBot编写网易云插件,让你的TS可以有一个音乐机器人。如果觉得好的话,还请给个星星支持一下
157 stars 18 forks source link

cpu占用异常 #9

Closed LovelyRua closed 1 year ago

LovelyRua commented 1 year ago

image image web面板中显示的cpu占用是正常的 但是在任务管理器里看占用了过多的cpu 刚开始用的时候好像没有这个问题 现在莫名其妙出现了额外的占用

LovelyRua commented 1 year ago

可能是数据库的问题 把6000kb的.db删除重建后cpu占用就恢复正常了 重置数据库之前爆了一条错误 07:59:56.4873|ERROR|Api| LiteDB.LiteException: Timeout. Database is locked for more than 00:01:00. at LiteDB.LockService.Read() at LiteDB.LiteEngine.Find(String collection, Query query, Int32 skip, Int32 limit)+MoveNext() at LiteDB.LiteEngine.Find(String collection, Query query, String[] includes, Int32 skip, Int32 limit)+MoveNext() at LiteDB.LiteCollection1.Find(Query query, Int32 skip, Int32 limit)+MoveNext() at System.Linq.Enumerable.SingleOrDefault[TSource](IEnumerable1 source) at LiteDB.LiteCollection1.FindById(BsonValue id) at TS3AudioBot.Sessions.TokenManager.GetToken(String authId) at TS3AudioBot.Web.Api.WebApi.Authenticate(HttpRequest request) at TS3AudioBot.Web.Api.WebApi.ProcessApiV1Call(HttpContext context) at NLog.Logger.SwallowAsync(Func1 asyncAction)