Knowledge Base

cancel
Showing results for 
Search instead for 
Did you mean: 

How to 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
Revision #:
4 of 4
Last update:
‎06-23-2017 10:04 AM
Updated by:
 
Contributors
0 Kudos