I have a java process named app created under abc user. Now, when I am executing the jcmd command as abc user to list the java processes, it is not listing the app. At the same time, ps aux | grep java
command is listing it. Only jcmd command has the issue.
Asked
Active
Viewed 255 times
0

OneCricketeer
- 179,855
- 19
- 132
- 245

Eli Johnes
- 301
- 3
- 13
-
You can use `jps` to list java processes. I am not aware what `jcmd` is for – OneCricketeer Sep 30 '22 at 05:11
-
1Thanks. But,I need to use jcmd because I have to get the JFR. – Eli Johnes Sep 30 '22 at 05:11
-
Java process is started as a jar under the same user in which jcmd is grouped. – Eli Johnes Sep 30 '22 at 10:53
-
Which JDK version and OS? – Kire Haglin Sep 30 '22 at 22:45
-
I am using JDK 11 and linux OS – Eli Johnes Oct 03 '22 at 03:54