【发布时间】:2011-12-24 14:32:56
【问题描述】:
我有一个在我的本地主机上运行的应用程序,我想分析该应用程序以了解如何提高应用程序的性能。我正在按照定义执行设置步骤,但它无法连接到本地主机服务器,是否有正确的分步指南来说明如何:
- 配置 JProfiler 以使用在 localhost 上运行的应用程序?
- 如何分析以及在分析应用程序时要查找哪些区域?
- 使用 Eclipse IDE 配置 JProfiler,现在可以在 eclipse 的运行下拉菜单中看到配置文件,但它们没有被激活,那么如何激活它?
我有与question 类似的问题,但我无法理解解决方案,对此的任何建议将不胜感激。
我尝试了一段时间,但没有成功配置 JProfiler 以使用在 localhost 上运行的应用程序,任何建议都将受到高度赞赏。
我是分析应用程序世界的新手,如果您能提供一些有用的指针,我将不胜感激
我收到以下错误消息:
Could not connect to 127.0.0.1:8849. Please make sure that the remote address is correct, the remote program is started properly, and the network route allows socket connections. 并且我已经使用新服务器集成设置了配置,但不确定还需要做什么以及如何解决这个问题。
在运行配置下将-agentpath:C:\Users\user~1.DOS\SOFTWA~1\JPROFI~1\bin\WINDOW~1\jprofilerti.dll=port=8849,nowait,id=117,config=C:\Users\user\.jprofiler6\config.xml 添加到vm arguments 之后,当我运行配置时,我得到了
JProfiler> Protocol version 32
JProfiler> Using JVMTI
JProfiler> JVMTI version 1.1 detected.
JProfiler> 64-bit library
JProfiler> Don't wait for frontend to connect.
JProfiler> Using config file C:\Users\user\.jprofiler6\config.xml (id: 117)
JProfiler> Could not find session with id: 117`
【问题讨论】:
标签: java eclipse web-applications profiling jprofiler