Skip to content

Native images missing? #25

@chrisvanderpennen

Description

@chrisvanderpennen

While investigating why a PowerShell healthcheck script consisting solely of iwr http://localhost/health -usebasic took three seconds and a full CPU core to execute, I discovered the .NET 4.7 container doesn't seem to have valid native images for framework assemblies. Running ngen update from inside the container built new images from mscorlib up, and reduced the script time to about 200ms.

Is it possible to have these either built into the base image, or background generated on container start?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions