Dotnet 3.1 application incorrectly reports processor count

Solution In Progress - Updated -

Environment

.NET 3.1 application, running in a container

Issue

Dotnet 3.1 reports incorrect values for Environment.ProcessorCount in a container.

Resolution

This is a design decision, currently under discussion.

The article at [1] will have current information.

[1] https://github.com/dotnet/runtime/issues/622

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.