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
Docker crashes when contained app serves many large http requests #765
Comments
From the README of the linked repository: This repository will consistently crash docker for mac
Open your web browser and visit http://localhost:9090/ Docker should crash. Why does it crash?I believe it has to do with requesting many large files and breaking some of the I tracked this line down by looking at the syslog output:
Here is the longer output from
|
Thanks for your report! That issue should normally be fixed moby/hyperkit#62 and we will ship these patches in the next Beta of Docker for Mac. Would be great if you could test it when it is out (normally in the next few days) and report if it works for you or not. Thanks! |
I was able to repro the issue with 1.12.2-rc1-beta27 (12496). I tested the current docker for mac master (at commit ea06b4e124477b5c5e6371ef229cfe64effa67b8) and it didn't crash, the web browser kept spinning and the compose log filled with
Which I think is correct operation. I refreshed a few times (it seemed to be counting higher each time) and still didn't manage to crash it. So I'm going to conclude that moby/hyperkit#62 really has fixed the issue. This fix we become public in beta28. Given that I'm going to proactively close this issue, please do ping for reopen if it somehow turns out not to be fixed in beta28. |
Thank you for the prompt and detailed response. Looking forward to beta28 💃💃💃💃💃 There will be much rejoicing. |
Closed issues are locked after 30 days of inactivity. If you have found a problem that seems similar to this, please open a new issue. Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. |
Expected behavior
Docker will not crash when serving many large http requests.
Actual behavior
We have a django app in docker that serves many http requests. In local development docker will crash. Sometimes it takes many refresh cycles to trigger this crash, sometimes it happens very quickly. We can also exacerbate the issue by increasing the size of http responses.
Later in this issue report I have linked to a github repository that can be used to consistently reproduce this crash. That repository serves a single html page that includes 1000
<script>
tags that all request a ~1MB file. (In our experience docker crashes at around request 60)Information
Diagnostic ID:
3358725D-1E1F-4B4C-AFC1-BD7DA2B1B7C6
Steps to reproduce the behavior
Clone this repository: https://github.com/theonion/crash-docker and follow instructions in README.
Should see a bunch of server logging ending something like this:
The text was updated successfully, but these errors were encountered: