Skip to content

Latest commit

 

History

History
15 lines (12 loc) · 744 Bytes

README.md

File metadata and controls

15 lines (12 loc) · 744 Bytes
  1. Copy the given thread-analyze-with-rolling.sh file to your pod and move it to a separate directory.
  2. Do not execute this file under the product home.
  3. Create new directory and move the above file to that directory.
  4. Execute the script.
  • Run the script according to the following format.
    • Format

      sh thread-analyze-with-rolling.sh <PID> <number_of_threads> <timegap> <delete_files_older_than_given_minutes>

    • Example sh thread-analyze-with-rolling.sh 10377 10 5s 30

This will print 10 thread dumps with the 5s time gap continuously and each time if any file is older than 30 minutes will be deleted.

References https://gist.github.com/bsenduran/02e8bf024fcaaa7707a6bb2321e097a8#file-thread-analyze-sh