• 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 Michael H. · Jun 17, 2014 at 09:28 PM ·

Sensors on native Java methods?

Hey

Is it possible to set a sensor on a native method like java.net.Inet6AddressImpl.getHostByAddr ?

The dynaTrace client (5.6.0.5924) allows you to create and deploy the sensor but it appears not to collect any performance data.

I would not be surprised if the answer is no as instrumenting native code might be very hard but on the other hand the client does not imply this so maybe it is possible after all or... ?

The reason for wanting this is that getHostByAddr (and lookupAllHostAddr) sometimes appear to take long time (1-5s) where I would expect maybe two digit milliseconds; see attached.

Thanks

-Michael

Comment

People who like this

0 Show 0
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.

4 Replies

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

Answer by Michael H. · Jul 02, 2014 at 05:22 PM


I think 'which is the suggested way of adding sensor rules' is the tricky part here.

Either right clicking on a method in a purepath to add a sensor should not be possible or you should receive a warning if trying to set a sensor on a native method this way.

-Michael

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 Christian S. · Jul 02, 2014 at 01:32 AM

hi Michael,

I just double-checked with 5.5 & 5.6 Client, Server & Collector. in the classbrowser (which is the suggested way of adding sensor rules) the native methods were identified as such and could not be selected for instrumentation.

if you, however, add the sensor rule manually, then you can basically add any rule without verification if and what would be instrumented. there is no on-the-fly-check of what would be instrumented.

best,
Christian

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 Michael H. · Jun 18, 2014 at 05:36 PM

Hi Andreas

Thanks for clarifying response. This was what I expected but the interface for creating the sensor lets you believe it is possible to create such sensors; maybe a warning would be appropriate if not straight out disallowing it (wink)

-Michael

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. · Jun 18, 2014 at 03:49 PM

Hi Michael

You are correct. Native methods cant be instrumented but they are picked up by our Auto Sensors. If you want to capture the string you need to capture it from the method that is calling getHostByAddr. In order to figure out which is the calling method go back to your PurePath and click on "Show all Nodes". The method above getHostByAddr is a good starting point. You might be lucky and the string is passed as an argument to that method

Andi

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.

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

2 People are following this question.

avatar image avatar image

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