$ netstat -anp|grep LISTEN
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:10112 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:49160 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN -
tcp6 0 0 :::3700 :::* LISTEN 22423/java
tcp6 0 0 :::8181 :::* LISTEN 22423/java
tcp6 0 0 ::1:25 :::* LISTEN -
tcp6 0 0 10.21.0.113:7676 :::* LISTEN 22423/java
tcp6 0 0 :::57598 :::* LISTEN -
tcp6 0 0 :::40607 :::* LISTEN 22423/java
tcp6 0 0 :::7776 :::* LISTEN 22423/java
tcp6 0 0 :::10112 :::* LISTEN -
tcp6 0 0 :::60737 :::* LISTEN 22423/java
tcp6 0 0 :::3820 :::* LISTEN 22423/java
tcp6 0 0 :::8686 :::* LISTEN 22423/java
tcp6 0 0 :::46575 :::* LISTEN 22423/java
tcp6 0 0 :::111 :::* LISTEN -
tcp6 0 0 :::3920 :::* LISTEN 22423/java
tcp6 0 0 :::51952 :::* LISTEN 22423/java
tcp6 0 0 :::4848 :::* LISTEN 22423/java
tcp6 0 0 :::8080 :::* LISTEN 22423/java
unix 2 [ ACC ] STREAM LISTENING 2820 - /run/lvm/lvmetad.socket
unix 2 [ ACC ] SEQPACKET LISTENING 2823 - /run/udev/control
unix 2 [ ACC ] STREAM LISTENING 2826 - /run/systemd/journal/stdout
unix 2 [ ACC ] STREAM LISTENING 12388 - /run/rpcbind.sock
unix 2 [ ACC ] STREAM LISTENING 382 - /var/run/dbus/system_bus_socket
unix 2 [ ACC ] STREAM LISTENING 385 - /run/acpid.socket
unix 2 [ ACC ] STREAM LISTENING 2796 - /run/systemd/private
Here you can see 22423 is pid of glassfish instance. 3700 - 8181 - 7676 - 8686 - 3920 - 4848 - 8080 are ports defined in admin interface and domain.xml. However still there are random ports for glassfish instance even there is no declaration in neither asadmin instance nor domain.xml. After a bit googling thanks to "http://www.randombugs.com/java/glassfish/changeing-defaults-ports-jms-glassfish.html" we have fixed random ports with setting "Start Arguments" of Java Message Service Tab with values:
-Dimq.jms.tcp.port=37000 -Dimq.ssljms.tls.port=37001 -Dimq.admin.tcp.port=37002 -Dimq.ssladmin.tls.port=37003
After several restarts we approved that ports were fixed to values.
~$ netstat -anp|grep LISTEN|grep 27129
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
tcp6 0 0 :::3700 :::* LISTEN 27129/java
tcp6 0 0 :::8181 :::* LISTEN 27129/java
tcp6 0 0 10.21.0.113:7676 :::* LISTEN 27129/java
tcp6 0 0 :::7776 :::* LISTEN 27129/java
tcp6 0 0 :::37000 :::* LISTEN 27129/java
tcp6 0 0 :::37002 :::* LISTEN 27129/java
tcp6 0 0 :::3820 :::* LISTEN 27129/java
tcp6 0 0 :::8686 :::* LISTEN 27129/java
tcp6 0 0 :::3920 :::* LISTEN 27129/java
tcp6 0 0 :::4848 :::* LISTEN 27129/java
tcp6 0 0 :::8080 :::* LISTEN 27129/java
Hiç yorum yok:
Yorum Gönder