问题
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