[英]RMI disabled, Java still listens on port 1099
When I execute netstat -tupan
, one of the entries is the following: 当我执行
netstat -tupan
,其中一个条目如下:
tcp 0 0 :::1099 :::* LISTEN 8778/java
However, I have removed all settings concerning RMI and JMX from the options passed to Java when it starts. 但是,我已经从启动时传递给Java的选项中删除了有关RMI和JMX的所有设置。 My questions are:
我的问题是:
Edit: I blocked the port using netcat: nc -l 1099
. 编辑:我使用netcat阻止端口:
nc -l 1099
。 This prompted an error on the application startup, and it turns out that I have an MBean in the application which was automatically picked up by Spring on startup and registered. 这在应用程序启动时引发了错误,结果是我在应用程序中有一个MBean,它在Spring启动时自动获取并注册。
Here is the steps to trace the issue: 以下是跟踪问题的步骤:
java.net.BindException: Address already in use
exception is thrown by the class that tries to listen on port 1099. java.net.BindException: Address already in use
尝试侦听端口1099的类抛出java.net.BindException: Address already in use
异常。 You can work on the issue based on the clue. 您可以根据线索处理问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.