Reputation: 1938
When I launch jcmd it shows me all java processes except Jetty, why?
JCmd:
[root@test_app_bm 2015_06_01_18_19_47_13098]# /usr/java/latest/bin/jcmd
15152 sun.tools.jcmd.JCmd
21785 DummyTrkPartner.jar
Ps aux:
[root@test_app_bm 2015_06_01_18_19_47_13098]# ps aux | grep java
jetty 13098 13.8 74.4 7048352 2957192 ? Sl 18:19 4:29 /usr/java/latest/bin/java -Xmx1800m -Xms256m -XX:+UseG1GC -Dhttps.proxyHost=1.1.1.1 -Dhttps.proxyPort=3128 -Dhttp.proxyHost=1.1.1.1 -Dhttp.proxyPort=3128 -Dhttp.nonProxyHosts=localhost -Djetty.logs=/usr/local/jetty/logs -Djetty.home=/usr/local/jetty -Djetty.base=/usr/local/jetty -Djava.io.tmpdir=/usr/local/jetty/work -jar /usr/local/jetty/start.jar jetty.state=/usr/local/jetty/work/jetty.state jetty-logging.xml jetty-started.xml start-log-file=/usr/local/jetty/logs/start.log
root 15165 0.0 0.0 103244 864 pts/0 S+ 18:52 0:00 grep java
root 21785 0.1 2.4 3541704 96728 ? Sl Apr29 48:52 java -jar DummyTrkPartner.jar
[root@test_app_bm 2015_06_01_18_19_47_13098]#
Upvotes: 0
Views: 472
Reputation: 416
Check your /tmp:
drwxr-xr-x. 2 lace lace 4096 Oct 9 2021 /tmp/hsperfdata_lace/
drwxr-xr-x 2 reguser reguser 4096 Feb 22 16:40 /tmp/hsperfdata_nobody/
^^^^^^^ ^^^^^^^ MISMATCH ^^^^^^
drwxr-xr-x. 2 root root 4096 May 11 18:22 /tmp/hsperfdata_root/
Each /tmp/hsperfdata_XXX directory should be owner by user XXX.
Upvotes: 0
Reputation: 6325
Sounds like a permissions issue. From your console excerpt, I see "jetty" running as a user, with you being logged in as root.
Run the command as the user "jetty" and you should be able to run jcmd.
Upvotes: 3