Hi @Tomáš Smola
It's possible that the increased memory usage and number of sampling profiling sessions you are seeing in your dev environment with App Insights Profiler is due to the differences in the environment compared to your local development environment. Here are a few things you can check to troubleshoot the issue:
Check the resource limits for your Kubernetes cluster. If the cluster does not have enough resources (CPU, memory, etc.) to support the App Insights Profiler, it may cause performance issues and increased memory usage.
Verify that the App Insights Profiler is configured correctly in your Kubernetes environment. Make sure that the environment variables and configuration settings are set correctly and that the profiler is running as expected.
Check the logs and metrics for your Kubernetes environment to see if there are any issues or errors related to the App Insights Profiler. You can use tools like Kibana or Grafana to view the logs and metrics.
Verify that the sampling rate for the App Insights Profiler is set correctly. If the sampling rate is too high, it can cause excessive profiling sessions and increased memory usage. You can adjust the sampling rate by setting the APPLICATIONINSIGHTS_PROFILER_SAMPLING_RATE
environment variable.
- Consider using other profiling tools or techniques to diagnose performance issues in your Kubernetes environment. App Insights Profiler is just one tool that you can use to diagnose performance issues, and it may not be the best tool for every situation.
If you have any further queries, do let us know. If the Answer is helpful, please click "Accept Answer".