Áú»¢¶Ä²©

This is a translation of the original English documentation page. Help us make it better.

5 ??? Java

????? ?????

????? ?????? ?????? ?????? JMX ????? ????? ?? ? ???? Áú»¢¶Ä²© ??? "??? Áú»¢¶Ä²© Java", ???? ??? Áú»¢¶Ä²© 2.0. Áú»¢¶Ä²© Java gateway ??? ???? ????? ?-Java. ??? ????? ?? ???? ?? ???? JMX ????? ?????, ??? Áú»¢¶Ä²© ???? ?? Áú»¢¶Ä²© Java ???, ?????? ?????? JMX API](http://java.sun.com/javase/technologies/core/mntr-mgmt/javamanagement/) ??? ????? ?? ????? ?????? ?????. ????????? ?? ???? ?????? ????? ?????, ?? ???? ?????? ???? ?????? -Dcom.sun.management.jmxremote ????? ??????.

??? Java ???? ????? ???? ???? Áú»¢¶Ä²© ?? ?????? ? ???? ???? ?? ?"?????? ?????". ?????? ??????? ?? Áú»¢¶Ä²©, ?? ???? ?????? ?? ?-Proxy Áú»¢¶Ä²© (?? ???? ????? ????? ?? Áú»¢¶Ä²©). ????? ??? ??? Java ?????? ?????? ???? Áú»¢¶Ä²© ?? ???? ????? proxy, ???? ???? ?????? ?? ??? Java ??? ??? ??? Áú»¢¶Ä²© ?? ?????? Áú»¢¶Ä²©. ?? ????? ???? ?????? ???? ???? JMX ??????? ???? ???, ?? ????? ???? JMX ???? ??? ????? ???? Java ????? ?????.

???? ?? ????? ???? ??? ??? Java, ??? Áú»¢¶Ä²© ?? ?????? ????? ???? Java ????? ?? ????, ??? Java ??? ????? ????? ????? ????? ???? ?? ?-proxy. ??? ? ??, ??? Java ???? ???? ????? ?????.

???? ?? ?????? ?? Áú»¢¶Ä²© ?? ??? ????? ?? ??????? ???????? ???? ??? Java, ???? ?? ??? ??????? StartJavaPollers. ????????? ???????, ??? Java ????? ??????? ??????, ?????? ?? ??? START_POLLERS ??????. ?? ??? ????, ?? ????? ???? ???? ?-???? ?????, ?? ??????, ?? ????? ???? Java ????? ???? ?????? ??? ????? JMX. ??? ????? ?? ??, ?? ?? TIMEOUT ?????? ???? Java ?????? ?????? ??? ??? ???? JMX ??????.

??? Áú»¢¶Ä²© ?? ?????? ???? ???? ????? ???? JMX ???? ??? ??? ????? (????? ??????? ????) ???? ???? ???? Java ?????? ???? ???????? ????? ????.

????? ?????? ?-StartJavaPollers ???? ?? ???? ? START_POLLERS, ???? ?????? ????? ????? ???? ??? ??????? ?????? ???? Java ?????? ????? ??????; ???? ??? Java ????? ?-ThreadPoolExecutor.CallerRunsPolicy, ????? ??????? ????? ???? ?? ????? ?????? ?????? ???? ?? ???? ?? ????? ?????.

When an item has to be updated over Java gateway, Áú»¢¶Ä²© server or proxy will connect to the Java gateway and request the value, which Java gateway in turn retrieves and passes back to the server or proxy. As such, Java gateway does not cache any values.

Áú»¢¶Ä²© server or proxy has a specific type of processes that connect to Java gateway, controlled by the option StartJavaPollers. Internally, Java gateway starts multiple threads, controlled by the START_POLLERS option. On the server side, if a connection takes more than Timeout seconds, it will be terminated, but Java gateway might still be busy retrieving value from the JMX counter. To solve this, there is the TIMEOUT option in Java gateway that allows to set timeout for JMX network operations.

Áú»¢¶Ä²© server or proxy will try to pool requests to a single JMX target together as much as possible (affected by item intervals) and send them to the Java gateway in a single connection for better performance.

It is suggested to have StartJavaPollers less than or equal to START_POLLERS, otherwise there might be situations when no threads are available in the Java gateway to service incoming requests; in such a case Java gateway uses ThreadPoolExecutor.CallerRunsPolicy, meaning that the main thread will service the incoming request and temporarily will not accept any new requests.

If you are trying to monitor Wildfly-based Java applications with Áú»¢¶Ä²© Java gateway, please install the latest jboss-client.jar available on the .

???? ??? Java

??? ???? ?????? ??? Java ???????? ?? ???????? ????? ?.

??????? ???????? ????? ???? ???? ????? ???? ????? ??????? Áú»¢¶Ä²© Java gateway, ???? ?????? ?? ??? Áú»¢¶Ä²© (?? Áú»¢¶Ä²© proxy) ? ????? ???? Java ?? Áú»¢¶Ä²© ?????? JMX, ????? ?????? ?? Áú»¢¶Ä²© ?????? ????? Áú»¢¶Ä²© ??????? ????? JMX ???????.

????? ? ?????? ??????
?????? ????? ?????
?????? RHEL ????? ?????
?????? Debian/Ubuntu ????? ?????