question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

error while trying to access java program

See original GitHub issue

so 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:closed
  • Created 7 years ago
  • Reactions:2
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

8reactions
aragozincommented, Sep 15, 2016

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.

0reactions
rsffcommented, Sep 15, 2016
sudo -u graylog java -jar sjk-plus-0.4.2.jar ttop -p 30295
Monitoring threads ...

great sucess thanks!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found