Advanced Usage

Basic

  • help
  • cls - clear out the current screen
  • session - check details of the current session
  • reset - reset all empowered classes
  • version - print the version of the Arthas attaching to the current target process
  • quit/exit - exit the current Arthas client without affecting other clients
  • shutdown - terminate the Arthas server and all clients

options

  • options - check or set Arthas global options

pipe

pipe is supported in Arthas, e.g. sm org.apache.log4j.Logger | grep <init>

  • grep
  • plaintext - remove the color
  • wc

async in background

async will be a great help, when the incident seldom occurs and you are [watch](watch.md)ing it.

  • jobs - list all jobs
  • kill - forcibly terminate the job
  • fg - bring the paused job back to the front
  • bg - put the paused job to the background
  • tips - a) use > to redirect the output; b) use & to put the job to the background; c) disconnecting the session will not influence the job (the default life is 1 day)

Web Console

Using websocket to connect Arthas