问题:
如何让 Jprofile 9.1 从特定的托管服务器而不是管理服务器收集数据?
详细信息:
通过使用 Jprofile 向导(配置文件应用程序服务器),我可以将 Jprofile 附加到正在运行的管理服务器,但我找不到任何允许我监视特定托管服务器的选项。
在这个问题中How can I connect Jprofiler with weblogic managed servers?
其中一个答案如下:
You're profiling the wrong server in that case. The VM parameter for JProfiler (-agentpath:...) has to be added to the JVM on which your application is executed.
答案试图指出一些需要完成的参数更改,但尚不清楚如何做到这一点。
最佳答案
这里有一个关于为 weblogic 服务器设置 JVM 参数的问题。
custom arguments to set in weblogic JVM
- In the Domain Structure pane, expand the Servers node.
- Click the name of the server that you want to configure.
- In the right pane, click Server Start. Select Lock & Edit.
- In the Arguments text box, provide the JVM options. After inserting your options, click Save.
- Then click Activate Changes.
- Restart the server so that the new settings are used.
您应该能够使用上述过程设置相关的 agentLib 参数。
请注意,您需要将代理库复制到具有托管服务器的主机上。
关于java - 如何使用 weblogic 10.x 托管服务器运行 Jprofile?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38366076/