通过SSH从服务器运行JConsole

时间:2013-09-16 08:24:36

标签: java ssh jconsole

我将Java应用程序部署到服务器,需要运行Jconsole进行性能分析。我通过SSH连接到服务器并运行jconsole,但是我收到了错误

No X11 DISPLAY variable was set, but this program performed an operation which requires it.

如何在客户端计算机上通过SSH运行JConsole?

1 个答案:

答案 0 :(得分:2)

连接到服务器时,使用ssh -X $servername

启用X转发