包含JVM监控 使用 Zabbix 监控 Tomcat( 二 )

zabbix监控eden区域键值:
最大空间:jmx["java.lang:type=MemoryPool,name=PS Eden Space",Usage.max]已用空间:jmx["java.lang:type=MemoryPool,name=PS Eden Space",Usage.used]提交空间:jmx["java.lang:type=MemoryPool,name=PS Eden Space",Usage.committed]3.3.内存池survivor space:
Tomcat本地查看Survivor space区域:
java -jar cmdline-jmxclient-0.10.3.jar - 127.0.0.1:8090 java.lang:type=MemoryPool,name=PS Survivor Space Usagezabbix监控Survivor 键值:
jmx["java.lang:type=MemoryPool,name=PS Survivor Space",Usage.committed]jmx["java.lang:type=MemoryPool,name=PS Survivor Space",Usage.max]jmx["java.lang:type=MemoryPool,name=PS Survivor Space",Usage.used]3.4.内存池old gen:
Tomcat本地查看old gen区域使用:
java -jar cmdline-jmxclient-0.10.3.jar - 127.0.0.1:8090 java.lang:name=PS Old Gen,type=MemoryPool Usagezabbix监控old gen键值:
jmx["java.lang:type=MemoryPool,name=PS Old Gen",Usage.committed]jmx["java.lang:type=MemoryPool,name=PS Old Gen",Usage.max]jmx["java.lang:type=MemoryPool,name=PS Old Gen",Usage.used]3.5.非堆内存:
Tomcat 本地查看非堆内存使用:
java -jar cmdline-jmxclient-0.10.3.jar controlRole:tomcat 127.0.0.1:8090 java.lang:type=Memory NonHeapMemoryUsag1zabbix监控非堆内存使用1jmx["java.lang:type=Memory","NonHeapMemoryUsag.committed"]jmx["java.lang:type=Memory","NonHeapMemoryUsag.used"]3.6.内存池meta space:
Tomcat 本地查看meta space区域使用:
java -jar cmdline-jmxclient-0.10.3.jar - 127.0.0.1:8090 java.lang:type=MemoryPool,name=Metaspace Usagezabbix监控mete space区域键值
jmx["java.lang:type=MemoryPool,name=Metaspace",Usage.committed]jmx["java.lang:type=MemoryPool,name=Metaspace",Usage.used]3.7.内存池code cache:
Tomcat 本地查看code cache区域使用:
java -jar cmdline-jmxclient-0.10.3.jar - 127.0.0.1:8090 java.lang:type=MemoryPool,name=Code Cache Usagezabbix监控code cache区域使用:
jmx["java.lang:type=MemoryPool,name=Code Cache",Usage.committed]jmx["java.lang:type=MemoryPool,name=Code Cache",Usage.max]jmx["java.lang:type=MemoryPool,name=Code Cache",Usage.used]3.8.内存池compressed class space:
Tomcat 本地查看compressed class space区域使用:
java -jar cmdline-jmxclient-0.10.3.jar - 127.0.0.1:8090 java.lang:type=MemoryPool,name=Compressed Class Space Usagezabbix监控 compressed class space区域使用键值:
jmx["java.lang:type=MemoryPool,name=Compressed Class Space",Usage.committed]jmx["java.lang:type=MemoryPool,name=Compressed Class Space",Usage.max]jmx["java.lang:type=MemoryPool,name=Compressed Class Space",Usage.used]3.9.类加载:
Tomcat本地查看类加载信息:
加载总数: java -jar cmdline-jmxclient-0.10.3.jar controlRole:tomcat 127.0.0.1:8090 java.lang:type=ClassLoading TotalLoadedClassCoun已加载: java -jar cmdline-jmxclient-0.10.3.jar controlRole:tomcat 127.0.0.1:8090 java.lang:type=ClassLoading LoadedClassCount已卸载: java -jar cmdline-jmxclient-0.10.3.jar controlRole:tomcat 127.0.0.1:8090 java.lang:type=ClassLoading UnloadedClassCountZabbix监控类加载键值:
加载总数: jmx["java.lang:type=ClassLoading","TotalLoadedClassCount"]已加载: jmx["java.lang:type=ClassLoading","LoadedClassCount"]已卸载: jmx["java.lang:type=ClassLoading","UnloadedClassCount"]3.10.java线程:
tomcat本地查看java线程:
总开启线程: java -jar cmdline-jmxclient-0.10.3.jar controlRole:tomcat 127.0.0.1:8090 java.lang:type=Threading TotalStartedThreadCount活动线程: java -jar cmdline-jmxclient-0.10.3.jar controlRole:tomcat 127.0.0.1:8090 java.lang:type=Threading PeakThreadCount线程峰值: java -jar cmdline-jmxclient-0.10.3.jar controlRole:tomcat 127.0.0.1:8090 java.lang:type=Threading PeakThreadCountZabbix监控java线程键值:
总开启线程: jmx["java.lang:type=Threading","TotalStartedThreadCount"]活动线程: jmx["java.lang:type=Threading","ThreadCount"]线程峰值: jmx["java.lang:type=Threading","PeakThreadCount"]3.11.tomcat线程:
本地查看tomcat线程信息:
最大线程:java -jar cmdline-jmxclient-0.10.3.jar - 127.0.0.1:8090 Catalina:name="http-nio-8080",type=ThreadPool maxThreads当前线程:java -jar cmdline-jmxclient-0.10.3.jar - 127.0.0.1:8090 Catalina:name="http-nio-8080",type=ThreadPool currentThreadCount繁忙线程:java -jar cmdline-jmxclient-0.10.3.jar - 127.0.0.1:8090 Catalina:name="http-nio-8080",type=ThreadPool currentThreadsBusyZabbix监控tomcat线程键值:
最大线程:jmx["Catalina:type=ThreadPool,name="http-nio-8080"",maxThreads]当前线程:jmx["Catalina:type=ThreadPool,name="http-nio-8080"",currentThreadCount]繁忙线程 jmx["Catalina:type=ThreadPool,name="http-nio-8080"",currentThreadsBusy]


推荐阅读