I'm using Glassfish 3+ and deploying the applications to application server. My glassfish instance's port not "8080". when i enter the Glassfish Admin Console and going to Running Applications , i can see the port number which works. For example : 43888. How i can see the port numbers running applications on command prompt? Which asadmin command with?
Asked
Active
Viewed 6,209 times
0
-
how about checking domain.xml? – Denys S. Mar 21 '14 at 12:37
1 Answers
1
The quick and dirty way is to use the following command (on UNIX/Linux):
asadmin get '*' | egrep -i '[._]port[=.][1-9v]' | sort
This gets you most all the port values that are being used in a domain.

vkraemer
- 9,864
- 2
- 30
- 44
-
im using win. i think asadmin command may tell us which port belong to glassfish instance. – Rahman Usta Jul 02 '12 at 13:29
-
2Never heard of this "get" command, and I am running on a UNIX system (OS X ~ FreeBSD). -bash: get: command not found – oligofren Nov 27 '12 at 12:07
-
Rahman: you should install CygWin anyway. It saves you a lot of time when using Windows. – oligofren Nov 27 '12 at 12:08