Java JVM 调试端口 7779 正在使用中

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/20117457/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-12 23:16:03  来源:igfitidea点击:

JVM debug port 7779 is in use

javaibm-rad

提问by santu

I am using RAD 8. When I start the server in debug mode, it displays a error message states that JVM debug port 7779 is in use. I had this problem many times as I know this port was used by RAD. So I had to stop the process with image name "Java" under Window Task Manager>Processes. But however for the first time I face this issue without no such "java" process running in Window task manager. In my knowledge none of the IBM product does use this port presently. I have even tried to restart my system and started the RAD, but still the issue remained same.

我正在使用 RAD 8。当我在调试模式下启动服务器时,它显示一条错误消息,指出JVM debug port 7779 is in use. 我多次遇到这个问题,因为我知道这个端口是由 RAD 使用的。所以我不得不在 Window Task Manager>Processes 下停止图像名称为“Java”的进程But however for the first time I face this issue without no such "java" process running in Window task manager. 据我所知,目前没有任何 IBM 产品使用此端口。我什至尝试重新启动系统并启动 RAD,但问题仍然存在。

I deleted the profile and re-created a new one. After that I started in debug more. And it started without any error.

我删除了配置文件并重新创建了一个新配置文件。之后,我开始进行更多的调试。它开始没有任何错误。

But again to get all the resources imported from my friends server, I got his .car file. After importing this I started the server and got the same issue. Now wondering what could cause this port used issue when just importing the .car file.

但是为了再次从我的朋友服务器导入所有资源,我得到了他的 .car 文件。导入后,我启动了服务器并遇到了同样的问题。现在想知道在导入 .car 文件时可能会导致此端口使用问题的原因是什么。

  1. Can you please tell me how to know which application uses this port and how to stop it
  2. Is there a way I can change the debug port while creating the server profile? I tried to see the debug port in profile creation but didn't find anywhere.
  1. 你能告诉我如何知道哪个应用程序使用这个端口以及如何阻止它
  2. 有没有办法在创建服务器配置文件时更改调试端口?我试图在配置文件创建中查看调试端口,但没有找到任何地方。

Friends please share me if you have any input. I will share if I get the root cause of this

如果你有任何意见,请分享我的朋友。如果我得到这个的根本原因,我会分享

采纳答案by santu

I got the issue fixed. I was able to change the debug port number. Below are the steps

我解决了这个问题。我能够更改调试端口号。下面是步骤

  1. Start the server in normal mode (ctrl+Alt+R).
  2. Go to application server configuration window.
  3. Click on Debugging service under "Additional properties"
  4. Update the JVM debug porte.g. 7780
  5. Update JVM debug argumentsfor address e.g. refer the address=7780 for the below entry
  1. 以正常模式(ctrl+Alt+R)启动服务器。
  2. 转到应用程序服务器配置窗口。
  3. 单击“其他属性”下的调试服务
  4. 更新JVM 调试端口,例如 7780
  5. 更新地址的JVM 调试参数,例如参考 address=7780 以获取以下条目

-Dcom.ibm.ws.classloader.j9enabled=true -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=7780

-Dcom.ibm.ws.classloader.j9enabled=true -agentlib:jdwp=transport=dt_socket,server=y,suspend=n, address=7780

  1. Click on apply
  2. Click on save
  3. Stop the server
  4. Start the server in debug mode (ctrl+Alt+D).
  1. 点击申请
  2. 点击保存
  3. 停止服务器
  4. 以调试模式(ctrl+Alt+D)启动服务器。

Below are the screenshot where you can change the port.

Below are the screenshot where you can change the port.

回答by Pardha Saradhi

Response to your first question: Open the command line and enter the following command to list all the port numbers(IP with port number) and the process id for the respective port: netstat -anoYou can kill the process for the required port with the command : taskkill -f /PID <PID_NO>

回答您的第一个问题:打开命令行并输入以下命令以列出所有端口号(带有端口号的IP)和相应端口的进程ID:netstat -ano您可以使用以下命令终止所需端口的进程:taskkill -f /PID <PID_NO>

For instance, you'll see four columns something like 0:0:0:port_no and 1234(last column - PID) then execute the command taskkill -f /PID 1234.

例如,您将看到四列类似于 0:0:0:port_no 和 1234(最后一列 - PID),然后执行命令 taskkill -f /PID 1234。