AppDynamics Knowledge Base

How do I increase the snapshot reporter queue size?

How do I increase the snapshot reporter queue size?

Problem

Request Segment Data Queue holds the request snapshots captured by agent and sends details to controller every minute. For that minute, agent will hold all the request segment data in a queue and send it at one go. If there are many snapshots collected, the queue may not hold everything. So in that case, it might drop the snapshots and that is what is reflected in the logs below ...

 

 

Sample logs 

[AD Thread Pool-Global0] 09 Feb 2017 00:05:20,134 Request Segment Data reporter queue length limit of 1000kb reached.
[AD Thread Pool-Global0] 09 Feb 2017 00:05:20,135 Request Segment Data reporter queue length limit of 1000 reached. Dropping snapshots. You may consider increasing the value of 'max-snapshot-reporter-queue-size-kb' in app-agent-config.xml

 

Solution

1) Stop the agent
2) Add the listed line along with other properties in app-agent-config.xml file
Example:
<property name="max-snapshot-reporter-queue-size-kb" value="2000"/>
3) Start the agent

 

__________________________________________________________________________________

image.pngWas this helpful? Give it kudos [click on the thumbs up icon at the end of the article, bottom left corner] to let others know too!Do you have a question or need clarification? [Post Your Comment] Below. 

Labels (1)
Tags (1)
Comments

Hi @Narendra.Chaluchalamala , does increasing the value of this property affect the heap memory usage of the the application?

Hello, @Udbhav.Verma 

I understand from @Anka.Thanneeru that aggressive settings will impact heap/CPU usage as an agent is entitled to collect more data. So, while you can increase the property value, it is recommended to do it incrementally, based on need, rather than aggressive increase.

Please let us know if that helps!
Claudia Landivar, Community Manager & Editor

Version history
Last update:
‎12-11-2017 01:20 PM
Updated by: