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
JVM debug port 7779 is in use
提问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 文件时可能会导致此端口使用问题的原因是什么。
- Can you please tell me how to know which application uses this port and how to stop it
- 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.
- 你能告诉我如何知道哪个应用程序使用这个端口以及如何阻止它
- 有没有办法在创建服务器配置文件时更改调试端口?我试图在配置文件创建中查看调试端口,但没有找到任何地方。
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
我解决了这个问题。我能够更改调试端口号。下面是步骤
- Start the server in normal mode (ctrl+Alt+R).
- Go to application server configuration window.
- Click on Debugging service under "Additional properties"
- Update the JVM debug porte.g. 7780
- Update JVM debug argumentsfor address e.g. refer the address=7780 for the below entry
- 以正常模式(ctrl+Alt+R)启动服务器。
- 转到应用程序服务器配置窗口。
- 单击“其他属性”下的调试服务
- 更新JVM 调试端口,例如 7780
- 更新地址的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
- Click on apply
- Click on save
- Stop the server
- Start the server in debug mode (ctrl+Alt+D).
- 点击申请
- 点击保存
- 停止服务器
- 以调试模式(ctrl+Alt+D)启动服务器。
回答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 -ano
You 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。