【问题标题】:Intel VTune Profiler error for Mac: Cannot communicate with the target适用于 Mac 的 Intel VTune Profiler 错误:无法与目标通信
【发布时间】: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 必须安装在远程服务器上吗?会不会是这个问题?

【问题讨论】:

    标签: c++ profiling profiler intel-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
    猜你喜欢
    • 2020-10-04
    • 2022-11-12
    • 2013-02-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多