fix install-detail.md. #51

This commit is contained in:
hengyunabc committed 2018-09-20 16:21:34 +08:00
1 parent 325fc1f77e
commit 2c4e9edd36
1 file changed
+22 -20
+22 -20
View File
@@ -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: If you cannot boot Arthas, try to pass in all the critical options manually as the following steps:
### 1. locate the java for JVM: 1. locate the java for JVM:
- Linux/Unix/Mac: `ps aux | grep java`
- Windows: open the Process Monitor to search java
### 2. Concatenate the command - Linux/Unix/Mac: `ps aux | grep java`
Let's suppose we are using `/opt/jdk1.8/bin/java`, then the command should be: - Windows: open the Process Monitor to search java
```bash 2. Concatenate the command
/opt/jdk1.8/bin/java -Xbootclasspath/a:/opt/jdk1.8/lib/tools.jar \
-jar /tmp/arthas-packaging/arthas-core.jar \ Let's suppose we are using `/opt/jdk1.8/bin/java`, then the command should be:
-pid 15146 \
-target-ip 127.0.0.1 -telnet-port 3658 -http-port 8563 \ ```bash
-core /tmp/arthas-packaging/arthas-core.jar \ /opt/jdk1.8/bin/java -Xbootclasspath/a:/opt/jdk1.8/lib/tools.jar \
-agent /tmp/arthas-packaging/arthas/arthas-agent.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 * `-Xbootclasspath` add tools.jar
* `-jar /tmp/arthas-packaging/arthas-core.jar` specify main entry * `-jar /tmp/arthas-packaging/arthas-core.jar` specify main entry
@@ -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 * `-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 ```bash
telnet localhost 3658 telnet localhost 3658
``` ```
## Offline Help Documentation ## Offline Help Documentation