问题: 我有一个 J2EE 应用程序,对于使用特定数据集的给定任务(生成一些文件),该应用程序运行速度非常慢。我决定在应用程序上运行 visualvm 分析器以了解问题的性质。该应用程序使用最新的 Java 8 在 Widlfly 10 上运行。
为了避免配置复杂性,分析器(visualvm)和 Wildfly 服务器都在本地运行。
遇到的第一个问题是 JVMTI 错误 62,这是使用-Xverify:none作为 jvm 参数解决的。
第二个问题(阻塞问题)是,如果我在应用程序部署和运行时运行探查器,Wildfly 部署扫描器会抛出如下异常:
13:19:04,476 INFO [stdout] (*** Profiler Agent Communication Thread) Profiler Agent: Waiting for connection on port 5140 (Protocol version: 15)
13:19:04,517 INFO [stdout] (*** Profiler Agent Communication Thread) Profiler Agent: Established connection with the tool
13:19:04,847 INFO [stdout] (*** Profiler Agent Communication Thread) Profiler Agent: Local accelerated session
13:19:15,984 WARN [org.jboss.as.ejb3.timer] (EJB default - 6) WFLYEJB0043: A previous execution of timer [id=e6a6ea46-6c2a-466d-b767-cccc8d5021a9 timedObjectId=ecs.ecs.BatchCoordinator auto-timer?:false persistent?:false timerService=org.jboss.as.ejb3.timerservice.TimerServiceImpl@142b16ca initialExpiration=Sun Aug 05 13:17:05 COT 2018 intervalDuration(in milli sec)=5000 nextExpiration=Sun Aug 05 13:19:15 COT 2018 timerState=IN_TIMEOUT info=null] is still in progress, skipping this overlapping scheduled execution at: Sun Aug 05 13:19:15 COT 2018.
13:19:16,025 ERROR [org.jboss.as.controller.management-operation] (DeploymentScanner-threads - 1) WFLYCTL0013: Operation ("read-resource") failed - address: ([("deployment" => "my_application.war")]): java.lang.NoClassDefFoundError: org/jboss/as/controller/AttributeDefinition$$Lambda$157
如果我在没有部署任何应用程序的情况下运行探查器,VisualVM 的探查器将毫无问题地启动;但是,如果我尝试在此状态/操作模式下部署我的应用程序,则wildfly 扫描程序永远不会启动,也永远不会部署该应用程序。
那么,我做错了什么?
翻翻过去那场雪
相关分类