Prev Next

DevOps / AppDynamics Interview questions

Why does the Java Agent use byte-code instrumentation?

Byte-code instrumentation lets the Java Agent add monitoring logic — timing a method, capturing a database call, injecting a correlation header — into a running application without ever touching or recompiling the application's actual source code.

The alternative approaches are both worse in practice: manually adding logging/timing code throughout an application is invasive, error-prone, and needs a new deployment for every change; and only inspecting metrics at the process or OS level (like the Machine Agent does) can't see inside individual method calls or attribute latency to a specific line of business logic at all.

Because the Java Agent modifies bytecode as classes are loaded by the JVM — not the .java or .class files on disk — instrumentation is applied fresh on every JVM restart and never permanently alters the deployed artifact, which is why enabling or disabling monitoring doesn't require a rebuild.

Why is byte-code instrumentation preferred over manually adding logging code everywhere?
When does the Java Agent modify bytecode?

More Related questions...

Explain AppDynamics. What is Appdynamics? What is Application Performance Monitoring (APM)? What are agents and the controller in AppDynamics? What are the core components of the AppDynamics platform? Why is AppDynamics used? What is the Controller in AppDynamics? What is OpenTelemetry in Appdynamics? What is an App Agent in AppDynamics? What is Unified Monitoring in AppDynamics? What is a flow map in Appdynamics? What are the types of agents available in AppDynamics? What is a Business Transaction in AppDynamics? What is Appdynamics node? What is a Tier in AppDynamics? What is Galileo suite? What is a Node in AppDynamics? What is a Business Application in AppDynamics? What is the Application Flow Map? What is a Health Rule? What is a Policy in AppDynamics? What is a Transaction Snapshot? Define baseline in AppDynamics? What is the Machine Agent used for? What is End User Monitoring (EUM)? What is Database Visibility in AppDynamics? What are Backends in AppDynamics? Describe the Metric Browser in AppDynamics? What is the difference between a Tier and a Node in AppDynamics? How does AppDynamics automatically discover Business Transactions? What is the difference between automatic and custom Business Transaction match rules? How does AppDynamics correlate a transaction across multiple tiers? Why is the singularityheader important in transaction correlation? How does AppDynamics decide when to capture a transaction snapshot? What is dynamic baselining and how does it work? Why does the Java Agent use byte-code instrumentation? Explain the internal working of AppDynamics' byte-code instrumentation? What is a Service Endpoint in AppDynamics? What is an Information Point? What is a Data Collector in AppDynamics? When should you use custom match rules instead of automatic discovery? What is the difference between Slow, Very Slow, and Stalled transactions? How does AppDynamics calculate Average Response Time (ART)? What is the difference between the Machine Agent and the Network Agent? What is an Adaptive Session in AppDynamics? What is a thread dump and when does AppDynamics capture one automatically? How would you troubleshoot a suspected memory leak using AppDynamics? What are custom extensions for the Machine Agent? How does the Cluster Agent monitor Kubernetes environments? What is the difference between SaaS and On-Premises Controller deployments? How can you reduce AppDynamics agent overhead in a production environment? What is Business iQ / Analytics in AppDynamics? How does AppDynamics integrate with ITSM tools like ServiceNow or PagerDuty? What is the AppDynamics REST API used for? Explain the lifecycle of an alert from health rule violation to notification? What is the difference between Warning and Critical health rule severities? What are Instrumentation exclude rules and why would you use them? Explain the execution flow of a distributed transaction across microservices in AppDynamics?
Show more question and Answers...

GitHub Actions Interview Questions

Comments & Discussions