문제

I have a java program in a weird condition where it has stopped running a certain thread.

I would like to connect to it using JMX, but I didn't provide the JMX arguments.

I could restart but then I would loss the information of the current condition.

I know that on Windows it can connect with jconsole on localhost without parameters, but my java app is running on a Linux server.

So any ideas on how to still be able to connect even without jmx parameters?

도움이 되었습니까?

해결책

JConsole works on linux also. If the linux server have xhost or some remote displaying capability, I would just run jconsole on the linux server.

If you didn't enable JMX when the java program was started, you would not be able to connect remotely via JMX.

다른 팁

I found out that there is an option to dump the threads:

kill 3

Used it and found the reason.

Thank you.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top