我找到了一个涉及几个步骤的解决方案。
第 1 步:创建正确的 SOCKS 隧道:
不要忘记最后单击“添加”按钮。
第二步:修改JProfiler的启动脚本,添加SOCKS代理设置:
java -Xmx512m -classpath "%LOCALCLASSPATH%" -DsocksProxyHost=localhost -DsocksProxyPort=8849 com.jprofiler.frontend.FrontendApplication
上面的代码片段应该放在jprofiler.bat中,该文件位于此处:
\Program Files\jprofiler8\bin\windows
Step 3: Open remote JProfiler session and use the original remote host and the original remote port. In other words, start normal remote profiling session with no deviations from the original process. The PuTTY tunneling will take care of the firewall problem for you automatically.