Rac*_*hel 9 java eclipse profiling web-applications jprofiler
我有一个在我的localhost上运行的应用程序,我想分析应用程序,看看如何增强应用程序的性能.我正在按照定义执行设置步骤,但它无法连接到localhost服务器,是否有适当的分步指南可用于如何:
我有与此问题类似的问题,但我无法理解解决方案,对此的任何建议都将非常感激.
我现在尝试了一段时间没有成功配置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`
Run Code Online (Sandbox Code Playgroud)
使用JProfiler进行性能分析时,建议不要在eclipse中手动将VM参数添加到运行配置中.
有关eclipse IDE集成的更多信息,请参阅此屏幕演示和此帮助页面.然后,您可以使用eclipse运行配置来分析JBoss,而无需添加任何VM参数.
还有其他方法可以在不手动添加任何VM参数的情况下进
最简单的入门方法是使用JProfiler中的"快速附加"功能.通过"Session-> Quick Attach",您可以获得正在运行的JVM列表,您无需添加任何JVM参数即可对其进行分析.
如果您在上面的步骤中错过了源代码导航到eclipse,如果安装了JProfiler插件,则在eclipse中可以使用相同的操作.

对于您收到的错误消息,我怀疑它C:\Users\user\.jprofiler6\config.xml不存在.减少参数-agentpath:C:\Users\user~1.DOS\SOFTWA~1\JPROFI~1\bin\WINDOW~1\jprofilerti.dll=port=8849将起作用,然后JBoss VM将等到您从JProfiler连接"附加到JVM(本地或远程)"类型的会话.无论如何,只有在特殊情况下才需要手动添加VM参数.
| 归档时间: |
|
| 查看次数: |
64726 次 |
| 最近记录: |