JVM monitoring: now cannot connect via jconsole (can via VisualVM) “Connection failed: Retry?”

风流意气都作罢 提交于 2020-03-05 03:11:28

问题


Several days ago connection to local java process via jconsole took several seconds, now when I run same app (JMeter), I cannot connect via jconsole: after selecting local process it "thinks" for about minute or two then writes Connection failed: Retry?. App itself works just as before, producing correct output etc. VisualVM connects eventually after several minutes. Short of restarting laptop, what can I do to get back option of connecting to monitor java VM via jconsole? What additional info should I add to the question to identify the cause of the problem? I see I can try to increase timeout (how? I do not see preferences in jconsole GUI menu). But why now timeout happens on the first place...

I could not find info on my problem via web search, problems I've found were mostly about remote connection issues.

System: MacOS Mojave, JVM hotspot:

java version "13" 2019-09-17
Java(TM) SE Runtime Environment (build 13+33)
Java HotSpot(TM) 64-Bit Server VM (build 13+33, mixed mode, sharing)

来源:https://stackoverflow.com/questions/58602188/jvm-monitoring-now-cannot-connect-via-jconsole-can-via-visualvm-connection-f

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!