forked from alibaba/arthas
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0eb32d0
commit 0fe1ab4
Showing
12 changed files
with
130 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
cat | ||
=== | ||
|
||
> 打印文件内容,和linux里的cat命令类似。 | ||
|
||
```bash | ||
$ cat /tmp/a.txt | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
cat | ||
=== | ||
|
||
> Concatenate and print files | ||
|
||
```bash | ||
$ cat /tmp/a.txt | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
mc | ||
=== | ||
|
||
> Memory compiler, compiles java files into bytecode and class files in memory. | ||
```bash | ||
mc /tmp/Test.java | ||
``` | ||
|
||
The classloader can be specified with the `-c` option: | ||
|
||
```bash | ||
mc -c 327a647b /tmp/Test.java | ||
``` | ||
|
||
The output directory can be specified with the `-d` option: | ||
|
||
```bash | ||
mc -d /tmp/output /tmp/ClassA.java /tmp/ClassB.java | ||
``` | ||
|
||
After compiling the `.class` file, you can use the [`redefine`](redefine.md) command to re-define the loaded classes in JVM. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
pwd | ||
=== | ||
|
||
> Return working directory name | ||
|
||
```bash | ||
$ pwd | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
mc | ||
=== | ||
|
||
> Memory Compiler/内存编绎器,编绎`.java`文件生成`.class`。 | ||
```bash | ||
mc /tmp/Test.java | ||
``` | ||
|
||
可以通过`-c`参数指定classloader: | ||
|
||
```bash | ||
mc -c 327a647b /tmp/Test.java | ||
``` | ||
|
||
可以通过`-d`命令指定输出目录: | ||
|
||
```bash | ||
mc -d /tmp/output /tmp/ClassA.java /tmp/ClassB.java | ||
``` | ||
|
||
编绎生成`.class`文件之后,可以结合[`redefine`](redefine.md)命令实现热更新代码。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
pwd | ||
=== | ||
|
||
> 返回当前的工作目录,和linux命令类似 | ||
|
||
```bash | ||
$ pwd | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters