patric-r / jvmtop

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

how the jvmtop tools to monitor other user's jvm process? #93

Closed panshiming closed 7 years ago

panshiming commented 7 years ago

In my work, I need to monitor all the jvm process of one machine, and these jvm process are not under same users, so it is very urgent to monitor target process run under the different user as jvmtop , is there any way to solve this case? thanks

patric-r commented 7 years ago

You can try running jvmtop as root. But depending on your actual JDK this might or might not solve your problem. Due to security constraints within the JDK other users processes cannot be monitored. (Un)fortunately, these cannot be bypassed (except for root in some cases).

Please note the FAQ, too.

panshiming commented 7 years ago

Very unfortunately, when running jvmtop as root , it still can not work!