E
dit
A
ttach
P
rintable
r1 - 2018-07-11 - 10:20:59 -
RichardWatts
You are here:
TWiki
>
Deployment Web
>
DeploymentMonitoring
>
ThirdPartyMXBeans
<div id="header-title" style="padding: 10px 15px; border-width:1px; border-style:solid; border-color:#FFD28C; background-image: url(<nop>https://jazz.net/wiki/pub/Deployment/WebPreferences/TLASE.jpg); background-size: cover; font-size:120%"> ---+!! Java and Liberty Managed Beans <img src="https://jazz.net/wiki/pub/Deployment/WebPreferences/todo.png" alt="todo.png" width="50" height="50" align="right"> %DKGRAY% Authors: Richard Watts, Vishwanath Ramaswamy, Vaughn Rokosz <br> %ENDCOLOR%</div></sticky> <!-- Page contents top of page on right hand side in box --> <sticky><div style="float:right; border-width:1px; border-style:solid; border-color:#DFDFDF; background-color:#F6F6F6; margin:0 0 15px 15px; padding: 0 15px 0 15px;"> %TOC{title="Page contents"}% </div></sticky> <sticky><div style="margin:15px;"></sticky> Here is a brief list of suggested managed beans from the middleware applications that are part of your CLM system. In the reference section, we provide links to more detailed information. ---+++ Java Virtual Machine Managed Beans The two key managed beans we consume from the Java Virtual Machine are the *Garbage Collector* and *Operating System* beans. ---++++ Garbage Collector This managed bean is providing information about the Garbage Collector. It is used for monitoring the virtual machine's garbage collection metrics. The *CollectionTime*, *CollectionCount* should be used for alerts. %TABLE{ sort="on" tableborder="1" cellpadding="3" cellspacing="3" headerbg="#D5CCB1" headercolor="#666666" databg="#FAF0D4, #F3DFA8" headerrows="1" footerrows="1" }% | *Key Attributes* | *Description* | *MBean* | *Frequency* | | !CollectionCount | Returns the total number of collections that have occurred. This is set to -1 if the collection count is undefined for this collector. | [[https://docs.oracle.com/javase/8/docs/api/java/lang/management/GarbageCollectorMXBean.html][GarbageCollector]] | 15m | | !CollectionTime | Returns the approximate accumulated collection elapsed time in milliseconds. The Java virtual machine implementation may use a high resolution timer to measure the elapsed time. This method may return the same value even if the collection count has been incremented if the collection elapsed time is very short. | [[https://docs.oracle.com/javase/8/docs/api/java/lang/management/GarbageCollectorMXBean.html][GarbageCollector]] | 15m | | !MemoryUsed | Returns the amount of heap memory used by objects that are managed by the collector corresponding to this bean object. | [[https://docs.oracle.com/javase/8/docs/api/java/lang/management/GarbageCollectorMXBean.html][GarbageCollector]] | 15m | | !TotalMemoryFreed | Returns the cumulative total amount of memory freed, in bytes, by the garbage collector corresponding to this bean object. | [[https://docs.oracle.com/javase/8/docs/api/java/lang/management/GarbageCollectorMXBean.html][GarbageCollector]] | 15m | | !TotalCompacts | Returns the cumulative total number of compacts that was performed by garbage collector corresponding to this bean object. | [[https://docs.oracle.com/javase/8/docs/api/java/lang/management/GarbageCollectorMXBean.html][GarbageCollector]] | 15m | | !LastCollectionStartTime | Returns the start time in milliseconds of the last garbage collection that was carried out by this collector. | [[https://docs.oracle.com/javase/8/docs/api/java/lang/management/GarbageCollectorMXBean.html][GarbageCollector]] | 15m | | !LastCollectionEndTime | Returns the end time in milliseconds of the last garbage collection that was carried out by this collector. | [[https://docs.oracle.com/javase/8/docs/api/java/lang/management/GarbageCollectorMXBean.html][GarbageCollector]] | 15m | * Garbage Collector Object Name: java.lang:type=GarbageCollector, name=collector's name ---++++ Operating System This managed bean is providing information about the operating system metrics. It is used for monitoring CPU, Swap Space and Physical Memory Usage. The *FreePhysicalMemorySize*, *FreeSwapSpaceSize*, *SystemCpuLoad* should be used for alerts. %TABLE{ sort="on" tableborder="1" cellpadding="3" cellspacing="3" headerbg="#D5CCB1" headercolor="#666666" databg="#FAF0D4, #F3DFA8" headerrows="1" footerrows="1" }% | *Key Attributes* | *Description* | *MBean* | *Frequency* | | !TotalPhysicalMemory | Returns the total available physical memory on the system in bytes. | [[http://docs.oracle.com/javase/8/docs/api/java/lang/management/OperatingSystemMXBean.html][OperatingSystem]] | 15m | | !FreePhysicalMemorySize | Returns the amount of physical memory that is available on the system in bytes. | [[http://docs.oracle.com/javase/8/docs/api/java/lang/management/OperatingSystemMXBean.html][OperatingSystem]] | 15m | | !TotalSwapSpaceSize | Returns the total amount of swap space in bytes. | [[http://docs.oracle.com/javase/8/docs/api/java/lang/management/OperatingSystemMXBean.html][OperatingSystem]] | 15m | | !FreeSwapSpaceSize | Returns the amount of free swap space in bytes. | [[http://docs.oracle.com/javase/8/docs/api/java/lang/management/OperatingSystemMXBean.html][OperatingSystem]] | 15m | | !SystemCpuLoad | Returns the "recent cpu usage" for the whole system. This value is a double in the [0.0,1.0] interval. A value of 0.0 means all CPUs were idle in the recent period of time observed, while a value of 1.0 means that all CPUs were actively running 100% of the time during the recent period of time observed. All values between 0.0 and 1.0 are possible. | [[http://docs.oracle.com/javase/8/docs/api/java/lang/management/OperatingSystemMXBean.html][OperatingSystem]] | 15m | * Operating System Object Name: java.lang:type=OperatingSystem ---+++ !WebSphere Liberty Managed Beans There are four managed beans we use from the !WebSphere Liberty Application Server are *Liberty Java Virtual Machine*, *Servlet Statistics*, *Session Statistics* and *Thread Pools* beans. ---++++ Liberty Java Virtual Machine This managed bean provides Liberty application server specific Java Virtual Machine information. It is available when the monitor-1.0 feature is enabled. It is used for monitoring the JVM information. Memory usage is a very important monitoring attribute for the Application Server. High memory usage could indicate high usage by deployed applications, heavy user workloads or memory leaks. The *UsedMemory* and *ProcessCpu* attributes should be used for alerts. %TABLE{ sort="on" tableborder="1" cellpadding="3" cellspacing="3" headerbg="#D5CCB1" headercolor="#666666" databg="#FAF0D4, #F3DFA8" headerrows="1" footerrows="1" }% | *Key Attributes* | *Description* | *MBean* | *Frequency* | | Heap | Heap size used for current JVM. | [[https://www.ibm.com/support/knowledgecenter/SS7JFU_8.5.5/com.ibm.websphere.wlp.express.doc/ae/rwlp_mbeans_list.html][JvmStats]] | 15m | | !FreeMemory | Free team available for the current JVM. | [[https://www.ibm.com/support/knowledgecenter/SS7JFU_8.5.5/com.ibm.websphere.wlp.express.doc/ae/rwlp_mbeans_list.html][JvmStats]] | 15m | | !UsedMemory | Used heap for current JVM. | [[https://www.ibm.com/support/knowledgecenter/SS7JFU_8.5.5/com.ibm.websphere.wlp.express.doc/ae/rwlp_mbeans_list.html][JvmStats]] | 15m | | !ProcessCPU | Percentage of CPU used by JVM process. | [[https://www.ibm.com/support/knowledgecenter/SS7JFU_8.5.5/com.ibm.websphere.wlp.express.doc/ae/rwlp_mbeans_list.html][JvmStats]] | 15m | | !GcCount | Number of times GC has happened since JVM starts. | [[https://www.ibm.com/support/knowledgecenter/SS7JFU_8.5.5/com.ibm.websphere.wlp.express.doc/ae/rwlp_mbeans_list.html][JvmStats]] | 15m | | !GcTime | Total accumulated value of GC time. | [[https://www.ibm.com/support/knowledgecenter/SS7JFU_8.5.5/com.ibm.websphere.wlp.express.doc/ae/rwlp_mbeans_list.html][JvmStats]] | 15m | | !UpTime | Time in milliseconds since the JVM has started. | [[https://www.ibm.com/support/knowledgecenter/SS7JFU_8.5.5/com.ibm.websphere.wlp.express.doc/ae/rwlp_mbeans_list.html][JvmStats]] | 15m | * Liberty Java Virtual Machine Object Name: !WebSphere:type=JvmStats ---++++ Servlet Statistics The Servlet Statistics managed bean is used to provide servlet response times. When the monitor-1.0 feature is enabled, one instance is available for each servlet that has been served, where * is of the form !AppName.ServletName. It is used to monitor servlet counts and average response times. The *ResponseTime* should be used for alerts. %TABLE{ sort="on" tableborder="1" cellpadding="3" cellspacing="3" headerbg="#D5CCB1" headercolor="#666666" databg="#FAF0D4, #F3DFA8" headerrows="1" footerrows="1" }% | *Key Attributes* | *Description* | *MBean* | *Frequency* | | !AppName | Name of the application. | [[https://www.ibm.com/support/knowledgecenter/SS7JFU_8.5.5/com.ibm.websphere.wlp.express.doc/ae/rwlp_mbeans_list.html][ServletStats]] | 15m | | !ServletName | Name of the Servlet. | [[https://www.ibm.com/support/knowledgecenter/SS7JFU_8.5.5/com.ibm.websphere.wlp.express.doc/ae/rwlp_mbeans_list.html][ServletStats]] | 15m | | !RequestCount | Number of hits to this servlet. | [[https://www.ibm.com/support/knowledgecenter/SS7JFU_8.5.5/com.ibm.websphere.wlp.express.doc/ae/rwlp_mbeans_list.html][ServletStats]] | 15m | | !ResponseTime | Average response time (nano-seconds) | [[https://www.ibm.com/support/knowledgecenter/SS7JFU_8.5.5/com.ibm.websphere.wlp.express.doc/ae/rwlp_mbeans_list.html][ServletStats]] | 15m | | Description | Description of counter. | [[https://www.ibm.com/support/knowledgecenter/SS7JFU_8.5.5/com.ibm.websphere.wlp.express.doc/ae/rwlp_mbeans_list.html][ServletStats]] | 15m | | !RequestCountDetails | !RequestCount details including last time stamp. | [[https://www.ibm.com/support/knowledgecenter/SS7JFU_8.5.5/com.ibm.websphere.wlp.express.doc/ae/rwlp_mbeans_list.html][ServletStats]] | 15m | | !ResponseTimeDetails | !ResponseTime details including number of snapshot taken, min and max values. | [[https://www.ibm.com/support/knowledgecenter/SS7JFU_8.5.5/com.ibm.websphere.wlp.express.doc/ae/rwlp_mbeans_list.html][ServletStats]] | 15m | * Liberty Servlet Statistics Object Name: !WebSphere:type=ServletStats,name=* ---++++ Session Statistics The session statistics managed bean is responsible for reporting !SessionStats for a single web application. It is available when the monitor-1.0 feature is enabled. %TABLE{ sort="on" tableborder="1" cellpadding="3" cellspacing="3" headerbg="#D5CCB1" headercolor="#666666" databg="#FAF0D4, #F3DFA8" headerrows="1" footerrows="1" }% | *Key Attributes* | *Description* | *MBean* | *Frequency* | | !CreateCount | Total number of sessions created. | [[https://www.ibm.com/support/knowledgecenter/SSAW57_8.5.5/com.ibm.websphere.wlp.nd.doc/ae/twlp_mon.html][SessionStats]] | 15m | | !LiveCount | The total number of sessions that are currently cached in memory. | [[https://www.ibm.com/support/knowledgecenter/SSAW57_8.5.5/com.ibm.websphere.wlp.nd.doc/ae/twlp_mon.html][SessionStats]] | 15m | | !ActiveCount | The total number of concurrently active sessions. A session is active if Liberty is processing a request that uses that session. | [[https://www.ibm.com/support/knowledgecenter/SSAW57_8.5.5/com.ibm.websphere.wlp.nd.doc/ae/twlp_mon.html][SessionStats]] | 15m | | !InvalidatedCount | The total number of sessions that are invalidated. | [[https://www.ibm.com/support/knowledgecenter/SSAW57_8.5.5/com.ibm.websphere.wlp.nd.doc/ae/twlp_mon.html][SessionStats]] | 15m | | !InvalidatedCountbyTimeout | The total number of sessions invalidated by a timeout. | [[https://www.ibm.com/support/knowledgecenter/SSAW57_8.5.5/com.ibm.websphere.wlp.nd.doc/ae/twlp_mon.html][SessionStats]] | 15m | * Liberty Session Statistics Object Name: !WebSphere:type=SessionStats,Name=* ---++++ Thread Pools The Thread Pool managed bean provides web container thread pool information. It is available when the monitor-1.0 feature is enabled. !ThreadPoolStats is used to monitor the active threads usage in relation to the pool size. Liberty uses an auto-tuning algorithm to find the sweet spot for how many threads the server needs. Liberty is always playing around and adjusting the number of threads in the pool in-between and defined bounds for the coreThreads and maxThreads. In Liberty the threadpool size is autosized by [[https://developer.ibm.com/wasdev/docs/was-liberty-threading-and-why-you-probably-dont-need-to-tune-it][Liberty itself]]. The *ActiveThreads* attribute should be used for alerts. %TABLE{ sort="on" tableborder="1" cellpadding="3" cellspacing="3" headerbg="#D5CCB1" headercolor="#666666" databg="#FAF0D4, #F3DFA8" headerrows="1" footerrows="1" }% | *Key Attributes* | *Description* | *MBean* | *Frequency* | | !PoolSize | Threads in the pool which represents the pool size. | [[https://www.ibm.com/support/knowledgecenter/SS7JFU_8.5.5/com.ibm.websphere.wlp.express.doc/ae/rwlp_mbeans_list.html][ThreadPoolStats]] | 15m | | !ActiveThreads | Active threads which are serving requests. | [[https://www.ibm.com/support/knowledgecenter/SS7JFU_8.5.5/com.ibm.websphere.wlp.express.doc/ae/rwlp_mbeans_list.html][ThreadPoolStats]] | 15m | | !PoolName | Only supports Default Executor thread pool. | [[https://www.ibm.com/support/knowledgecenter/SS7JFU_8.5.5/com.ibm.websphere.wlp.express.doc/ae/rwlp_mbeans_list.html][ThreadPoolStats]] | 15m | * Liberty Thread Pools Object Name: !WebSphere:type=ThreadPoolStats,name=DefaultExecutor ---+++++!! Related topics: * [[https://www.ibm.com/support/knowledgecenter/SSYKE2_8.0.0/com.ibm.java.lnx.80.doc/diag/tools/mxbeans.html][JVM MBeans]] * [[https://www.ibm.com/support/knowledgecenter/en/was_beta_liberty/com.ibm.websphere.wlp.nd.multiplatform.doc/ae/twlp_admin_jmx.html][WebSphere Liberty MBeans]] ---+++++!! External links: * [[https://www.ibm.com][IBM]] ---+++++!! Additional contributors: -- Main.RichardWatts - 2018-03-20 <sticky></div></sticky>
E
dit
|
A
ttach
|
P
rintable
|
V
iew topic
|
Backlinks:
We
b
,
A
l
l Webs
|
H
istory
: r1
|
M
ore topic actions
Deployment
Deployment web
Planning and design
Installing and upgrading
Migrating and evolving
Integrating
Administering
Monitoring
Troubleshooting
Community information and contribution guidelines
Create new topic
Topic list
Search
Advanced search
Notify
RSS
Atom
Changes
Statistics
Web preferences
NOTE: Please use the Sandbox web for testing
Status icon key:
To do
Under construction
New
Updated
Constant change
None - stable page
Smaller versions of status icons for inline text:
Copyright © by IBM and non-IBM contributing authors. All material on this collaboration platform is the property of the contributing authors.
Contributions are governed by our
Terms of Use.
Please read the following
disclaimer
.
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more
here
.