Yass is just 'Yet Another Script' Script. It is a main script to call and more quickly decompress and analyze a directory of various JBoss data files including access logs, GC logs (via garbagecat), server logs(via yala), and thread dumps (via yatda).
wget https://raw.githubusercontent.com/aogburn/yass/main/yass.sh
chmod 755 yass.sh
yum install atool unzip gzip bzip2 tar p7zip ncompress docker
GARBAGECAT=/path/to/garbagecat.jar
YALA_SH=/path/to/yala.sh
YATDA_SH=/path/to/yatda.sh
MAT=/path/to/eclipse/mat/MemoryAnalyzer
When run, yass will look for a new version to use and update itself with a simple wget if so. This update check can be omitted by using the option -u, --updateMode
with either the value never
(no update check is being performed) or ask
(the user is asked to update if a new version is found). The script may be updated over time with new helpful checks, stats, or known issue searches.
./yass.sh
Or you may specify the directory to run against:
./yass.sh /path/to/target/directory
-a, --accessLog recursively look for and summarize access logs
-d, --download download files for a specified case number via casegrab
-e, --heapDump recursively look for hprof/bin heap dump files and launch MAT if specified against the largest
-f, --file name of a file/uuid to download via casegrab. This bypasses the max file size setting.
-g, --gcLog recursively look for and summarize GC logs via a specified garbagecat
-k, --krashPad recursively look for hs_err_pid files and summarize via krashpad
-n, --number download x number of the most recent files via casegrab
-s, --serverLog recursively look for and sumarize server logs via a specified yala.sh
-t, --threadDump recursively look for and summarize thread dumps via a specified yatda.sh
-u, --updateMode the update mode to use, one of [${VALID_UPDATE_MODES[*]}], default: force
-x, --extract recursively look for and extract compressed files in the directory
-h, --help show this help