Java thread monitoring jvisualvm and jstack

Five states of threads New: new Run: runnable Waiting: waiting (waiting indefinitely), timed waiting (waiting within a time limit) blocked: blocked End: terminated Thread conversion relationship Two monitoring methods for threads 1. Graphical interface method: jvisualvm Before monitoring, first add monitoring parameters to the jvm. In the catalina.sh file in the bin directory of tomcat, […]

jvisualvm ssl remote connection JVM

jvisualvm remote ssl connection Article directory 1. Unauthenticated JMX connection (unsafe) 2. JMX connection authenticated by SSL certificate (secure) 1. Enter the directory where the certificate is generated and execute the script 2. One-click key generation script: 3. When running the jar package on the server side, enable the ssl connection: 4. Client remote SSL […]

[Solved] Error Starting VisualVM: You are running VisualVM using Java Runtime Environment(JRE).

Problem Reason: JDK’s directory is not properly configured terminal entry /Applications/VisualVM.app/Contents/Resources/visualvm/etc There is a file visualvm.conf in it :wq save and exit to take effect MAC view JDK installation path /usr/libexec/java_home -V mshuoMacBook-Pro:~ mshuo$ /usr/libexec/java_home -V Matching Java Virtual Machines (2): 1.8.201.09 (x86_64) “Oracle Corporation” – “Java” /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home 1.8.0_201 (x86_64) “Oracle Corporation” – “Java […]