尝试对应用程序进行概要分析时,重新定义失败并显示错误62 [英] Redefinition failed with error 62 while trying to profile an application

查看:58
本文介绍了尝试对应用程序进行概要分析时,重新定义失败并显示错误62的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我尝试在VisualVM的帮助下对应用程序(在Eclipse下准备但要从命令行运行)进行概要分析,则会收到以下错误消息

If I try to profile application, (which is prepared under Eclipse, but running from command line) with the help of VisualVM, I get the following error message

同时,项目文件夹被新创建的类文件弄脏.尽管它们已经存在于 target/classes 中.

Simultaneously, the project folder is fouled with newly created class files. Although they are already existing in target/classes.

项目结构是Maven的,即在当前目录中有一个 target/classes ,我使用以下命令运行该应用程序

The project structure is Maven's, i.e. there is a foder target/classes in current directory and I us the following command to run the application

java -Xmx16g -cp target/classes tests.Runner01

如何解决?

更新

常规的Java项目也是如此.

The same occurs with conventional java project too.

下面是填充的类文件的图片,这些文件位于不应放置的位置

Below it the picture of populated class files, which located where they should not

推荐答案

此处 https://netbeans.org/bugzilla/show_bug.cgi?id=191297 出现了一种解决方法:使用-Xverify:none

Here https://netbeans.org/bugzilla/show_bug.cgi?id=191297 appears a workaround: run profiled application with -Xverify:none

这篇关于尝试对应用程序进行概要分析时,重新定义失败并显示错误62的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆