📄 readme.txt
字号:
VerboseGC demonstrates the use of the java.lang.management API to print the garbage collection statistics and memory usage remotely by connecting to a JMX agent with a JMX service URL: service:jmx:rmi:///jndi/rmi://<hostName>:<portNum>/jmxrmiwhere <hostName> is the hostname and <portNum> is the port numberto which the JMX agent will be connected.To run the VerboseGC demo(1) Start the application with the JMX agent - here's an example of how the Java2D is started java -Dcom.sun.management.jmxremote.port=1090 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -jar <JDK_HOME>/demo/jfc/Java2D/Java2Demo.jar This instruction uses the Sun's built-in support to enable a JMX agent. You can programmatically start a JMX agent with the RMI connector using javax.management.remote API. See the javadoc and examples for javax.management.remote API for details.(2) Run VerboseGC java -jar <JDK_HOME>/demo/management/VerboseGC/VerboseGC.jar localhost:1090These instructions assume that this installation's version of the javacommand is in your path. If it isn't, then you should eitherspecify the complete path to the java command or update yourPATH environment variable as described in the installationinstructions for the Java(TM) SDK.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -