Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

有计划支持 jdk11 吗? #294

Closed
whitelilis opened this issue Nov 12, 2018 · 9 comments
Closed

有计划支持 jdk11 吗? #294

whitelilis opened this issue Nov 12, 2018 · 9 comments

Comments

@whitelilis
Copy link

在 jdk11 下试了一下,sm 可以看到方法名,但是 monitor 说找不到

@hengyunabc
Copy link
Collaborator

Arthas支持jdk11。

你的问题和jdk11没关系,仔细检查表达式是否写对了。

@whitelilis
Copy link
Author

上图为证
image

[bruce@d297aba2fdad rt]$ java -version
openjdk version "11.0.1" 2018-10-16
OpenJDK Runtime Environment 18.9 (build 11.0.1+13)
OpenJDK 64-Bit Server VM 18.9 (build 11.0.1+13, mixed mode)

@hengyunabc
Copy link
Collaborator

提供一个可重现的demo?

@whitelilis
Copy link
Author

https://github.com/whitelilis/Chronicle-Queue-jdk11-utf8-bug
这个 demo, 在 jdk11 下,直接运行 Reader, 用 as.sh 跟踪测试如下:

image

@hengyunabc
Copy link
Collaborator

实测没有问题:

$ /tmp/arthas/bin/as.sh
Arthas script version: 3.0.4
JAVA_HOME: /Users/hengyunabc/.sdkman/candidates/java/11.0.0-open
Found existing java process, please choose one and hit RETURN.
* [1]: 88577 Test
  [2]: 90548 Reader
  [3]: 35542
2
Calculating attach execution time...
Attaching to 90548 using version 3.0.4...

real	0m2.420s
user	0m0.876s
sys	0m0.102s
Attach success.
telnet connecting to arthas server... current timestamp is 1542557183
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
  ,---.  ,------. ,--------.,--.  ,--.  ,---.   ,---.
 /  O  \ |  .--. ''--.  .--'|  '--'  | /  O  \ '   .-'
|  .-.  ||  '--'.'   |  |   |  .--.  ||  .-.  |`.  `-.
|  | |  ||  |\  \    |  |   |  |  |  ||  | |  |.-'    |
`--' `--'`--' '--'   `--'   `--'  `--'`--' `--'`-----'


wiki: https://alibaba.github.io/arthas
version: 3.0.4
pid: 90548
timestamp: 1542557184084

$ monitor -c 3 Reader onBlob
Press Ctrl+C to abort.
Affect(class-cnt:1 , method-cnt:1) cost in 121 ms.
$ sysprop java.version
java.version=11
$

@moviewang
Copy link

实测没有问题:

$ /tmp/arthas/bin/as.sh
Arthas script version: 3.0.4
JAVA_HOME: /Users/hengyunabc/.sdkman/candidates/java/11.0.0-open
Found existing java process, please choose one and hit RETURN.
* [1]: 88577 Test
  [2]: 90548 Reader
  [3]: 35542
2
Calculating attach execution time...
Attaching to 90548 using version 3.0.4...

real	0m2.420s
user	0m0.876s
sys	0m0.102s
Attach success.
telnet connecting to arthas server... current timestamp is 1542557183
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
  ,---.  ,------. ,--------.,--.  ,--.  ,---.   ,---.
 /  O  \ |  .--. ''--.  .--'|  '--'  | /  O  \ '   .-'
|  .-.  ||  '--'.'   |  |   |  .--.  ||  .-.  |`.  `-.
|  | |  ||  |\  \    |  |   |  |  |  ||  | |  |.-'    |
`--' `--'`--' '--'   `--'   `--'  `--'`--' `--'`-----'


wiki: https://alibaba.github.io/arthas
version: 3.0.4
pid: 90548
timestamp: 1542557184084

$ monitor -c 3 Reader onBlob
Press Ctrl+C to abort.
Affect(class-cnt:1 , method-cnt:1) cost in 121 ms.
$ sysprop java.version
java.version=11
$

大佬 实测的jdk版本和出现问题的版本并不一致啊
同是 openjdk version "11.0.1" 2018-10-16
OpenJDK Runtime Environment 18.9 (build 11.0.1+13)
OpenJDK 64-Bit Server VM 18.9 (build 11.0.1+13, mixed mode)
版本 出现问题

@hengyunabc
Copy link
Collaborator

OpenJDK Runtime Environment 18.9 (build 11.0.1+13)
OpenJDK 64-Bit Server VM 18.9 (build 11.0.1+13, mixed mode)
版本 出现问题

具体什么问题,详细信息,异常日志

@moviewang
Copy link

ok 我重新提个issue吧

@hengyunabc
Copy link
Collaborator

参考 #425 , #450

@hengyunabc hengyunabc added this to the 3.0.6 milestone Jan 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants