codeproject / CodeProject.AI-Server

CodeProject.AI Server is a self contained service that software developers can include in, and distribute with, their applications in order to augment their apps with the power of AI.
Other
605 stars 141 forks source link

Ai timeout #5

Closed rbflurry closed 1 year ago

rbflurry commented 2 years ago

After running in docker for a while and feeding images from Blue Iris, All requests start to fail and the container logs show the below.

Sometimes it will run for a week other times just a few days,

warn: Microsoft.AspNetCore.Server.Kestrel[22]
      As of "08/07/2022 16:43:22 +00:00", the heartbeat has been running for "00:00:10.1152513" which is longer than "00:00:01". This could be caused by thread pool starvation.
warn: Microsoft.AspNetCore.Server.Kestrel[22]
      As of "08/07/2022 16:43:45 +00:00", the heartbeat has been running for "00:00:02.0738044" which is longer than "00:00:01". This could be caused by thread pool starvation.
warn: Microsoft.AspNetCore.Server.Kestrel[22]
      As of "08/07/2022 16:44:03 +00:00", the heartbeat has been running for "00:00:04.8811851" which is longer than "00:00:01". This could be caused by thread pool starvation.
warn: Microsoft.AspNetCore.Server.Kestrel[22]
      As of "08/07/2022 16:44:22 +00:00", the heartbeat has been running for "00:00:04.4019440" which is longer than "00:00:01". This could be caused by thread pool starvation.
warn: Microsoft.AspNetCore.Server.Kestrel[22]
      As of "08/07/2022 16:44:37 +00:00", the heartbeat has been running for "00:00:05.3878494" which is longer than "00:00:01". This could be caused by thread pool starvation.
warn: Microsoft.AspNetCore.Server.Kestrel[22]
      As of "08/07/2022 16:44:55 +00:00", the heartbeat has been running for "00:00:01.7690185" which is longer than "00:00:01". This could be caused by thread pool starvation.
warn: Microsoft.AspNetCore.Server.Kestrel[22]
ChrisMaunder commented 1 year ago

What's your OS and hardware setup?

rbflurry commented 1 year ago

Thanks Chris. This ended up being lack of ram.