patric-r / jvmtop

Java monitoring for the command-line, profiler included
GNU General Public License v2.0
1.22k stars 252 forks source link

Almost perfect tool but... #82

Open ChrisMullard opened 8 years ago

ChrisMullard commented 8 years ago

...only shows processes for the current user.

Would be awesome if you could show all user processes when run in admin mode or be able to specify a user.

Thanks

mskadu commented 7 years ago

Hi, isn't that easily fixed by using sudo? Or by invoking jvmtop by using a shell script that is "run as" a root/ root-like user? That's how I do it.

EDIT: what I wrote above is rubbish (ignore me!). As the FAQ pointed to by @patric-r below rightly says jvmtop will need to run under the same user as the target.

If it is of any value, I was able to run jvmtop with a JVM that was newer than the one target was running on.

patric-r commented 7 years ago

@ChrisMullard you can try running jvmtop as root. But depending on the actual JDK this might or might not help. The reasons are security limitations within the JDK which cannot be bypassed by jvmtop. Please note the FAQ, too