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

Arthas welcome version is in-consistent #214

Closed
1 task done
Hearen opened this issue Oct 11, 2018 · 8 comments
Closed
1 task done

Arthas welcome version is in-consistent #214

Hearen opened this issue Oct 11, 2018 · 8 comments

Comments

@Hearen
Copy link
Contributor

Hearen commented Oct 11, 2018

  • I have searched the issues of this repository and believe that this is not a duplicate.

Environment

  • Arthas version: 3.0.5.2018101114330
  • Operating System version: ubuntu 16.04
  • Java version of target JVM: jdk1.8.0_144
  • Java version of JVM used to attach: jdk1.8.0_144

Steps to reproduce this issue

  1. ./as.package.sh
  2. bin/as.sh
  3. monitor any java process

Expected Result

Arthas script version: 3.0.5
Found existing java process, please choose one and hit RETURN.
* [1]: 19616 com.taobao.arthas.client.TelnetConsole
  [2]: 30945 org.jetbrains.jps.cmdline.Launcher
  [3]: 30948 com.worksap.morphling.raptor.Application
  [4]: 9268 demo.Demo
  [5]: 2324 org.jetbrains.jps.cmdline.Launcher
  [6]: 12405 demo.Demo
  [7]: 13628 org.jetbrains.jps.cmdline.Launcher
  [8]: 5085 com.intellij.idea.Main
  [9]: 19725 com.taobao.arthas.client.TelnetConsole
  [10]: 5470 org.jetbrains.idea.maven.server.RemoteMavenServer
  [11]: 5679 com.intellij.database.remote.RemoteJdbcServer
4
Calculating attach execution time...
Attaching to 9268 using version 3.0.5.20181011143309...

real    0m0.236s
user    0m0.309s
sys     0m0.024s
Attach success.
Connecting to arthas server... current time is 2018-10-11 14:33:29
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.5.20181011143309
pid: 9268
Connection closed by foreign host.

There versions in three places:

Arthas script version: 3.0.5
...
Attaching to 9268 using version 3.0.5.20181011143309...
...
version: 3.0.5.20181011143309

Actual Result

Arthas script version: 3.0.4
Found existing java process, please choose one and hit RETURN.
* [1]: 19616 com.taobao.arthas.client.TelnetConsole
  [2]: 30945 org.jetbrains.jps.cmdline.Launcher
  [3]: 30948 com.worksap.morphling.raptor.Application
  [4]: 9268 demo.Demo
  [5]: 2324 org.jetbrains.jps.cmdline.Launcher
  [6]: 12405 demo.Demo
  [7]: 13628 org.jetbrains.jps.cmdline.Launcher
  [8]: 5085 com.intellij.idea.Main
  [9]: 19725 com.taobao.arthas.client.TelnetConsole
  [10]: 5470 org.jetbrains.idea.maven.server.RemoteMavenServer
  [11]: 5679 com.intellij.database.remote.RemoteJdbcServer
4
Calculating attach execution time...
Attaching to 9268 using version 3.0.5.20181011143309...

real    0m0.236s
user    0m0.309s
sys     0m0.024s
Attach success.
Connecting to arthas server... current time is 2018-10-11 14:33:29
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.5.20181011140241
pid: 9268
Connection closed by foreign host.

There versions in three places:

Arthas script version: 3.0.4 # unexpected
...
Attaching to 9268 using version 3.0.5.20181011143309...
...
version: 3.0.5.20181011140241 # unexpected 
@hengyunabc
Copy link
Collaborator

as.sh has its own version, maybe: 3.0.4, 3.0.4.1 , 3.0.5, 3.0.5.1 .

arthas version like 3.0.5.20181011140241 is local develop version. Refer to #4

@Hearen
Copy link
Contributor Author

Hearen commented Oct 11, 2018

as.sh has its own version, maybe: 3.0.4, 3.0.4.1 , 3.0.5, 3.0.5.1 .

arthas version like 3.0.5.20181011140241 is local develop version. Refer to #4

@hengyunabc I kind of can accept that but

Attaching to 9268 using version 3.0.5.20181011143309...
...
version: 3.0.5.20181011140241 # unexpected 

these two versions are also different?

@hengyunabc
Copy link
Collaborator

@Hearen run as-package.sh to install new version, or try to clean ~/.arhtas/lib.

@Hearen
Copy link
Contributor Author

Hearen commented Oct 11, 2018

@Hearen run as-package.sh to install new version, or try to clean ~/.arhtas/lib.

@hengyunabc I tried both that's why I started this issue. Now I am debugging it now...

+ local arthas_lib_dir=/home/hearen/.arthas/lib/3.0.5.20181011161649/arthas
+ '[' false = true ']'
+ type telnet
+ telnet 127.0.0.1 3658
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.5.20181011140241
pid: 9268
Connection closed by foreign host.

+ local arthas_lib_dir=/home/hearen/.arthas/lib/3.0.5.20181011161649/arthas

but

version: 3.0.5.20181011140241

@hengyunabc
Copy link
Collaborator

@Hearen Try to attach to a new java process.

@Hearen
Copy link
Contributor Author

Hearen commented Oct 11, 2018

@Hearen Try to attach to a new java process.

@hengyunabc also tried before

@Hearen
Copy link
Contributor Author

Hearen commented Oct 11, 2018

@hengyunabc I think you should check #196 really, I have no idea till now to debug the source code (core or agent). Only as-package.sh can be used to check the changes each time 😢 .

@Hearen
Copy link
Contributor Author

Hearen commented Oct 11, 2018

@hengyunabc I think you can make debug part clearer.

I translated the contributing part, so basically I read it tens of times. But still I am too dumb to get it to work.

Once you elaborated it, I will update the en version too. Just let me know :)

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

2 participants