introduce

For details, see arthas.aliyun.com/doc

The practical operation

  1. Start the application
Java-jar life-account-0.0.1-snapshot. jar > account.log &Copy the code
  1. Start the Arthas
Curl - O https://arthas.aliyun.com/arthas-boot.jar Java - jar arthas - boot. The jar needs to monitor the application of choiceCopy the code

  1. View basic application information
dashboard
Copy the code

  1. decompiling
Jad, for example: decompiling the following class jad com. Satan. The service. The impl. UserServiceImplCopy the code

  1. watch
Watch for example: listening method return values watch com. Satan. The service. The impl. UserServiceImpl getByUsernameAndPwd returnObjCopy the code