• 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 Thomas R. · Jan 27, 2014 at 10:38 PM ·

Using dynaTrace with ANT/Jenkins...

We are currently using Jenkins in our CI environment to perform builds. Is there anyway to use dynaTrace to get performance data on ANT (and running in Jenkins)? For example, for a build target named "Test 1" that has 3 tasks defined, I want to see method data on the ANT classes, tasks, etc. for each task(s). So, essentially for a long running ANT task, I want to isolate which methods, etc. are long-running under ANT. Has anyone been able to do this under Jenkins? I know there is a test automation plugin but on first glance it doesn't seem to provide this (I could be wrong).

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.

3 Replies

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

Answer by Wolfgang G. · Jan 28, 2014 at 03:59 PM

Hi, I don't think you would need a plugin for that as Jenkins allows you to add Java options to the Ant execution:

I have just given it a quick try and instrumented the following methods for the org.apache.tools.ant.Task class (as "active and starts PurePaths"):

  • init
  • perform
  • log
  • execute

This results in a number of PurePaths during the build. I haven't looked into the other methods of that class now, but this looks like a potential starting point

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 Thomas R. · Jan 28, 2014 at 08:22 PM 0
Share

Thanks for the quick reply. I had actually looked at the plug-in and, while very interesting, I also didn't think that I needed this to accomplish what I was looking for. I had my "Build" configuration similar to what you listed above with the exception of explicitly listing the targets and build file (these are not necessary based on our Jenkins configuration but provide the ability to obviously specify and limit what is run). I also did not have the dtagent property set which seems to be the missing culprit. Thanks again...

avatar image

Answer by Dominik S. · Jan 28, 2014 at 03:50 PM

Hi, if I read the question correctly you are interested in analyzing where the ant build itself spends most of it's time?

If this is the case, we have done some internal work on this topic for one of our build-processes. I have attached a copy of the information as PDF at Measuring Performance of an Ant build process.pdf, also a preconfigured system profile is available under Ant.profile.xml

FYI when doing this inside Jenkins, you will probably need to inject the dynaTrace agent via setting the environment variable ANT_OPTS or JAVA_OPTS if you use the Ant-executable script ant.bat/ant.sh, not sure if there is an easy way to inject in the builtin-Ant builder in Jenkins, maybe you need to switch to a shell-based build-steps and invoke Ant from there to get injected.

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 B. · Jan 28, 2014 at 03:50 PM

Hi Thomas,

Please check out this plugin from Wolfgang.  It should be what you're looking for.

https://community.compuwareapm.com/community/display/DL/Test+Automation+Plugin+for+Jenkins

Thanks,

Mike

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

3 People are following this question.

avatar image 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