How to enable JVM remote debug?

xqliu
PRO

a year ago

I have opened port 5005 and enabled jvm debug on the java process, but seems can not connect from IDE.

how could we expose the port via TCP instead of http? thanks !

Solved

9 Replies

xqliu
PRO

a year ago

I have used the V2 runtime and binding domain backend-demo-812a.up.railway.app to the jvm debug port 5005, but can not connect from local idea, it would be great if you could offer some insight and help regarding connect jvm debug.

Thanks :)


a year ago

You may need to do a fresh deploy and expose the service via TCP. I believe that we can't do HTTP and TCP connections at the same time. I am circling back with our network engineer just to confirm.

Thanks,

Angelo


xqliu
PRO

a year ago

Hi, anything I can do? I have did many fresh deploy and don't know how to expose the service via TCP , thanks :) any document would be quite appreciate :)


a year ago

If you currently have it exposed via http you would need to remove all the http domains because you can not do http and TCP yet.


xqliu
PRO

a year ago

Any document which I can refer to? thanks :)


a year ago

No need for a document, you will need to deploy a fresh service enabling the TCP proxy, you can't have both HTTP and TCP connections open to a single service.


xqliu
PRO

a year ago

Dear, thanks for your reply, I have set the TCP mapping , and also enabled the debug on 5005 port, but when I start the app, it shows 5005 port is in use.

Not sure what's the issue.

Any suggestion? thanks :)


a year ago

We don't do anything here, this is likely an application error on your part dual assigning, try a different port?


xqliu
PRO

a year ago

Nevermind, I will not try this direction, failed.

Thanks, just close this ticket pls


Status changed to Awaiting Railway Response Railway 12 months ago


Status changed to Solved ray-chen 12 months ago


How to enable JVM remote debug? - Railway Help Station