# .net 7 based containers

**URL:** <https://community.dynatrace.com/t/net-7-based-containers/39532>\
**Category:** Container platforms\
**Tags:** dotnet, docker\
**Created:** [May 1, 2023, 8:53am UTC](https://community.dynatrace.com/t/net-7-based-containers/39532 "2023-05-01T08:53:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tom\_taminiau](https://avatars.discourse-cdn.com/v4/letter/t/8e7dd6/32.png) [@tom\_taminiau](https://community.dynatrace.com/u/tom_taminiau)\
**Post date:** [May 1, 2023, 8:53am UTC](https://community.dynatrace.com/t/net-7-based-containers/39532/1 "2023-05-01T08:53:02Z")

</div>

Hello,

Our containers are equipped with health checks that verify communication across containers and resources (ESBs/databases) during startup. They attempt to do so only a few dozen times, with timeouts in place to ensure safety. If they continue to fail after these attempts, they shut down on their own (i.e., they give up).

This is&nbsp; behavior we observed with the old dynatrace one agent 1.261, which is why we disabled Dynatrace on our production environment. Unfortunately, after updating to the newest agent 1.263&nbsp; (with .net 7 support) we are seeing the ame behavior during tests on our acceptance environment.

Is there any additional configuration/requirements we need to do with .net 7 based containers?

If you need any additional information, please let me know.

Thanks,

Cheers,

Tom.

---

<div class="post-metadata">

**Author:** ![Gurpreet\_Juttla](https://avatars.discourse-cdn.com/v4/letter/g/90db22/32.png) [@Gurpreet\_Juttla](https://community.dynatrace.com/u/Gurpreet_Juttla)\
**Post date:** [May 19, 2023, 1:06pm UTC](https://community.dynatrace.com/t/net-7-based-containers/39532/2 "2023-05-19T13:06:56Z")

</div>

Hi

There is no additional configuration required, but too restrictive health checks and/or resource constraints can lead to container start-up issues with .NET applications.

The OneAgent .NET code module injects into the application on process start-up and when the first technology specific assembly is loaded. This whole process takes a couple of (~2-4) seconds. Too restrictive CPU limits can lead to an increase in start-up time and memory limits can generally result in the container getting OOMKilled as there is a temporarily increased memory requirement on process start-up [1]. This short delay could potentially result in failed health checks.

It would be interesting to know whether the application runs successfully outside of a containerized environment or without the health checks (and resource constraints) in order to rule out a OneAgent feature not functioning properly.

I would suggest opening a support ticket for a deeper analysis of the issue.

Best regards,  
Gurpreet

[1] [OneAgent requirements — Dynatrace Docs](https://www.dynatrace.com/support/help/setup-and-configuration/dynatrace-oneagent/memory-requirements#technology-dependent-memory-demand)
