mirror of
https://github.com/alibaba/arthas.git
synced 2024-04-21 10:21:39 +00:00
@@ -38,7 +38,7 @@ You can see that there is currently a background job executing:
|
||||
|
||||
## 3. Suspend and cancel job
|
||||
|
||||
When the job is executing in the foreground, for example, directly executing the command `trace Test t`, or executing the background job command `trace Test t &`, then putting the job back to the forground via `fg` command, the console cannot continue to execute other command, but can receive and process the following keyboard events:
|
||||
When the job is executing in the foreground, for example, directly executing the command `trace Test t`, or executing the background job command `trace Test t &`, then putting the job back to the foreground via `fg` command, the console cannot continue to execute other command, but can receive and process the following keyboard events:
|
||||
|
||||
* ‘ctrl + z’: Suspend the job, the job status will change to `Stopped`, and the job can be restarted by `bg <job-id>` or `fg <job-id>`
|
||||
* ‘ctrl + c’: Stop the job
|
||||
|
||||
@@ -91,7 +91,7 @@ If you fail to boot Arthas with the provided batch file, you could try to assemb
|
||||
* `-telnet-port 3658 -http-port 8563` specifies telnet and HTTP ports for remote access
|
||||
* `-core /tmp/arthas-packaging/arthas-core.jar -agent /tmp/arthas-packaging/arthas/arthas-agent.jar` specifies core/agent jar package
|
||||
|
||||
If you are running on JDK 1.9 or above,then it's unncessary to add `tools.jar` in option `-Xbootclasspath`.
|
||||
If you are running on JDK 1.9 or above,then it's unnecessary to add `tools.jar` in option `-Xbootclasspath`.
|
||||
|
||||
You can find the logs from `~/logs/arthas/arthas.log`.
|
||||
|
||||
|
||||
@@ -57,7 +57,7 @@ sc
|
||||
Affect(row-cnt:1) cost in 875 ms.
|
||||
```
|
||||
|
||||
* View class fileds
|
||||
* View class fields
|
||||
|
||||
```bash
|
||||
$ sc -d -f demo.MathGame
|
||||
|
||||
@@ -153,7 +153,7 @@ F.Y.I
|
||||
|
||||
1. **Loss** of the `ThreadLocal`
|
||||
|
||||
Arthas save params into an array, then invoke the method with the params again. The method execute in another thead, so the `ThreadLocal` **lost**.
|
||||
Arthas save params into an array, then invoke the method with the params again. The method execute in another thread, so the `ThreadLocal` **lost**.
|
||||
|
||||
1. params may be modified
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ java -jar arthas-boot.jar
|
||||
```
|
||||
|
||||
* 执行该程序的用户需要和目标进程具有相同的权限。比如以`admin`用户来执行:`sudo su admin && java -jar arthas-boot.jar` 或 `sudo -u admin -EH java -jar arthas-boot.jar`。
|
||||
* 如果attatch不上目标进程,可以查看`~/logs/arthas/` 目录下的日志。
|
||||
* 如果attach不上目标进程,可以查看`~/logs/arthas/` 目录下的日志。
|
||||
* 如果下载速度比较慢,可以使用aliyun的镜像:`java -jar arthas-boot.jar --repo-mirror aliyun --use-http`
|
||||
* `java -jar arthas-boot.jar -h` 打印更多参数信息。
|
||||
|
||||
|
||||
Reference in New Issue
Block a user