Skip to content

Java Agent to trigger dumps based on Memory usage threshold

Notifications You must be signed in to change notification settings

prakaashkpk/JavaAgents

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Java Agent to trigger dumps when usage of memory(heap) reaches threshold

To use agent

java -javaagent:gcDumpAgent.jar="-t 80 -d java,system -r .." -Xmx200m com.prakash.java.agent.test.AgentTest

###Where -t -> Threshold,

-d -> Dump option

-r -> Range option - from nth event onwards collect dump - after nth event stop collecting dump

###Example

For generating heap and system dumps for max 4 times when the heap usage reaches 90% use the following option

<SDK_PATH>/bin/java -javaagent:gcDumpAgent.jar="-t 90 -d heap,system -r 1..4"

Note: The project is not yet completed

About

Java Agent to trigger dumps based on Memory usage threshold

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published