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

Unable to open socket file: target process not responding or HotSpot VM not loaded #395

Closed
AnubhavGupta95 opened this issue Aug 16, 2019 · 3 comments

Comments

@AnubhavGupta95
Copy link

Here are the logs:-

./btrace -v 21752 ../../WebServiceTracker.java
DEBUG: assuming default port 2020
DEBUG: assuming default classpath '.'
DEBUG: compiling ../../WebServiceTracker.java
DEBUG: compiled ../../WebServiceTracker.java
DEBUG: attaching to 21752
Unable to open socket file: target process not responding or HotSpot VM not loaded


Java Version:-
java -version
openjdk version "1.8.0_131"
OpenJDK Runtime Environment (build 1.8.0_131-b12)
OpenJDK 64-Bit Server VM (build 25.131-b12, mixed mode)


Please guide what am i doing wrong.

@AnubhavGupta95 AnubhavGupta95 changed the title Btrace unable to trace java application Unable to open socket file: target process not responding or HotSpot VM not loaded Aug 16, 2019
@TimKack
Copy link

TimKack commented Sep 4, 2019

Sounds like the btrace agent wasn't injected properly. In your target application, do you see any debug messages coming to stdout?
Another thing to check is whether the btrace agent socket can be accessed by the user running the ./btrace -v 21752 ... script, i.e. if the target application runs as the same user?

@jbachorik
Copy link
Collaborator

@AnubhavGupta95 Did the suggestion resolve your problems?

@github-actions
Copy link

Stale issue message

This issue was closed.
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