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.
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.
- 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
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 port e.g. 7780
- Update JVM debug arguments for address e.g. refer the address=7780 for the below entry
-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).
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>
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.
来源:https://stackoverflow.com/questions/20117457/jvm-debug-port-7779-is-in-use