Address localhost:1099 is already in use:tomcat频繁重启端口占用问题

错误提示

复制代码
Unable to open debugger port (127.0.0.1:58198): java.net.SocketException "Socket closed"

Address localhost:1099 is already in use

端口被占用

报错原因

  1. 由于短时间内频繁运行tomcat服务器

  2. 为了避免出现这一错误。可以点击刷新uodate resources,在地址栏输入文件名的方式运行文件,进而显示页面。

解决

cmd命令

复制代码
netstat -aon|findstr 1099   //找到端口
taskkill -f -pid 17600     //杀死

重启Tomcat

相关推荐
fTiN CAPA3 小时前
Spring Boot中Tomcat配置
spring boot·tomcat·firefox
计算机学姐5 小时前
基于SpringBoot的特色美食分享系统
java·vue.js·spring boot·后端·spring·tomcat·mybatis
geBR OTTE19 小时前
SpringBoot(整合MyBatis + MyBatis-Plus + MyBatisX插件使用)
spring boot·tomcat·mybatis
刘~浪地球1 天前
Nginx + Tomcat 整合实战(五):性能优化与缓存策略
nginx·性能优化·tomcat
2601_949818091 天前
记录 idea 启动 tomcat 控制台输出乱码问题解决
java·tomcat·intellij-idea
Brandon汐1 天前
HAProxy+Keepalived+MariaDB+tomcat+Prometheus+Grafana高可用部署
云原生·tomcat·grafana·prometheus·mariadb·keepalived·haproxy
xxjj998a1 天前
若依部署Nginx和Tomcat
运维·nginx·tomcat
刘~浪地球1 天前
Nginx + Tomcat 整合实战(六):安全加固与生产部署
nginx·安全·tomcat
hutengyi1 天前
保姆级JavaWeb项目创建、部署、连接数据库(tomcat)
数据库·tomcat·firefox
難釋懷1 天前
OpenResty实现Tomcat查询
tomcat·firefox·openresty