Jetty doesn't show up in jcmd

434 Views Asked by At

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]# 
1

There are 1 best solutions below

5
On BEST ANSWER

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.