What is the correct way to stop the remote agent?

Questions about YourKit .NET Profiler
Post Reply
eriksquires
Posts: 7
Joined: Mon Sep 24, 2012 7:31 pm

What is the correct way to stop the remote agent?

Post by eriksquires »

In testing with remote IIS applications, it seems like I keep leaving the agent running after I have disconnected, soaking up CPU until the DLL is renamed or deregistered. I go through the three icons (CPU, Memory, Excpetions) and stop them, but it seems the agent keeps running.

What is the 100% guaranteed to be OFF method for this?

Thanks!


Erik
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Re: What is the correct way to stop the remote agent?

Post by Anton Katilin »

Hello Erik

You can't unload the agent, but it is not necessary to unload it.

When you do not have profiling running, there should be no overhead:
http://www.yourkit.com/docs/net70/help/overhead.jsp
I go through the three icons (CPU, Memory, Excpetions) and stop them
You can also turn off thread stack telemetry:
http://www.yourkit.com/docs/net70/help/threads.jsp

The remaining telemetry (CPU and memory graphs, handles) overhead is absolutely negligible.
soaking up CPU
Could you please provide detail. Do you observe abnormal CPU usage of the process which you attribute to the presence of the profiler agent?

Best regards,
Anton
eriksquires
Posts: 7
Joined: Mon Sep 24, 2012 7:31 pm

Re: What is the correct way to stop the remote agent?

Post by eriksquires »

So, when you say
When you do not have profiling running
Do you mean that the client display is disconnected, or do you mean when I've clicked all the stop icons?

I'm pretty sure that I had clicked stop on everything, but I'll recheck. We have Cacti running, so for sure we had very high CPU. I was 90% sure I turned everything off via the GUI and then disconnected.

Thanks,


Erik
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Re: What is the correct way to stop the remote agent?

Post by Anton Katilin »

Hello Erik
do you mean when I've clicked all the stop icons?
I mean this one: when the profiling modes are off.
I'm pretty sure that I had clicked stop on everything, but I'll recheck.
Please let us know of the results.

If there is still an overhead, could you please provide us with the following files:
- a performance snapshot of that application (*.snapshot file) captured at the moment when everything is off but CPU usage is abnormal;
- the profiler agent log file <profiled application's user's home>\.ynp\log\<profiled application PID>.log

Could you please zip them and send attached to [email protected]

Best regards,
Anton
eriksquires
Posts: 7
Joined: Mon Sep 24, 2012 7:31 pm

Re: What is the correct way to stop the remote agent?

Post by eriksquires »

There is a lack of understanding on my part which is the heart of the problem. You say:
I mean this one: when the profiling modes are off.
And how, exactly, do I achieve that? Is it enough to click the stop icons for CPU, Memory, Threat Tracing and Exception Telemetry or do I need to disable the system variables and restart the application or host?

Thank you,


Erik
eriksquires
Posts: 7
Joined: Mon Sep 24, 2012 7:31 pm

Re: What is the correct way to stop the remote agent?

Post by eriksquires »

Please remember, my problem is that I think profiling is off, but it doesn't seem to be (from CPU analysis). I could have made a mistake, so I am trying to understand 100% how to turn them off. THEN I can tell if there is a problem after.

Thank you,


Erik
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Re: What is the correct way to stop the remote agent?

Post by Anton Katilin »

Is it enough to click the stop icons for CPU, Memory, Threat Tracing and Exception Telemetry
Yes, it should be enough.
Post Reply