17 Dec 2021
	
		
		05:39 AM
	
	
	
	
	
	
	
	
	
	
	
	
	
	
 - last edited on 
    
	
		
		
		17 Dec 2021
	
		
		08:24 AM
	
	
	
	
	
	
	
	
	
	
	
	
	
	
 by 
				
		
		
			MaciejNeumann
		
		
		
		
		
		
		
		
	
			
		
Is there an easy way to trigger a heap dump when an alert condition is breached in ONEAgent Dynatrace?.
We randomly see spikes in heap used old gen, gc suspension spikes in our docker container. Heap is set to 9Gb. Many APIs are being used in the container. Sometimes OOM conditions happens fast, docker instance crashes and immediately start a new one.
The only reliable way to see what is growing inside the heap is to take a heap dump. But by the time any memory dump can be manually Tigger, new docker instance is started
Can i trigger a heap dump *automatically* on say when heap grows >65% via api, how?
Solved! Go to Solution.
30 Mar 2022 04:49 PM
You can trigger Memory Dumps but you will need an AG to support this. https://www.dynatrace.com/support/help/how-to-use-dynatrace/diagnostics/memory-dump-analysis/configu...