Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WinHttpException: Not enough storage is available to process this command #23598

Closed
davidkaya opened this issue Sep 19, 2017 · 3 comments
Closed

Comments

@davidkaya
Copy link
Contributor

Hello,

I have an ASP.Net Core 2.0 server (Kestrel) on Windows Server 2016 [Standard D2s v3 (2 vcpus, 8 GB memory)] in Azure. I am trying to load test an endpoint which just sends 2 "get" and 2 "post" http requests to NoSQL database.

For load testing I use https://github.com/tsenart/vegeta from 3 computers. Throughput was approximately 15.000 rpm.

Approximately every minute it throws a lot of these exceptions and then it works correctly for a while and after some time again throws exceptions:

fail: Microsoft.AspNetCore.Server.Kestrel[13]
      Connection id "0HL7UO2PLN0UI", Request id "0HL7UO2PLN0UI:00000001": An unhandled exception was thrown by the appl
cation.
System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.Http.WinHttpExceptio
: Not enough storage is available to process this command
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Threading.Tasks.RendezvousAwaitable`1.GetResult()
   at System.Net.Http.WinHttpHandler.<StartRequest>d__105.MoveNext()
   --- End of inner exception stack trace ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
   at System.Net.Http.HttpClient.<FinishSendAsyncBuffered>d__58.MoveNext()

here are screenshots of graphs:

screen shot 2017-09-19 at 08 34 30
screen shot 2017-09-19 at 08 34 42

Is this just some mistake in configuration or is the problem somewhere else?

@davidkaya davidkaya changed the title WinHttpException every minute or so WinHttpException: Not enough storage is available to process this command Sep 19, 2017
@davidkaya
Copy link
Contributor Author

And this is the same application on Ubuntu 16.04LTS
screen shot 2017-09-19 at 10 51 32

@davidsh
Copy link
Contributor

davidsh commented Sep 19, 2017

In order to diagnose this, we need a way to repro this. It sounds like HttpClient is being called from your Kestrel server in reaction to clients accessing Kestrel? Please post the full Visual Studio solution to the Kestrel server and a way for us to repro this.

@davidsh
Copy link
Contributor

davidsh commented Nov 30, 2017

Closing for lack of info to diagnose problem.

@davidsh davidsh closed this as completed Nov 30, 2017
@msftgits msftgits transferred this issue from dotnet/corefx Jan 31, 2020
@msftgits msftgits added this to the 2.1.0 milestone Jan 31, 2020
@dotnet dotnet locked as resolved and limited conversation to collaborators Dec 20, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants