我有一个glassfish域运行,但我无法获得相关java进程的PID,这是坏了还是我做错了什么?我有FreeBSD 10.1,OpenJDK 1.7.0和Glassfish 4.1。
$ asadmin list-domains -l
DOMAIN ADMIN_HOST ADMIN_PORT RUNNING RESTART_REQUIRED
domain1 127.0.0.1 4848 true false
Command list-domains executed successfully.
$ asadmin list-instances -l
Nothing to list.
Command list-instances executed successfully.
我可以做jps -v
,但是我不能100%确定列出的PID是我的glassfish服务器......
$ jps -v
62737 Jps -Dapplication.home=/usr/local/openjdk7 -Xms8m
修改
确定。 jps
命令绝对不是我想要的 - 这只是表现自己。我也试过
$ asadmin list-instances -l domain1
remote failure: The target, domain1, is not an instance, cluster, domain, node or config.
Command list-instances failed.
和
$ asadmin list-instances -l 127.0.0.1
remote failure: The target, 127.0.0.1, is not an instance, cluster, domain, node or config.
Command list-instances failed.