Closed thangchung closed 2 years ago
That error suggest you are out of memory @thangchung . check out https://github.com/dotnet/runtime/issues/13027
@wfurt I had already investigated the issue on https://github.com/dotnet/runtime/issues/13027, but no luck. The docker-in-docker
on devcontainer
gets 64 GB of RAM on my host machine. I convert the application to .NET 6 and run on the same environment, then it worked
. So I think some are optimized on .NET 7 caused this issue.
Any idea how to diagnose this better @janvorli ?
The same issue happened to .NET 7 RC1, just released.
I suspect that openssl v3
caused this issue because when I have a look at the logs, I can see something related to the signature of dlls. See below
etCore.App/7.0.0-rc.1.22427.2], probe fx level:1, entry fx level:2
Skipping... not found in deps json.
Skipping... not found in probe dir '/usr/share/dotnet/shared/Microsoft.AspNetCore.App/7.0.0-rc.1.22427.2'
Considering entry [Microsoft.NETCore.App.Runtime.linux-x64/7.0.0-rc.1.22426.10/libclrgc.so], probe dir [/usr/share/dotnet/shared/Microsoft.NETCore.App/7.0.0-rc.1.22426.10], probe fx level:2, entry fx level:2
Local path query /usr/share/dotnet/shared/Microsoft.NETCore.App/7.0.0-rc.1.22426.10/libclrgc.so (skipped file existence check)
Probed deps json and matched '/usr/share/dotnet/shared/Microsoft.NETCore.App/7.0.0-rc.1.22426.10/libclrgc.so'
Processing native/culture for deps entry [Microsoft.NETCore.App.Runtime.linux-x64, 7.0.0-rc.1.22426.10, libclrjit.so]
Considering entry [Microsoft.NETCore.App.Runtime.linux-x64/7.0.0-rc.1.22426.10/libclrjit.so], probe dir [], probe fx level:0, entry fx level:2
Skipping... not found in deps dir '/usr/share/dotnet/shared/Microsoft.NETCore.App/7.0.0-rc.1.22426.10'
Skipping... not found in probe dir ''
Considering entry [Microsoft.NETCore.App.Runtime.linux-x64/7.0.0-rc.1.22426.10/libclrjit.so], probe dir [/usr/share/dotnet/shared/Microsoft.AspNetCore.App/7.0.0-rc.1.22427.2], probe fx level:1, entry fx level:2
Skipping... not found in deps json.
Skipping... not found in probe dir '/usr/share/dotnet/shared/Microsoft.AspNetCore.App/7.0.0-rc.1.22427.2'
Considering entry [Microsoft.NETCore.App.Runtime.linux-x64/7.0.0-rc.1.22426.10/libclrjit.so], probe dir [/usr/share/dotnet/shared/Microsoft.NETCore.App/7.0.0-rc.1.22426.10], probe fx level:2, entry fx level:2
Local path query /usr/share/dotnet/shared/Microsoft.NETCore.App/7.0.0-rc.1.22426.10/libclrjit.so (skipped file existence check)
Probed deps json and matched '/usr/share/dotnet/shared/Microsoft.NETCore.App/7.0.0-rc.1.22426.10/libclrjit.so'
Processing native/culture for deps entry [Microsoft.NETCore.App.Runtime.linux-x64, 7.0.0-rc.1.22426.10, libcoreclr.so]
Considering entry [Microsoft.NETCore.App.Runtime.linux-x64/7.0.0-rc.1.22426.10/libcoreclr.so], probe dir [], probe fx level:0, entry fx level:2
Skipping... not found in deps dir '/usr/share/dotnet/shared/Microsoft.NETCore.App/7.0.0-rc.1.22426.10'
Skipping... not found in probe dir ''
Considering entry [Microsoft.NETCore.App.Runtime.linux-x64/7.0.0-rc.1.22426.10/libcoreclr.so], probe dir [/usr/share/dotnet/shared/Microsoft.AspNetCore.App/7.0.0-rc.1.22427.2], probe fx level:1, entry fx level:2
Skipping... not found in deps json.
Skipping... not found in probe dir '/usr/share/dotnet/shared/Microsoft.AspNetCore.App/7.0.0-rc.1.22427.2'
Considering entry [Microsoft.NETCore.App.Runtime.linux-x64/7.0.0-rc.1.22426.10/libcoreclr.so], probe dir [/usr/share/dotnet/shared/Microsoft.NETCore.App/7.0.0-rc.1.22426.10], probe fx level:2, entry fx level:2
Local path query /usr/share/dotnet/shared/Microsoft.NETCore.App/7.0.0-rc.1.22426.10/libcoreclr.so (skipped file existence check)
Probed deps json and matched '/usr/share/dotnet/shared/Microsoft.NETCore.App/7.0.0-rc.1.22426.10/libcoreclr.so'
Processing native/culture for deps entry [Microsoft.NETCore.App.Runtime.linux-x64, 7.0.0-rc.1.22426.10, libcoreclrtraceptprovider.so]
Considering entry [Microsoft.NETCore.App.Runtime.linux-x64/7.0.0-rc.1.22426.10/libcoreclrtraceptprovider.so], probe dir [], probe fx level:0, entry fx level:2
Skipping... not found in deps dir '/usr/share/dotnet/shared/Microsoft.NETCore.App/7.0.0-rc.1.22426.10'
Skipping... not found in probe dir ''
Considering entry [Microsoft.NETCore.App.Runtime.linux-x64/7.0.0-rc.1.22426.10/libcoreclrtraceptprovider.so], probe dir [/usr/share/dotnet/shared/Microsoft.AspNetCore.App/7.0.0-rc.1.22427.2], probe fx level:1, entry fx level:2
Skipping... not found in deps json.
Skipping... not found in probe dir '/usr/share/dotnet/shared/Microsoft.AspNetCore.App/7.0.0-rc.1.22427.2'
Considering entry [Microsoft.NETCore.App.Runtime.linux-x64/7.0.0-rc.1.22426.10/libcoreclrtraceptprovider.so], probe dir [/usr/share/dotnet/shared/Microsoft.NETCore.App/7.0.0-rc.1.22426.10], probe fx level:2, entry fx level:2
Local path query /usr/share/dotnet/shared/Microsoft.NETCore.App/7.0.0-rc.1.22426.10/libcoreclrtraceptprovider.so (skipped file existence check)
Probed deps json and matched '/usr/share/dotnet/shared/Microsoft.NETCore.App/7.0.0-rc.1.22426.10/libcoreclrtraceptprovider.so'
Processing native/culture for deps entry [Microsoft.NETCore.App.Runtime.linux-x64, 7.0.0-rc.1.22426.10, libmscordaccore.so]
Considering entry [Microsoft.NETCore.App.Runtime.linux-x64/7.0.0-rc.1.22426.10/libmscordaccore.so], probe dir [], probe fx level:0, entry fx level:2
Skipping... not found in deps dir '/usr/share/dotnet/shared/Microsoft.NETCore.App/7.0.0-rc.1.22426.10'
Skipping... not found in probe dir ''
Considering entry [Microsoft.NETCore.App.Runtime.linux-x64/7.0.0-rc.1.22426.10/libmscordaccore.so], probe dir [/usr/share/dotnet/shared/Microsoft.AspNetCore.App/7.0.0-rc.1.22427.2], probe fx level:1, entry fx level:2
Skipping... not found in deps json.
Skipping... not found in probe dir '/usr/share/dotnet/shared/Microsoft.AspNetCore.App/7.0.0-rc.1.22427.2'
Considering entry [Microsoft.NETCore.App.Runtime.linux-x64/7.0.0-rc.1.22426.10/libmscordaccore.so], probe dir [/usr/share/dotnet/shared/Microsoft.NETCore.App/7.0.0-rc.1.22426.10], probe fx level:2, entry fx level:2
Local path query /usr/share/dotnet/shared/Microsoft.NETCore.App/7.0.0-rc.1.22426.10/libmscordaccore.so (skipped file existence check)
Probed deps json and matched '/usr/share/dotnet/shared/Microsoft.NETCore.App/7.0.0-rc.1.22426.10/libmscordaccore.so'
Processing native/culture for deps entry [Microsoft.NETCore.App.Runtime.linux-x64, 7.0.0-rc.1.22426.10, libmscordbi.so]
Considering entry [Microsoft.NETCore.App.Runtime.linux-x64/7.0.0-rc.1.22426.10/libmscordbi.so], probe dir [], probe fx level:0, entry fx level:2
Skipping... not found in deps dir '/usr/share/dotnet/shared/Microsoft.NETCore.App/7.0.0-rc.1.22426.10'
Skipping... not found in probe dir ''
Considering entry [Microsoft.NETCore.App.Runtime.linux-x64/7.0.0-rc.1.22426.10/libmscordbi.so], probe dir [/usr/share/dotnet/shared/Microsoft.AspNetCore.App/7.0.0-rc.1.22427.2], probe fx level:1, entry fx level:2
Skipping... not found in deps json.
Skipping... not found in probe dir '/usr/share/dotnet/shared/Microsoft.AspNetCore.App/7.0.0-rc.1.22427.2'
Considering entry [Microsoft.NETCore.App.Runtime.linux-x64/7.0.0-rc.1.22426.10/libmscordbi.so], probe dir [/usr/share/dotnet/shared/Microsoft.NETCore.App/7.0.0-rc.1.22426.10], probe fx level:2, entry fx level:2
Local path query /usr/share/dotnet/shared/Microsoft.NETCore.App/7.0.0-rc.1.22426.10/libmscordbi.so (skipped file existence check)
Probed deps json and matched '/usr/share/dotnet/shared/Microsoft.NETCore.App/7.0.0-rc.1.22426.10/libmscordbi.so'
Processing native/culture for deps entry [Microsoft.NETCore.App.Runtime.linux-x64, 7.0.0-rc.1.22426.10, libSystem.Globalization.Native.so]
Considering entry [Microsoft.NETCore.App.Runtime.linux-x64/7.0.0-rc.1.22426.10/libSystem.Globalization.Native.so], probe dir [], probe fx level:0, entry fx level:2
Skipping... not found in deps dir '/usr/share/dotnet/shared/Microsoft.NETCore.App/7.0.0-rc.1.22426.10'
Skipping... not found in probe dir ''
Considering entry [Microsoft.NETCore.App.Runtime.linux-x64/7.0.0-rc.1.22426.10/libSystem.Globalization.Native.so], probe dir [/usr/share/dotnet/shared/Microsoft.AspNetCore.App/7.0.0-rc.1.22427.2], probe fx level:1, entry fx level:2
Skipping... not found in deps json.
Skipping... not found in probe dir '/usr/share/dotnet/shared/Microsoft.AspNetCore.App/7.0.0-rc.1.22427.2'
Considering entry [Microsoft.NETCore.App.Runtime.linux-x64/7.0.0-rc.1.22426.10/libSystem.Globalization.Native.so], probe dir [/usr/share/dotnet/shared/Microsoft.NETCore.App/7.0.0-rc.1.22426.10], probe fx level:2, entry fx level:2
Local path query /usr/share/dotnet/shared/Microsoft.NETCore.App/7.0.0-rc.1.22426.10/libSystem.Globalization.Native.so (skipped file existence check)
Probed deps json and matched '/usr/share/dotnet/shared/Microsoft.NETCore.App/7.0.0-rc.1.22426.10/libSystem.Globalization.Native.so'
Processing native/culture for deps entry [Microsoft.NETCore.App.Runtime.linux-x64, 7.0.0-rc.1.22426.10, libSystem.IO.Compression.Native.so]
Considering entry [Microsoft.NETCore.App.Runtime.linux-x64/7.0.0-rc.1.22426.10/libSystem.IO.Compression.Native.so], probe dir [], probe fx level:0, entry fx level:2
Skipping... not found in deps dir '/usr/share/dotnet/shared/Microsoft.NETCore.App/7.0.0-rc.1.22426.10'
Skipping... not found in probe dir ''
Considering entry [Microsoft.NETCore.App.Runtime.linux-x64/7.0.0-rc.1.22426.10/libSystem.IO.Compression.Native.so], probe dir [/usr/share/dotnet/shared/Microsoft.AspNetCore.App/7.0.0-rc.1.22427.2], probe fx level:1, entry fx level:2
Skipping... not found in deps json.
Skipping... not found in probe dir '/usr/share/dotnet/shared/Microsoft.AspNetCore.App/7.0.0-rc.1.22427.2'
Considering entry [Microsoft.NETCore.App.Runtime.linux-x64/7.0.0-rc.1.22426.10/libSystem.IO.Compression.Native.so], probe dir [/usr/share/dotnet/shared/Microsoft.NETCore.App/7.0.0-rc.1.22426.10], probe fx level:2, entry fx level:2
Local path query /usr/share/dotnet/shared/Microsoft.NETCore.App/7.0.0-rc.1.22426.10/libSystem.IO.Compression.Native.so (skipped file existence check)
Probed deps json and matched '/usr/share/dotnet/shared/Microsoft.NETCore.App/7.0.0-rc.1.22426.10/libSystem.IO.Compression.Native.so'
Processing native/culture for deps entry [Microsoft.NETCore.App.Runtime.linux-x64, 7.0.0-rc.1.22426.10, libSystem.Native.so]
Considering entry [Microsoft.NETCore.App.Runtime.linux-x64/7.0.0-rc.1.22426.10/libSystem.Native.so], probe dir [], probe fx level:0, entry fx level:2
Skipping... not found in deps dir '/usr/share/dotnet/shared/Microsoft.NETCore.App/7.0.0-rc.1.22426.10'
Skipping... not found in probe dir ''
Considering entry [Microsoft.NETCore.App.Runtime.linux-x64/7.0.0-rc.1.22426.10/libSystem.Native.so], probe dir [/usr/share/dotnet/shared/Microsoft.AspNetCore.App/7.0.0-rc.1.22427.2], probe fx level:1, entry fx level:2
Skipping... not found in deps json.
Skipping... not found in probe dir '/usr/share/dotnet/shared/Microsoft.AspNetCore.App/7.0.0-rc.1.22427.2'
Considering entry [Microsoft.NETCore.App.Runtime.linux-x64/7.0.0-rc.1.22426.10/libSystem.Native.so], probe dir [/usr/share/dotnet/shared/Microsoft.NETCore.App/7.0.0-rc.1.22426.10], probe fx level:2, entry fx level:2
Local path query /usr/share/dotnet/shared/Microsoft.NETCore.App/7.0.0-rc.1.22426.10/libSystem.Native.so (skipped file existence check)
Probed deps json and matched '/usr/share/dotnet/shared/Microsoft.NETCore.App/7.0.0-rc.1.22426.10/libSystem.Native.so'
Processing native/culture for deps entry [Microsoft.NETCore.App.Runtime.linux-x64, 7.0.0-rc.1.22426.10, libSystem.Net.Security.Native.so]
Considering entry [Microsoft.NETCore.App.Runtime.linux-x64/7.0.0-rc.1.22426.10/libSystem.Net.Security.Native.so], probe dir [], probe fx level:0, entry fx level:2
Skipping... not found in deps dir '/usr/share/dotnet/shared/Microsoft.NETCore.App/7.0.0-rc.1.22426.10'
Skipping... not found in probe dir ''
Considering entry [Microsoft.NETCore.App.Runtime.linux-x64/7.0.0-rc.1.22426.10/libSystem.Net.Security.Native.so], probe dir [/usr/share/dotnet/shared/Microsoft.AspNetCore.App/7.0.0-rc.1.22427.2], probe fx level:1, entry fx level:2
Skipping... not found in deps json.
Skipping... not found in probe dir '/usr/share/dotnet/shared/Microsoft.AspNetCore.App/7.0.0-rc.1.22427.2'
Considering entry [Microsoft.NETCore.App.Runtime.linux-x64/7.0.0-rc.1.22426.10/libSystem.Net.Security.Native.so], probe dir [/usr/share/dotnet/shared/Microsoft.NETCore.App/7.0.0-rc.1.22426.10], probe fx level:2, entry fx level:2
Local path query /usr/share/dotnet/shared/Microsoft.NETCore.App/7.0.0-rc.1.22426.10/libSystem.Net.Security.Native.so (skipped file existence check)
Probed deps json and matched '/usr/share/dotnet/shared/Microsoft.NETCore.App/7.0.0-rc.1.22426.10/libSystem.Net.Security.Native.so'
Processing native/culture for deps entry [Microsoft.NETCore.App.Runtime.linux-x64, 7.0.0-rc.1.22426.10, libSystem.Security.Cryptography.Native.OpenSsl.so]
Considering entry [Microsoft.NETCore.App.Runtime.linux-x64/7.0.0-rc.1.22426.10/libSystem.Security.Cryptography.Native.OpenSsl.so], probe dir [], probe fx level:0, entry fx level:2
Skipping... not found in deps dir '/usr/share/dotnet/shared/Microsoft.NETCore.App/7.0.0-rc.1.22426.10'
Skipping... not found in probe dir ''
Considering entry [Microsoft.NETCore.App.Runtime.linux-x64/7.0.0-rc.1.22426.10/libSystem.Security.Cryptography.Native.OpenSsl.so], probe dir [/usr/share/dotnet/shared/Microsoft.AspNetCore.App/7.0.0-rc.1.22427.2], probe fx level:1, entry fx level:2
Skipping... not found in deps json.
Skipping... not found in probe dir '/usr/share/dotnet/shared/Microsoft.AspNetCore.App/7.0.0-rc.1.22427.2'
Considering entry [Microsoft.NETCore.App.Runtime.linux-x64/7.0.0-rc.1.22426.10/libSystem.Security.Cryptography.Native.OpenSsl.so], probe dir [/usr/share/dotnet/shared/Microsoft.NETCore.App/7.0.0-rc.1.22426.10], probe fx level:2, entry fx level:2
Local path query /usr/share/dotnet/shared/Microsoft.NETCore.App/7.0.0-rc.1.22426.10/libSystem.Security.Cryptography.Native.OpenSsl.so (skipped file existence check)
Probed deps json and matched '/usr/share/dotnet/shared/Microsoft.NETCore.App/7.0.0-rc.1.22426.10/libSystem.Security.Cryptography.Native.OpenSsl.so'
Processing native/culture for deps entry [Microsoft.NETCore.App.Runtime.linux-x64, 7.0.0-rc.1.22426.10, libhostpolicy.so]
Considering entry [Microsoft.NETCore.App.Runtime.linux-x64/7.0.0-rc.1.22426.10/libhostpolicy.so], probe dir [], probe fx level:0, entry fx level:2
Skipping... not found in deps dir '/usr/share/dotnet/shared/Microsoft.NETCore.App/7.0.0-rc.1.22426.10'
Skipping... not found in probe dir ''
Considering entry [Microsoft.NETCore.App.Runtime.linux-x64/7.0.0-rc.1.22426.10/libhostpolicy.so], probe dir [/usr/share/dotnet/shared/Microsoft.AspNetCore.App/7.0.0-rc.1.22427.2], probe fx level:1, entry fx level:2
Skipping... not found in deps json.
Skipping... not found in probe dir '/usr/share/dotnet/shared/Microsoft.AspNetCore.App/7.0.0-rc.1.22427.2'
Considering entry [Microsoft.NETCore.App.Runtime.linux-x64/7.0.0-rc.1.22426.10/libhostpolicy.so], probe dir [/usr/share/dotnet/shared/Microsoft.NETCore.App/7.0.0-rc.1.22426.10], probe fx level:2, entry fx level:2
Local path query /usr/share/dotnet/shared/Microsoft.NETCore.App/7.0.0-rc.1.22426.10/libhostpolicy.so (skipped file existence check)
Probed deps json and matched '/usr/share/dotnet/shared/Microsoft.NETCore.App/7.0.0-rc.1.22426.10/libhostpolicy.so'
Property System.Reflection.NullabilityInfoContext.IsSupported = true
Property System.Reflection.Metadata.MetadataUpdater.IsSupported = false
Property System.GC.Server = true
Property RUNTIME_IDENTIFIER = debian.11-x64
Property System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization = false
Property FX_DEPS_FILE = /usr/share/dotnet/shared/Microsoft.NETCore.App/7.0.0-rc.1.22426.10/Microsoft.NETCore.App.deps.json
Property APP_CONTEXT_DEPS_FILES = /app/ProductService.deps.json;/usr/share/dotnet/shared/Microsoft.AspNetCore.App/7.0.0-rc.1.22427.2/Microsoft.AspNetCore.App.deps.json;/usr/share/dotnet/shared/Microsoft.NETCore.App/7.0.0-rc.1.22426.10/Microsoft.NETCore.App.deps.json
Property APP_CONTEXT_BASE_DIRECTORY = /app/
Property PLATFORM_RESOURCE_ROOTS =
Property PROBING_DIRECTORIES =
Property NATIVE_DLL_SEARCH_DIRECTORIES = /usr/share/dotnet/shared/Microsoft.NETCore.App/7.0.0-rc.1.22426.10/:
Property TRUSTED_PLATFORM_ASSEMBLIES = /usr/share/dotnet/shared/Microsoft.NETCore.App/7.0.0-rc.1.22426.10/System.Xml.XPath.XDocument.dll:/usr/share/dotnet/shared/Microsoft.NETCore.App/7.0.0-rc.1.22426.10/System.Threading.Tasks.Parallel.dll:/usr/share/dotnet/shared/Microsoft.NETCore.App/7.0.0-rc.1.22426.10/System.Threading.Tasks.Dataflow.dll:/usr/share/dotnet/shared/Microsoft.NETCore.App/7.0.0-rc.1.22426.10/
The same error happened for both Debian
and Ubuntu
images. Could anyone investigate it?
I don't think OpenSSL as at pay at this time. e.g. it iOS loaded after runtime start if needed. cc: @vitek-karas @janvorli for more insight.
I have the same issue, I have a simple generated API project with /WeatherForecast
.
When I run docker container with a memory limit of lower than 512m
on dotnet7.rc1
, I got Failed to create CoreCLR, HRESULT: 0x8007000E
error.
When I use dotnet6, I can run the container with a minimum of 10m
Hi @thangchung @emaung , could you please provide the full docker config? Looks like you are running with a low memory limit, but would be good to know what CPU limit is specified? Thx
Also this should be trasferred over to the runtime repo. Thx.
I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.
Tagging subscribers to this area: @dotnet/gc See info in area-owners.md if you want to be subscribed.
Author: | thangchung |
---|---|
Assignees: | - |
Labels: | `area-GC-coreclr` |
Milestone: | - |
Fyi.. @cshung
I am not familiar with the docker in docker thing, but if we could come up with a workflow that allows me to replace the libcoreclr.so
, I might be able to diagnose what is going wrong there.
we have looked into this and does appear to be an issue with unbounded CPUs. Keeping the cores (specifically # of heaps) for server GC limited is the preferred way for smaller containers. Thx.
Hi @mangod9 thanks for looking into it.
I have re-run the test with cpu set to 1 and it works. Is that mean we can't use cpu-shares?
This works
docker run -it --rm -p 5000:80 --cpus 1 --memory 64m --name test test
This does not work
docker run -it --rm -p 5000:80 -c 100 --memory 64m --name test test
the main issue is that with an unbounded CPU config, the GC creates as many Heaps as there are cores. So for low memory situations some checks to ensure that each heap has enough space for the various generations is now failing (in .NET 7 with regions enabled this situation has exaggerated -- we are looking into how best to get it close to .NET 6).
cpu-shares doesnt actually constraint how many cpu cores the container actually gets. If you need to use cpu-shares, you could explicitly configure the number of heaps to something smaller using the config documented here: https://github.com/dotnet/designs/blob/main/accepted/2019/support-for-memory-limits.md#gc-heap-count
This seems like regression that will cause issues in the field @mangod9 ....
yeah we are evaluating how to mitigate, but overall using a reasonable CPU limit along with low memory limits is generally preferred anyways.
Hi @thangchung . Just want to ensure we are discussing the same issue here (since there is mention of something related to OpenSSL above). I am trying to fix the issue where containers with memory limits but unbound cpu is failing for ~<512mb of memory. We should rename the issue for clarity (or create a separate one so the original issue can be looked into). Thx
Hi @thangchung . Just want to ensure we are discussing the same issue here (since there is mention of something related to OpenSSL above). I am trying to fix the issue where containers with memory limits but unbound cpu is failing for ~<512mb of memory. We should rename the issue for clarity (or create a separate one so the original issue can be looked into). Thx
Yes, I think that is related to the memory limits but unbound cpu is failing for ~<512mb of memory
issue. I have seen you fixed this, but wonder when it will be released in .NET 7 so that I can grab the fixed version to help it run again to make sure it is fixed with low memory as I mentioned above at the beginning of this issue.
Will it be released immediately after https://github.com/dotnet/runtime/pull/76588 is merged?
Ok updated the title, hoping to have the fix available in .NET 7 GA release. For now you can perhaps workaround by setting a reasonable cpu limit.
Description
I used
devcontainer
onvscode
to create theUbuntu 20.4
withdocker in docker
approach. I packaged the .NET 7 Preview 7 application into the docker container. When I run its image inside devcontainer, then it keeps silent. Then I put the variablesCOREHOST_TRACE = 1
. Then I see a lot of exceptions there. See belowI expect it can run normally, because when I created the Azure VM (Ubuntu 20.4 distro), no problems with this Docker image. It can run on Azure VM (Ubuntu 20.4) normally.
Configuration
7.0.100-preview.7.22377.57.0.100-preview.7.22377.5
And just the same distro info on Azure Ubuntu 20.4 box as below
Other information
When I type
uname -a
on the devcontainer box, I see the information likeBut when I type the same command on the Azure VM - Ubuntu 20.4 box, I see different:
I just wonder that, is it caused this exception because of the different of OS distro on two boxes? Any one can help me to solve this issue?
The source code can be found at https://github.com/thangchung/coffeeshop-on-nomad My Dockerfile: https://github.com/thangchung/coffeeshop-on-nomad/blob/main/src/ProductService/Dockerfile