2

我有一个 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.
4

1 回答 1

0

从 Glassfish JIRA Server 看一下这个问题。

https://java.net/jira/browse/GLASSFISH-12744

于 2015-08-13T13:42:15.827 回答