How can I know the debug port number of jvm (Java Virtual Machine) in Linux?
Asked
Active
Viewed 3,501 times
1
-
Are you talking about the Java Virtual Machine (jvm)? If yes, which port are you looking for? The debug port? – Stefan Endrullis Jun 21 '15 at 08:39
-
Yes Java Virtual Machine. Yes the debug port – code chimp Jun 21 '15 at 08:45
2 Answers
2
I'm pretty sure that the debug port is not enabled by default. You have to enable it via the -Xdebug parameter. Here is an example how to start java with enabled debugging and port 8000 as debug port:
java -Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n ...

Stefan Endrullis
- 186
-
Yes this was my solution: -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8000 – code chimp Jun 21 '15 at 10:33
1
As per Stefan Endrullis suggestion, This was my solution:
-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8000

code chimp
- 53
- 1
- 6