Skip to content

Commit

Permalink
fix install-detail.md. alibaba#51
Browse files Browse the repository at this point in the history
  • Loading branch information
hengyunabc committed Sep 20, 2018
1 parent b01002b commit 5af78cc
Showing 1 changed file with 22 additions and 20 deletions.
42 changes: 22 additions & 20 deletions site/src/site/sphinx/en/install-detail.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,21 +40,23 @@ If in Windows, the color is not working as expect. You can try [conemu](https://

If you cannot boot Arthas, try to pass in all the critical options manually as the following steps:

### 1. locate the java for JVM:
- Linux/Unix/Mac: `ps aux | grep java`
- Windows: open the Process Monitor to search java
1. locate the java for JVM:

### 2. Concatenate the command
Let's suppose we are using `/opt/jdk1.8/bin/java`, then the command should be:
- Linux/Unix/Mac: `ps aux | grep java`
- Windows: open the Process Monitor to search java

```bash
/opt/jdk1.8/bin/java -Xbootclasspath/a:/opt/jdk1.8/lib/tools.jar \
-jar /tmp/arthas-packaging/arthas-core.jar \
-pid 15146 \
-target-ip 127.0.0.1 -telnet-port 3658 -http-port 8563 \
-core /tmp/arthas-packaging/arthas-core.jar \
-agent /tmp/arthas-packaging/arthas/arthas-agent.jar
```
2. Concatenate the command

Let's suppose we are using `/opt/jdk1.8/bin/java`, then the command should be:

```bash
/opt/jdk1.8/bin/java -Xbootclasspath/a:/opt/jdk1.8/lib/tools.jar \
-jar /tmp/arthas-packaging/arthas-core.jar \
-pid 15146 \
-target-ip 127.0.0.1 -telnet-port 3658 -http-port 8563 \
-core /tmp/arthas-packaging/arthas-core.jar \
-agent /tmp/arthas-packaging/arthas/arthas-agent.jar
```

* `-Xbootclasspath` add tools.jar
* `-jar /tmp/arthas-packaging/arthas-core.jar` specify main entry
Expand All @@ -64,17 +66,17 @@ Let's suppose we are using `/opt/jdk1.8/bin/java`, then the command should be:
* `-core /tmp/arthas-packaging/arthas-core.jar -agent /tmp/arthas-packaging/arthas/arthas-agent.jar` specify core/agent jar package


But if you are using JDK 1.9 or above,then you do not need to add `tools.jar` in option `-Xbootclasspath`.
But if you are using JDK 1.9 or above,then you do not need to add `tools.jar` in option `-Xbootclasspath`.

F.Y.I the booting log will be printed to `~/logs/arthas/arthas.log`.
F.Y.I the booting log will be printed to `~/logs/arthas/arthas.log`.

### 3. Connect via telnet
3. Connect via telnet

When attached successfully, you can connect it with
When attached successfully, you can connect it with

```bash
telnet localhost 3658
```
```bash
telnet localhost 3658
```

## Offline Help Documentation

Expand Down

0 comments on commit 5af78cc

Please sign in to comment.