Comments (10)
Unfortunately, this is not a jvmtop limitation/bug but a security restriction
built in the (target) JVM to prevent other users to get insight in processes
which they don't own, root included.
For the same reason you can't connect to these processes neither using the
official monitoring tools like jconsole, even under root.
There might be a chance to spoof this security security check if jvmtop is
running under root however further investigation is required to see if this is
possible at all.
If you want to help you can look at the following question which is describing
the details for such a spoof:
http://stackoverflow.com/questions/15974356/unix-sockets-is-it-possible-to-spoof
-getsockopt-so-peercred
Original comment by [email protected]
on 23 May 2013 at 4:15
from jvmtop.
[deleted comment]
from jvmtop.
[deleted comment]
from jvmtop.
One point about your response (thanks by the way), with root I can connect
JConsole to all JVMs on the system, regardless who the owner is.
Original comment by [email protected]
on 23 May 2013 at 5:23
from jvmtop.
I just tried this - and you're right, it definitely works - at least on linux
and the oracle jdk 6.
Thank you - no idea why I had this incorrect fact in my mind.
I'll investigate this further - stay tuned for an update.
Original comment by [email protected]
on 23 May 2013 at 7:21
from jvmtop.
[deleted comment]
from jvmtop.
Can you please retry this (under root), using the release candidate:
http://jvmtop.googlecode.com/files/jvmtop-0.4.2.tar.gz
Original comment by [email protected]
on 24 May 2013 at 10:24
from jvmtop.
Thank you sir!!! It works perfectly!
I tried both the regular and detailed view, and as long as I am root, I can
attach to everything.
I will definitely keep an active watch on this project as it is very good for
my needs.
Regards, Nic.
Original comment by [email protected]
on 24 May 2013 at 1:20
from jvmtop.
Fixed in version 0.5.0
You're welcome - and thanks for your quick retest.
Original comment by [email protected]
on 24 May 2013 at 1:33
- Changed state: Fixed
from jvmtop.
For followers, fix for me was to run jvmtop as the same user the java process was running under, FWIW...
from jvmtop.
Related Issues (20)
- Open Source Profiling tool (JVM level) HOT 6
- jvmtop.sh is not executable in the tar distro file. Etc.
- JAVA_HOME detection fails HOT 5
- 0.8.0 alpha version ERROR: Connection refused/acces denied HOT 2
- Add ability to see more or less than top 20 via option in --profile mode
- Java 9 support
- Issue while executing on remote server
- java.net.SocketTimeoutException: Read timed out
- Is this project still alive or do we have alternatives? HOT 7
- Stop changing order in the output HOT 2
- present jvm name instead of main class
- License change plan HOT 3
- Address already in use
- Seems that "wrong CPU/GC values for IBM J9 jvms" are not fixed yet
- running continuously
- Issue with Java 11 (no tools.jar existent) HOT 5
- /usr/lib/jvm/java-11-openjdk-amd64/bin seems to be no JDK! HOT 5
- CPU Usage >100%
- amazon-corretto seems to be no JDK!
- Please publish updated version for java 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jvmtop.