https://blog.csdn.net/zqz_zqz/article/details/80922164
window上运行以下代码获取jvm进程:
List
抛出ERROR:
java.util.ServiceConfigurationError: com.sun.tools.attach.spi.AttachProvider: Provider sun.tools.attach.WindowsAttachProvider could not be instantiated
问题原因${JAVA_HOME}/jre/bin/attach.dll 文件没有找到,将这个文件复制到${JAVA_HOME}/bin/目录下即可;前提是${JAVA_HOME}/bin/目录已经加入到操作系统的path环境变量下;