M BUZZ CRAZE NEWS
// news

How to find the port number of jvm which is running in ubuntu

By Emma Johnson

How can I know the debug port number of jvm (Java Virtual Machine) in Linux?

2

2 Answers

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 ...
1

As per Stefan Endrullis suggestion, This was my solution:

-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8000

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy