Skip to content

v1.0.0

Latest
Compare
Choose a tag to compare
@hary-singh hary-singh released this 17 Aug 05:22
· 1 commit to master since this release
af3c47c

Initial Release

Script Name: auto_dump.sh

Version: 1.0.0

Description:

Bash script to monitor Java heap memory usage and automatically trigger a heap dump when usage exceeds a specified threshold.

Features:

  • Monitors Java heap memory usage using jcmd.
  • Configurable threshold for heap memory usage (default is 95%).
  • Automatically triggers a heap dump when the threshold is exceeded.
  • Runs in a continuous loop, checking heap memory usage every 60 seconds (configurable).

Dependencies:

  • jcmd utility.
  • pgrep, awk, sed, and grep commands available in the environment.
  • Ensure the path for heap dumps (/path/to/heapdumps/) exists and is writable by the script.
  • Adjust the THRESHOLD and sleep interval according to your requirements.

Contributors

Full Changelog: https://github.com/hary-singh/auto-heap-dump/commits/v1.0.0