Hi Santosh. I don't have any answers for you. I too have noticed this when
Glassfish starts. It grabs additional ports, usually the first free one it
can find. I can also confirm that the ports will change after a restart.
This behaviour causes us some problems in our development environment, where
we have multiple glassfish servers running on a single box. Frequently, one
domain cannot start because another running domain has pinched a port
reserved for the first domain. At the bare minimum, it would be nice if the
code using the port would check /etc/services (if applicable) to prevent
from using a port explicitly reserved.
I"d be interested in any answer you get. :)
Thanks,
Ed
On Tue, Mar 22, 2011 at 5:37 AM, Santosh Haranath <
santosh.haranath_at_quberasolutions.com> wrote:
> We are implementing network hardening in our data center and would like to
> know all the ports opened by Glassfish 2.1.1. After identifying each port
> will add network rules for each port and host. Using lsof command I was able
> it get list of listeners opened by glassfish process but could not find
> documentation for each port. Can anyone help me identify use of each port?
>
> IIOP java 22652 jes 330u IPv6 17297464 TCP
> *:33700 (LISTEN)
> IIOP_SSL java 22652 jes 334u IPv6 17297469
> TCP *:33820 (LISTEN)
> IIOP_SSL_MUTUL java 22652 jes 335u IPv6 17297472
> TCP *:33920 (LISTEN)
> JMX_SYSTEM java 22652 jes 342u IPv6 17297523
> TCP *:38686 (LISTEN)
> JMS java 22652 jes 359u IPv6 17297549 TCP
> *:37676 (LISTEN)
> HTTP java 22652 jes 381u IPv6 17297603 TCP
> *:38080 (LISTEN)
> HTTPS java 22652 jes 400u IPv6 17297616 TCP
> *:38181 (LISTEN)
> ADMIN java 22652 jes 404u IPv6 17297619 TCP
> *:8048 (LISTEN)
>
> domain.xml does not identify following ports.
>
> java 22652 jes 370u IPv6 17297570 TCP *:35796
> (LISTEN)
> java 22652 jes 371u IPv6 17297571 TCP *:49733
> (LISTEN)
> java 22652 jes 372u IPv6 17297574 TCP *:53063
> (LISTEN)
> java 22652 jes 121u IPv6 17297282 TCP
> localhost.localdomain:52869 (LISTEN)
> java 22652 jes 284u IPv6 17297417 TCP *:9701
> (LISTEN)
> java 22652 jes 344u IPv6 17297529 TCP *:56790
> (LISTEN)
> java 22652 jes 350u IPv6 17297536 TCP *:42368
> (LISTEN)
> java 22652 jes 366u IPv6 17297562 TCP *:49870
> (LISTEN)
>
>
> Also, would like to know how to ensure that none of these ports change
> after restart.
>
>
>
> --
>
> Best Wishes,
> Santosh Haranath
> Current Time Zone: PST or MST
>
>
>
>
> Copyright 2011 Qubera Solutions, Inc. All rights reserved.
>
> This communication is the property of Qubera Solutions and may contain confidential and/or privileged information. This communication has been transmitted for the exclusive use of the intended recipient. If you are not the intended recipient, please notify the sender, delete the email and destroy any copies of it. You may not otherwise distribute, copy, or use this communication or the information within it in any manner. Thank you for your cooperation.
>
>
>