java - JProfiler,连接到防火墙后面的计算机

标签 java ssh jprofiler

我正在尝试在 MAC 上使用 JProfiler 远程连接到位于防火墙后面且只能通过 Linux 计算机访问的计算机。

我已经设置了直接 SSH 隧道,如下所示:

ssh -L 8849:remote:8849 forwardingmachine

并启动 Jprofiler

java -agentpath:/path/jprofiler8/bin/linux-x64/libjprofilerti.so=port=8849 ..."

我系统地收到错误:

Connection error

Either an old version of the native library is used or another application is listening on port 8849. Please check your DYLD_LIBRARY_PATH environment variable and your port configuration

网上有使用 2 跳 SSH 隧道的解决方案,但我无法这样做,因为第二台机器只能由转发机器访问。

有什么办法可以解决这个问题吗?

(远程计算机使用 Java 1.7,而我的 Mac 使用 Java 1.8)。两台机器都使用jprofiler8

最佳答案

使用命令设置到远程的直接隧道

ssh -t user@remote -L [localPort]:localhost:[remotePort] -N

关于java - JProfiler,连接到防火墙后面的计算机,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28546152/

相关文章:

java - 将字符数组替换为原始消息 - Java

java - 当 putifabsent 时间到期时做点什么 [infinispan]

hadoop - 我们在 hadoop 中使用 RPC 还是 SSH 进行进程间通信?

java - 无法打开java版本jdk1.8.0_191.jdk的jmc

java - 在HashMap中缓存数据(Connection、ResultSet、Statement从中获取数据后打开,放入Map中)

java - 当 JPA 中字段为 LocalDateTime 时,如何查找今天创建的每个实例?

java - 如何等待队列包含元素?

java - JSch中的addIdentity是调用程序Server的私钥

SSH key : “Permissions 0644 for ' id_rsa. pub' 太开放了。”在苹果机上

spring-boot - Jprofiler不会在应用程序崩溃时分离