• Forums
    • Public Forums
      • Community Connect
      • Dynatrace
        • Dynatrace Open Q&A
      • Application Monitoring & UEM
        • AppMon & UEM Open Q&A
      • Network Application Monitoring
        • NAM Open Q&A
  • Home /
  • Public Forums /
  • Application Monitoring & UEM /
  • AppMon & UEM Open Q&A /
avatar image
Question by Vlad S. · Aug 05, 2015 at 07:30 AM ·

.Net Rich Client instrumentation

Hello everybody.

Need your advise with the next.

We have .Net Rich client which communicated with .Net server application and then SQL DB. We have installed agents on Workstation and Server part. By default the agent didn't find any entry point. We founded them thanks to CPU sampling, but right now we have one PurePath like a 5-10 minutes of data (time then rich app is open). So PurePath starts after Rich application opens, and terminates then the agent has been disconnected. .NET WPF and .NET WIndows Forms sensors are enabled.

Another thing, that rich client and app server queries to the same database. We can see connection strings in PurePath and bind values, but there are information regarding no SQL statements.

 

 

 

Comment

People who like this

0 Show 1
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

avatar image Vlad S. · Aug 05, 2015 at 07:31 AM 0
Share

Mistyping in the last sentence. no information regarding SQL statements.... 

6 Replies

  • Sort: 
  • Most voted
  • Newest
  • Oldest
avatar image

Answer by Vlad S. · Aug 24, 2015 at 04:38 PM

Hi Andreas. I had something, but still cannot see all actions done by client.Developers told, they use a lot of different control methods to execute operations.

Comment

People who like this

0 Show 0 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

avatar image

Answer by Andreas G. · Aug 24, 2015 at 11:23 AM

Hi Vlad

Any updates since we left the conversation about 2 weeks ago?

Comment

People who like this

0 Show 0 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

avatar image

Answer by Vlad S. · Aug 05, 2015 at 07:36 PM

Hello Andreas!

OnClick event handler was in one PurePath session with instrumented Main Method. But I didn't share it. It is in the end of PurePath

Maybe it sounds strange, but I see no information in the Method Hotspots dashlet.

I will investigate it tomorrow and let you know regarding reluslts.

Thanks a lot for your help

Comment

People who like this

0 Show 0 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

avatar image

Answer by Andreas G. · Aug 05, 2015 at 05:29 PM

So - it seems that now dynatrace is automatically picking up the OnClick event handler. This didnt work before as you had the Main Method instrumented which already started the PurePath. Seems like the out-of-the-box sensors at least pick up some clicks. You should be able to open the GUI Controls Dashlet - this will give you an overview of user interactions (click, select, ...) on each control (button, grid, menu, ...). from there you can drill to your purepaths

In the two purepaths you sent me i can already see a lot of interesting patterns, e.g: Button.OnClick making 35 roundtrips to the backend server which makes 44 calls to SQL. The second PurePath that seems to be capturing a lot of startup activity shows that most of the time is spent in dynamically compiling C# code. I could find that by drilling from that PurePath to the Methods Hotspot dashlet. 

I suggest you keep using this set of sensors. I think the out-of-the-box will most likely work now. If you dont see all user interactions then we could explore more options on custom sensors on your UI Framework Event Handler Methods

Comment

People who like this

0 Show 0 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

avatar image

Answer by Andreas G. · Aug 05, 2015 at 08:31 AM

Seems like you have instrumented the Main method. This is the method that gets executed as the first method and runs until the end. thats why you have an endless/timedout purepath. Looking at this PurePath I rather suggest to put Entry Point Sensors on things like the MainFormWorkplace.ShowWorkplace or some of the Controller classes in your own code base.

That will give you PurePaths that complete which you can then better analyze. I would then focus my analysis on the WCF calls that your app is making. You should open the Remoting Dashlet and analyze all the calls to your service classes

Andi

Comment

People who like this

0 Show 2 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

avatar image Vlad S. · Aug 05, 2015 at 02:59 PM 0
Share

Hello Andreas!

Thanks for your help. So I've changed sensors and now I see 2 complete PurePaths sessionTrying to get infromation from devs regarding correct method. I thought that Entry Points should be discovered out of the box for Rich .net apps

avatar image Andreas G. ♦ Vlad S. · Aug 05, 2015 at 05:21 PM 0
Share

you are absolutely right. this should be picked up out of the box through our WPF Sensors. The only explanation I have is that you use a very customized UI Framework that leverages non standard event handler interfaces. I see if there is anything else I can find out by looking at the new session file you just sent me

andi

avatar image

Answer by Andreas G. · Aug 05, 2015 at 07:38 AM

Hi

If you have PurePaths that run for the entire time I suggest you find different entry points. You picked a method "too high up" in the execution chain. As you are talking about a .NET Rich Client App I wonder why you didnt see any PurePaths out-of-the-box. Can you double check that the WPF & WinForm Sensors are configured as "active and start PurePath"?.

As for the database. Any chance you can export your PurePaths? Maybe also your CPU Sampling Session? Maybe your app uses an ADO.NET Provider that we dont fully support

Andi

Comment

People who like this

0 Show 1 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

avatar image Vlad S. · Aug 05, 2015 at 07:54 AM 0
Share

Hello!

WPF & WinForm Sensors are configured. I cheked it twice. 

Please find sessions attachned

PurePath.zip

How to get started

First steps in the forum
Read Community User Guide
Best practices of using forum

NAM 2019 SP5 is available


Check the RHEL support added in the latest NAM service pack.

Learn more

LIVE WEBINAR

"Performance Clinic - Monitoring as a Self Service with Dynatrace"


JANUARY 15, 3:00 PM GMT / 10:00 AM ET

Register here

Follow this Question

Answers Answers and Comments

No one has followed this question yet.

Forum Tags

dotnet mobile monitoring load iis 6.5 kubernetes mainframe rest api dashboard framework 7.0 appmon 7 health monitoring adk log monitoring services auto-detection uem webserver test automation license web performance monitoring ios nam probe collector migration mq web services knowledge sharing reports window java hybris javascript appmon sensors good to know extensions search 6.3+ server documentation easytravel web dashboard kibana system profile purelytics docker splunk 6.1 process groups account 7.2 rest dynatrace saas spa guardian appmon administration production user actions postgresql upgrade oneagent measures security Dynatrace Managed transactionflow technologies diagnostics user session monitoring unique users continuous delivery sharing configuration alerting NGINX splitting business transaction client 6.3 installation database scheduler apache mobileapp RUM php dashlet azure purepath agent 7.1 appmonsaas messagebroker nodejs 6.2 android sensor performance warehouse
  • Forums
  • Public Forums
    • Community Connect
    • Dynatrace
      • Dynatrace Open Q&A
    • Application Monitoring & UEM
      • AppMon & UEM Open Q&A
    • Network Application Monitoring
      • NAM Open Q&A