是否启用JConsole远程监控会影响生产中的系统性能? [英] Is enabling JConsole remote monitoring affect system performance in production?

查看:621
本文介绍了是否启用JConsole远程监控会影响生产中的系统性能?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Oracle / Sun表示只要你不在生产盒上本地运行它就可以了吗?
http://download.oracle.com/javase/1.5。 0 / docs / guide / management / jconsole.html

Oracle/Sun says its fine as long as you don't run it locally on production box? http://download.oracle.com/javase/1.5.0/docs/guide/management/jconsole.html


注意:使用jconsole监控本地应用程序对于开发非常有用和原型设计,但不建议用于生产环境,因为jconsole本身会消耗大量的系统资源。建议使用远程监控将jconsole应用程序与受监控平台隔离开来。

Note: Using jconsole to monitor a local application is useful for development and prototyping, but is not recommended for production environments, because jconsole itself consumes significant system resources. Remote monitoring is recommended to isolate the jconsole application from the platform being monitored.

您是否曾在生产环境中启用它并经历过任何操作性能影响?

Have you ever enabled it in a production environment and experienced any performance impacts?

推荐答案

虽然在生产环境中强烈推荐使用它,但启用远程jmx几乎没有性能影响没有通过以下选项进行身份验证或加密:

Although it is highly not recommended in a production environment, there is little to no performance implications to enabling remote jmx with no authentication or encryption via options like these:

-Dcom.sun.management.jmxremote
-Dcom.sun.management.jmxremote.port=9999 
-Dcom.sun.management.jmxremote.authenticate=false 
-Dcom.sun.management.remote.ssl=false

如果启用SSL并强制进行身份验证,性能成本会更高:

There is a little more performance cost if you turn on SSL and mandate authentication:

-Dcom.sun.management.jmxremote.authenticate=true 
-Dcom.sun.management.remote.ssl=true
-Dcom.sun.management.jmxremote.password.file=jmxremote.password

上述2个场景只会在生产JVM中启动mbean服务器和RMI连接器服务器。远程连接到这个JVM会更昂贵,但这一切都取决于你观看的视图(例如,GC视图需要收集所有数据并将其传输回jConsole客户端,这不是免费的),以及操作你远程调用。

The above 2 scenarios will only start an mbean server and an RMI connector server in your production JVM. Connecting to this JVM remotely will be more expensive, but it all depends on what views you watch (e.g. GC views require all that data to be collected and transported back to the jConsole client, which is not free), as well as the operations you invoke remotely.

您可以从以下博文中阅读更多统计数据:

You can read more statistics from the following blog post:

  • https://community.oracle.com/blogs/emcmanus/2006/07/21/how-much-does-it-cost-monitor-app-jconsole

这篇关于是否启用JConsole远程监控会影响生产中的系统性能?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆