标签: java ssh jconsole
我将Java应用程序部署到服务器,需要运行Jconsole进行性能分析。我通过SSH连接到服务器并运行jconsole,但是我收到了错误
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
如何在客户端计算机上通过SSH运行JConsole?
答案 0 :(得分:2)
连接到服务器时,使用ssh -X $servername
ssh -X $servername