VisualVM is unable to profile a web application on Eclipse

五迷三道 提交于 2019-12-05 07:59:28

Probably an issue with an incomplete classpath when the VisualVM plugin launches Tomcat. You could try to correct the classpath of the start configuration which you created (e.g. try to add bin/tomcat-juli.jar from your tomcat installation) but I doubt this will work easily.

You can try the following:

  • start your Tomcat, e.g. from Eclipse
  • then manually start VisualVM: It is actually part of the JDK and located in <JDK dir>/bin/jvisualvm(.exe)
  • in the application list you should see the Tomcat process and then you can open it with a double click.

Try using Java Mission Control by running jmc. It is included in recent versions of the JDK. See the getting started doc at http://docs.oracle.com/javacomponents/jmc-5-5/jmc-user-guide/index.html

Run your application, then open the jmc window and connect to the Tomcat process.

This is caused when a class file that your code depends on is not found at run time. This is purely an issue with the class path. Either the class is not exists in the class path or you have a different version of JAR file in the class path. The exception will go away if the class path is corrected.

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