diff --git a/README.html b/README.html index 114ebda02..583f0ee04 100644 --- a/README.html +++ b/README.html @@ -8,7 +8,7 @@ - <no title> — Arthas 3.0.5-SNAPSHOT 文档 + <no title> — Arthas 3.0.6-SNAPSHOT 文档 @@ -62,7 +62,7 @@
- 3.0.5-SNAPSHOT + 3.0.6-SNAPSHOT
@@ -198,7 +198,7 @@ @@ -64,7 +64,7 @@
- 3.0.5-SNAPSHOT + 3.0.6-SNAPSHOT
@@ -97,7 +97,9 @@
  • thread
  • jvm
  • sysprop
  • +
  • sysenv
  • getstatic
  • +
  • ognl
  • sc
  • sm
  • dump
  • @@ -215,10 +217,10 @@ field: m @@ -249,7 +251,7 @@ field: m + + + + + + + + + + + +
    + + + + +
    + + + + + +
    + +
    + + + + + + + + + + + + + + + + + +
    + + + + +
    +
    +
    +
    + +
    +

    ognl

    +
    +
    Execute ognl expression.
    +

    Since 3.0.5.

    +
    +

    Parameters

    + + + + + + + + + + + + + + + + + + + + + +
    NameSpecification
    expressexpression to be executed
    [c:]The hashcode of the ClassLoader that executes the expression, default ClassLoader is SystemClassLoader.
    [x]Expand level of object (1 by default).
    +
    +

    Usage

    + +

    Call static method:

    +
    $ ognl '@java.lang.System@out.println("hello")'
    +null
    +
    +
    +

    Get static field:

    +
    $ ognl '@demo.MathGame@random'
    +@Random[
    +    serialVersionUID=@Long[3905348978240129619],
    +    seed=@AtomicLong[125451474443703],
    +    multiplier=@Long[25214903917],
    +    addend=@Long[11],
    +    mask=@Long[281474976710655],
    +    DOUBLE_UNIT=@Double[1.1102230246251565E-16],
    +    BadBound=@String[bound must be positive],
    +    BadRange=@String[bound must be greater than origin],
    +    BadSize=@String[size must be non-negative],
    +    seedUniquifier=@AtomicLong[-3282039941672302964],
    +    nextNextGaussian=@Double[0.0],
    +    haveNextNextGaussian=@Boolean[false],
    +    serialPersistentFields=@ObjectStreamField[][isEmpty=false;size=3],
    +    unsafe=@Unsafe[sun.misc.Unsafe@28ea5898],
    +    seedOffset=@Long[24],
    +]
    +
    +
    +

    Execute a multi-line expression, and return a list:

    +
    $ ognl '#value1=@System@getProperty("java.home"), #value2=@System@getProperty("java.runtime.name"), {#value1, #value2}'
    +@ArrayList[
    +    @String[/opt/java/8.0.181-zulu/jre],
    +    @String[OpenJDK Runtime Environment],
    +]
    +
    +
    +
    +
    + + +
    + +
    + + +
    +
    + +
    + +
    + + + + + + + + + + + + + + + + +
    +
    + Fork me at GitHub +
    +
    + + + + + + + + + \ No newline at end of file diff --git a/en/options.html b/en/options.html index 19f3dc61a..dc57f1a9a 100644 --- a/en/options.html +++ b/en/options.html @@ -8,7 +8,7 @@ - options — Arthas 3.0.5-SNAPSHOT documentation + options — Arthas 3.0.6-SNAPSHOT documentation @@ -64,7 +64,7 @@
    - 3.0.5-SNAPSHOT + 3.0.6-SNAPSHOT
    @@ -97,7 +97,9 @@
  • thread
  • jvm
  • sysprop
  • +
  • sysenv
  • getstatic
  • +
  • ognl
  • sc
  • sm
  • dump
  • @@ -297,7 +299,7 @@ @@ -64,7 +64,7 @@
    - 3.0.5-SNAPSHOT + 3.0.6-SNAPSHOT
    @@ -97,7 +97,9 @@
  • thread
  • jvm
  • sysprop
  • +
  • sysenv
  • getstatic
  • +
  • ognl
  • sc
  • +
  • sysenv
  • getstatic
  • +
  • ognl
  • sc
  • sm
  • dump
  • @@ -325,7 +327,7 @@ user.country=CN @@ -329,7 +331,7 @@ + + + + + + + + + + + +
    + + + + +
    + + + + + +
    + +
    + + + + + + + + + + + + + + + + + +
    + + + + +
    +
    +
    +
    + +
    +

    sysenv

    +
    +
    查看当前JVM的环境属性(System Environment Variables)
    +
    +

    使用参考

    +
     USAGE:
    +   sysenv [-h] [env-name]
    +
    + SUMMARY:
    +   Display the system env.
    +
    + EXAMPLES:
    +   sysenv
    +   sysenv USER
    +
    + WIKI:
    +   https://alibaba.github.io/arthas/sysenv
    +
    + OPTIONS:
    + -h, --help                                                 this help
    + <env-name>                                                 env name
    +
    +
    +
    +

    查看所有环境变量

    +
    $ sysenv
    + KEY                      VALUE
    +----------------------------------------------------------------------------------------------------------------------------
    + PATH                     /Users/admin/.sdkman/candidates/visualvm/current/bin:/Users/admin/.sdkman/candidates/ja
    +                          va/current/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/Wireshark.app/Contents/
    +                          MacOS
    + SDKMAN_VERSION           5.7.3+337
    + JAVA_HOME                /Users/admin/.sdkman/candidates/java/current
    + JAVA_MAIN_CLASS_65244    demo.MathGame
    + TERM                     xterm-256color
    + LANG                     zh_CN.UTF-8
    + AUTOJUMP_SOURCED         1
    + COLORTERM                truecolor
    + LOGNAME                  admin
    + XPC_SERVICE_NAME         0
    + PWD                      /Users/admin/code/ali/arthas/demo
    + TERM_PROGRAM_VERSION     3.2.5
    + _                        /Users/admin/.sdkman/candidates/java/current/bin/java
    + SHELL                    /bin/bash
    + TERM_PROGRAM             iTerm.app
    + SDKMAN_PLATFORM          Darwin
    + USER                     admin
    + ITERM_PROFILE            Default
    + TMPDIR                   /var/folders/0r/k561bkk917gg972stqclbz9h0000gn/T/
    + XPC_FLAGS                0x0
    + TERM_SESSION_ID          w0t4p0:60BC264D-9649-42AC-A7E4-AF85B69F93F8
    + __CF_USER_TEXT_ENCODING  0x1F5:0x19:0x34
    + Apple_PubSub_Socket_Ren  /private/tmp/com.apple.launchd.DwmmjSQsll/Render
    + der
    + COLORFGBG                7;0
    + HOME                     /Users/admin
    + SHLVL                    1
    + AUTOJUMP_ERROR_PATH      /Users/admin/Library/autojump/errors.log
    +
    +
    +
    +
    +

    查看单个环境变量

    +
    +
    支持通过TAB键自动补全
    +
    $ sysenv USER
    +USER=admin
    +
    +
    +
    +
    +
    + + +
    + +
    + + +
    +
    + +
    + +
    + + + + + + + + + + + + + + + + + +
    +
    + Fork me at GitHub +
    +
    + + + + + + + + + \ No newline at end of file diff --git a/sysprop.html b/sysprop.html index 40915378c..72365fd7c 100644 --- a/sysprop.html +++ b/sysprop.html @@ -8,7 +8,7 @@ - sysprop — Arthas 3.0.5-SNAPSHOT 文档 + sysprop — Arthas 3.0.6-SNAPSHOT 文档 @@ -31,7 +31,7 @@ - + @@ -64,7 +64,7 @@
    - 3.0.5-SNAPSHOT + 3.0.6-SNAPSHOT
    @@ -106,7 +106,9 @@ +
  • sysenv
  • getstatic
  • +
  • ognl
  • sc
  • sm
  • dump
  • @@ -326,7 +328,7 @@ user.country=CN