Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

A variety of useful scripts, mostly here for archival purposes

Notifications You must be signed in to change notification settings

derricks/random_scripts

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

random_scripts

A variety of useful scripts, mostly here for archival purposes

java_thread_dumps

Scripts for doing surface-level analysis of Java thread dumps as captured by jstack. Both can be used with stdin as well.

  • extract_stacks_by_regex

    An awk script that will extract any stack trace in a thread dump where any line contains the passed-in regex.

    Usage: awk -f extract_\stacks_by_regex -v regex=regex file

  • summarize_thread_dump

    An awk script that will provide a quick summary of a thread dump. It will show number of threads in various states and then summarize the number of threads in each code path by finding the first line in a stack that doesn't have java or sun in it (in other words, the first code likely to be yours or a third-party library you're using) and then aggregating those lines to show the sum.

    Usage: awk -f summarize_thread_dump file

About

A variety of useful scripts, mostly here for archival purposes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
Morty Proxy This is a proxified and sanitized view of the page, visit original site.