适用于 Mac 的 Intel VTune Profiler 错误:无法与目标通信

Posted

技术标签:

【中文标题】适用于 Mac 的 Intel VTune Profiler 错误:无法与目标通信【英文标题】:Intel VTune Profiler error for Mac: Cannot communicate with the target 【发布时间】:2021-08-14 12:15:18 【问题描述】:

我在我的个人 MAC 上使用 Intel VTune 来分析 Linux 服务器上的远程应用程序。我按照https://software.intel.com/content/www/us/en/develop/documentation/get-started-with-vtune/top/macos.html 上的说明进行操作。

配置分析时,在WHERE 窗格中,我选择了Remote Linux (SSH) 并指定SSH destinationusername@hostname。但我得到了Cannot communicate with the target username@hostname.

我已经配置了无密码连接,也就是说我可以通过命令ssh username@hostname直接连接到目标,无需密码。我不知道为什么它说我无法连接到远程目标。有什么建议么?谢谢。

编辑:我仍然没有解决这个问题...我注意到第二行“远程系统上的VTune Profiler安装目录”。 VTune 必须安装在远程服务器上吗?会不会是这个问题?

【问题讨论】:

【参考方案1】:

我已经尝试过了,没有任何问题,所以我建议查看可能的问题部分并关注它们,这可能会有所帮助,

https://software.intel.com/content/www/us/en/develop/documentation/vtune-help/top/set-up-analysis-target/linux-targets/remote-linux-target-setup/configuring-ssh-access-for-remote-collection.html

我通常使用这个命令来设置无密码的ssh命令,它对我有用:

cat ~/.ssh/id_rsa.pub | ssh remote_username@server_ip_address "mkdir -p ~/.ssh && chmod 700 ~/.ssh && cat >> ~/.ssh/authorized_keys && chmod 600 ~/.ssh/authorized_keys"

【讨论】:

谢谢。但这对我不起作用..从您提供的链接中,也许我需要管理员权限才能进行 ssh 配置? @Joxixi 我也用我的windows操作系统再次尝试过,工作正常,配置有问题,在SSH目标部分你刚刚写了“usename@server”对吗?没有任何额外的东西,如“端口号”或“ssh”命令等。 @Joxixi 不,你不需要成为目标系统的管理员,我也不是。 你好。我注意到第二行“远程系统上的 VTune Profiler 安装目录”。你填了什么? VTune 必须安装在远程服务器上吗?这可能是问题吗? @Joxixi 是的,您必须提及管理员在目标(服务器)上安装的 Vtune 的目录。一旦你连接到目标,如果它可以找到路径一切正常,否则它会给你另一个错误,说它在目标系统上找不到 Vtuen

以上是关于适用于 Mac 的 Intel VTune Profiler 错误:无法与目标通信的主要内容,如果未能解决你的问题,请参考以下文章

intel Vtune 的整数加减法事件计数在哪里?

在 intel-vtune 中,被调用函数的有效总时间高于调用函数的总时间

Intel Vtune:无法访问电源驱动程序

Intel C++编译器和VTune的免费版本

Linux 上 fortran 代码的 Intel Vtune 奇怪行为

使用 Intel VTune Amplifier 进行 OpenMP 程序分析:啥是“kmp print storage map gtip”