Hi,
When we run powershell.exe in one of the server where dynatrace .net agent is installed we are getting the following message.
[native] No Registry-Settings exist for this process
[native] Agent has no active settings - running normally
We dont have the agent configured to monitor the powershell process, wonder why is the agent trying to profile the powershell process.
Is this a know issue or is this how the .net agent works, i couldn't find nay details in the documentation on this.
-Sreerag
Answer by Ted F. ·
Hey Sreerag,
You can set the environnment variable DT_DISABLEINITIALLOGGING=true globally. It suppresses logging of processes which are not supposed to be instrumented. I thought there's a KB article on it but I couldn't find it quickly - however my quick search at least brought up this other forum post.
thanks,
ted
Answer by Ted F. ·
Update - I did find the KB article, but it is out of date. But, I checked the documentation and the DT_DISABLEINITIALLOGGING env var is detailed on this page.
===ted
Thanks Ted for the quick reply.
As i understand the setting will disable the Initial Logging which might work for us; Also would like to know if it is right to say that the agent checks every process(only .net?) to see if they have a valid configuration or not.
Hi Sreerag
When a .NET process starts and the registry key COR_PROFILER and COR_ENABLEPROFILING is set the .NET CLR will load the dynaTrace Agent in the process. Typically these two env variables are set system wide -> therefore the agent is loaded for every .net process. When it loads it checks whether there is an active configuration. It does so by looking in the registry (this is where the .NET Agent Config Tool stores the settings) - and also looks at additional env variables that you can also use to configure the process.
So - to answer your question: YES - the agent is typically loaded into every .NET Proceses and then verifies during startup if it should be active or not
Thanks Andi, that answers a lot. It is always good to know how things work.
happy to help - keep asking
BTW - I am still hoping for some good stories from you that we can use for the blog
JANUARY 15, 3:00 PM GMT / 10:00 AM ET