error while trying to access java program
See original GitHub issueso while trying to use ttop I get a error strange thing is that jps detects it…
thanks RF
rferreira@graylog1-cab2:~$ sudo java -jar sjk-plus-0.4.2.jar jps
25987 sjk-plus-0.4.2.jar jps
23691 /usr/share/graylog-server/graylog.jar server -f /etc/graylog/server/server.conf -np
rferreira@graylog1-cab2:~$ sudo java -jar sjk-plus-0.4.2.jar ttop -p 23691 -n 20 -o CPU
Failed to access MBean server: 23691
Issue Analytics
- State:
- Created 7 years ago
- Reactions:2
- Comments:8 (4 by maintainers)
Top Results From Across the Web
Error while compiling java program access denied error
1. Your javac does not have the permissions to write in this file. Try to open the console in admin mode. – FrancoisBaveye....
Read more >Java Software Errors: How to Avoid 50 Code Issues in Java
We've rounded up 50 of the most common Java software errors, complete with code examples and tutorials to help you work around common...
Read more >Troubleshooting tips for running Java
Download and Install Java · Try the offline installer package (Windows only) · Uninstall any non-working Java installations · Temporarily turn off firewall...
Read more >Java Guide: How to Fix "Could not find or load main class"
The Java “Could not find or load main class” error is thrown when the JVM fails to find or load the main class...
Read more >Lesson: Common Problems (and Their Solutions) (The Java ...
If you see any compiler errors, then your program did not successfully compile, and the compiler did not create a .class file. Carefully...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

You should run sjk under same user as target process. Could you try sudo -u graylog jstack PID ? If it would work it should work for sjk too.
great sucess thanks!