c# - Service Fabric ASP.NET core website stops working after running for multiple days -


i have azure service fabric cluster. statefull service , stateless service. stateless service public facing asp.net core website. multiple sql connection strings , connection azure storage account.

when runs longer time (multiple days), hangs , i'm unable identify problem.

when restart (from sf cluster dashboard) node running service. starts working again.

in logs of asp.net core application last log. don't know

system.argumentexception: offset , length out of bounds array or count greater number of elements index end of source collection. @ system.arraysegment`1..ctor(t[] array, int32 offset, int32 count) @ microsoft.net.http.server.rawurlhelper.getpath(byte[] raw) @ microsoft.net.http.server.requesturibuilder.decodeandunescapepath(byte[] rawurlbytes) @ microsoft.net.http.server.request..ctor(requestcontext requestcontext, nativerequestcontext nativerequestcontext) @ microsoft.net.http.server.requestcontext..ctor(weblistener server, nativerequestcontext memoryblob) @ microsoft.net.http.server.asyncacceptcontext.iocompleted(asyncacceptcontext asyncresult, uint32 errorcode, uint32 numbytes) --- end of stack trace previous location exception thrown --- @ system.runtime.compilerservices.taskawaiter.throwfornonsuccess(task task) @ system.runtime.compilerservices.taskawaiter.handlenonsuccessanddebuggernotification(task task) @ microsoft.aspnetcore.server.weblistener.messagepump.d__22.movenext()

in event viewer (application, servicefabric admin, service fabric operational) of node running service nothing out of ordinary. happend multiple times.

is there place can find more internal logging? or error comes from?

my code run asp.net core looks this:

 protected override ienumerable createserviceinstancelisteners() {     return new serviceinstancelistener[]     {         new serviceinstancelistener(servicecontext =>             new weblistenercommunicationlistener(servicecontext, "serviceendpoint", (url, listener) =>             {                 serviceeventsource.current.servicemessage(servicecontext, $"starting weblistener on {url}");                  return new webhostbuilder().useweblistener()                             .configureservices(                                 services => services                                     .addsingleton(servicecontext))                             .usecontentroot(directory.getcurrentdirectory())                             .usestartup()                             .useapplicationinsights()                             .useservicefabricintegration(listener, servicefabricintegrationoptions.none)                             .useurls(url)                             .build();             }))     };


Comments

Popular posts from this blog

Sort a complex associative array in PHP -

vb.net - How to ignore if a cell is empty nothing -

recursion - Can every recursive algorithm be improved with dynamic programming? -