【问题标题】:Error when connecting JProfiler to JBoss 4将 JProfiler 连接到 JBoss 4 时出错
【发布时间】:2013-10-01 14:48:40
【问题描述】:

我想分析在 JBoss 4 上运行的 Java EE 应用程序。我使用 Ubuntu。 Java 1.5。 JProfiler 8.0.1。服务器是 Jboss 4。一旦我将主机设置为 localhost 并尝试配置文件,(新会话 - > 附加 - > 附加到配置文件 JVM(本地或远程)) JProfiler 说,“无法连接到 localhost:8849。请确保远程地址正确”。但在终端中,它显示 JBoss 正在启动,我也可以访问 Web 应用程序。我想跟踪所有创建 java Ojbect 及其大小。我该如何解决这个问题?

编辑:JProfiler 的错误日志文件显示。

sun.awt.X11.XException: Cannot write XdndAware property
at sun.awt.X11.XDnDDropTargetProtocol.registerDropTarget(Unknown Source)
at sun.awt.X11.XDropTargetRegistry.registerDropSite(Unknown Source)
at sun.awt.X11.XWindowPeer.addDropTarget(Unknown Source)
at sun.awt.X11.XComponentPeer.addDropTarget(Unknown Source)
at java.awt.dnd.DropTarget.addNotify(Unknown Source)
at java.awt.Component.addNotify(Unknown Source)
at java.awt.Container.addNotify(Unknown Source)
at javax.swing.JComponent.addNotify(Unknown Source)
at java.awt.Container.addNotify(Unknown Source)
at javax.swing.JComponent.addNotify(Unknown Source)
at java.awt.Container.addNotify(Unknown Source)
at javax.swing.JComponent.addNotify(Unknown Source)
at java.awt.Container.addNotify(Unknown Source)
at javax.swing.JComponent.addNotify(Unknown Source)
at java.awt.Container.addNotify(Unknown Source)
at javax.swing.JComponent.addNotify(Unknown Source)
at java.awt.Container.addImpl(Unknown Source)
at java.awt.Container.add(Unknown Source)
at com.ejt.framework.gui.aq.b(ejt:290)
at com.ejt.framework.wizard.o.b(ejt:43)
at com.ejt.framework.wizard.o.<init>(ejt:18)
at com.ejt.framework.wizard.g.b(ejt:125)
at com.jprofiler.frontend.d.a.p.actionPerformed(ejt:29)
at com.jprofiler.frontend.g.g.l(ejt:63)
at com.jprofiler.frontend.g.g.a(ejt:17)
at com.jprofiler.frontend.g.h.run(ejt:56)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$400(Unknown Source)
at java.awt.EventQueue$2.run(Unknown Source)
at java.awt.EventQueue$2.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)

【问题讨论】:

  • java 5?!?!?!?!?!?!?!??!?!?!?!! (默默流泪
  • 因为另一个顾虑,应该使用java 5。 :)
  • JBoss 运行哪个端口?我相信分析器附加到不同的端口(8849)。你能做一个 netstat 看看是否有东西在 8849 监听传入连接吗?你能检查一下吗:stackoverflow.com/questions/8053484/…
  • 是的,但它可能的 jprofiler 的最新版本已经放弃了对 j5 的支持(可能,我不确定)。 j5 自 2009 年以来一直 EOL。:( 甚至 Java 6 今年早些时候也已 EOL
  • JBoss 监听:8080。然而,在 JPRfiler 下载页面,他们说,它支持 java 5 !!!并且端口 8849 没有被另一个进程使用。

标签: java jakarta-ee jprofiler


【解决方案1】:

可能没有对 JBoss 进行分析,即未加载分析代理。

您必须使用集成向导来修改 JBoss 启动脚本。

调用

会话->集成向导->新服务器集成

选择 JBoss 4.x 并按照向导中的步骤操作。

【讨论】:

  • 我正在使用试用版。但是,当我单击菜单中的“新服务器集成”时,什么也没有发生。
  • 你在什么平台上运行?是否有 $TEMP/jprofiler_error.log 文件?
  • 请使用 Ubuntu 提供的 OpenJDK,而不是 Oracle 网站上的 JRE。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2018-03-19
  • 2014-11-04
相关资源
最近更新 更多