如何列出glassfish实例?

时间:2015-08-13 13:34:29

标签: java glassfish freebsd openjdk glassfish-4.1

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

1 个答案:

答案 0 :(得分:0)

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

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