Oracle WebLogic Server 12c: Administration I — Question 13
The startup of a WebLogic Server instance fails with the error message: java.net.BindException:Address already in use
Which two methods help identify what is currently listening at the port and the Ip this server is configured to be bound to? (Choose two.)
Answer options
- A. The pmap command lists all processes running with their associated port number.
- B. The UNIX lsof command can report information on the process that is listening at a particular IP and port on the local machine.
- C. netstat, which is available on Windows and Linux/UNIX, can report on the process bound to this IP and port.
- D. pstat will report detailed runtime statistics on any process currently listening at this IP and port.
- E. The Linux port watching tool PortInfo can raise an alert anytime a process attempts. succeeds, or fails to connect to a specific IP and port. It can also be used to identify if a port is being used by a java process.
Correct answer: B, C
Explanation
Option B is correct because the lsof command provides detailed information about open files and the processes associated with them, including ports. Option C is also correct as netstat can display network connections, routing tables, and interface statistics, helping identify which process is using the specified port. Options A, D, and E are incorrect because pmap and pstat do not provide the necessary information, and while PortInfo is a useful tool, it is not a standard method for checking open ports.