java端口占用

端口占用

1.windows

  • netstat -ano | findstr <port> 查找父进程pid;
  • taskkill /F /PID <PID> 杀死进程;

2.linux

  • lsof -i:<port>查找进程ID;
  • kill -9 <PID>

查看内存占用情况

top shift + m 根据内存排序

posted @ 2023-12-18 11:12  与否业务NOW  阅读(25)  评论(0)    收藏  举报