GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — vjtools/vjdump/README_EN.md at master · Frlk/vjtools

Expand file tree

/

README_EN.md

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
38 lines (27 loc) · 1.62 KB
/

README_EN.md

Copy path

File metadata and controls

38 lines (27 loc) · 1.62 KB
Raw
Copy raw file
Download raw file
Outline
Edit and raw actions

VJDump

VJDump comes as a handy script for collecting diagnostic data for JVM during urgent failures to allow for complete analysis later.

1.Introduction

When major system failures occur for reasons not yet known, rebooting may be the only option to ease user complaints. There is so little time that even an experienced system admin might forget to pick up all he needs for offline analysis.

VJDump script is written to make us eaiser, which just packs outputs from T jstack, jmap, gc logs into the form of a single zip file under /tmp/vjtools/vjdump.

[Important]: Commands like jstack and jmap DO cause stop-of-the-world of the target app. Make sure the target app is isolated from user access before you run this full check in production.

Items to be collected by VJDump are:

  • thread dump via jstack -l $PID
  • vjtop JVM overview and busy threads snapshot via vjtop.sh -n 1 -d 3 $PID (enabled when you have our vjtop installed and have the folder of vjtop.sh appended to the PATH environment variable)
  • jmap histo object statistics viajmap -histo $PID & jmap -histo:live $PID
  • GC logs if available
  • heap dump (which can be optionally switched on via --liveheap):jmap -dump:live,format=b,file=${DUMP_FILE} $PID

2. Download

vjdump.sh

3. Getting Started

Use the following commands under the same user who started the target process and collect results in /tmp/vjtools/vjdump.


# collect dignostics for target $pid
vjdump.sh $pid


# include heap dump also via jmap -dump:live, might take longer
vjdump.sh --liveheap $pid

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.