cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Not a customer? Start a free trial

Click the Start a free trial link to start a 15-day SaaS trial of our product and join our community as a trial user. If you are an existing customer do not start a free trial.

AppDynamics customers and established members should click the sign in button to authenticate.

Knowledge Base

How do I measure Agent memory consumption?

Question:

I understand that Agents add 2% overhead to an application server (CPU, response time, throughput, network IO, etc.), and will consume about 10mb-100mb of the internal memory of the application server. How do you measure the memory consumption and make sure the Agent consumes 10mb-100mb?

 

Answer:

Java Agents have various safety checks built-in internally, such as max number of business transaction (50)max number of snapshots per min (20), metrics reported (5000) and many others, which keep the Agents' overhead under the limit. 

 

Additionally, there are other factors which can contribute to overhead, including:

  1. Nature of the business application that you are monitoring (technology stack).
  2. The number of business transactions being monitored.
  3. The number of snapshots taken by an Agent per minute.
  4. The number of requests/load handled by the application server.
  5. Async nature of the application.
  6. And much more.

So the overhead factor can fluctuate depending on these factors.

 

To understand the heap usage of an Agent, find the memory consumption with and without the Agent, and the difference will give an accurate estimate of heap consumption of agent. The right tool will depend on the JDK version and operating system in use.

 

Example: Summarizing Java heap utilization with jmap

 

 

Version history
Last update:
‎09-10-2018 11:54 AM
Updated by:
Labels (1)
Contributors
Tags (3)


Found this article helpful? Click the Thumbs Up button.
Have an additional comment? Post it below.
By replying you agree to the Terms and Conditions of the AppDynamics Community.
Comments

We are planning to deploy the agent as a sidecar to monitor multiple micro services.

Whether we should consider the same algorithm to do the calculation and propose the sizing.?

 

How many micro services could be configured for an agent deployed as a sidecar.?

 

Do we have an option to configure or restrict the resource consumption for the agent configured as a sidecar.?