299 total views, 0 views today

WebLogic JMX API Example: How to monitor WebLogic Heap Space and memory parameters using JVMRuntime MBean

 

The Java code mentioned in this post connects to WebLogic server and prints all the WebLogic JVMRuntime properties using JVMRuntimeBean object

 

Note: Add the C:\middleware1213\wlserver\server\lib\wljmxclient.jar if you connect to the WebLogic Server remotely

 

The WebLogic JVMRuntime MBean can be referred to the JConsole as below:

 

Supported WebLogic JVMRuntime Attributes & Operations

 

122317_0623_WebLogicJMX1 WebLogic JMX API Example: Monitor WebLogic Heap Space and Memory parameters using  JVMRuntime Mbean

 

 

Refer the below Java class for other JVMRuntimeMBean attributes

 

https://docs.oracle.com/cd/E50629_01/wls/WLAPI/weblogic/management/runtime/JVMRuntimeMBean.html

 

The below Java code Prints all the WebLogic JVMRuntime Properties using JVMRuntimeMBean

 

 

OutPut: 

 

Server Instance=com.bea:Name=AdminServer,Location=AdminServer,Type=ServerRuntime
Heap Free Percent = 64%
Heap Size Max = 477626368
Uptime = 15707489
OS Name = Windows 10
Java Version = 1.8.0_151
Heap Free Current = 295701328
Name = AdminServer
Type = JVMRuntime
Java VM Vendor = Oracle Corporation
Java Vendor = Oracle Corporation
OS Version = 10.0
Heap Size Current = 465043456
Thread Stack Dump = “RMI TCP Connection(8)-192.168.253.1” Id=200 RUNNABLE (in native)…

….

govindan WebLogic JMX API Example: Monitor WebLogic Heap Space and Memory parameters using  JVMRuntime Mbean
Connect me

Govind

Thank you for visiting my personal blog. Myself Govindan, Software Developer by profession since 2006 and hence I started this blog early in 2016 and ever since I've been writing about technologies experienced and learnings of everyday life.

The views expressed on this blog are my personal views and do not necessarily reflect the views of my employer.

Please feeling free to reach me on any comments and feedbacks you have. Would be more than glad to listen and reply 🙂
govindan WebLogic JMX API Example: Monitor WebLogic Heap Space and Memory parameters using  JVMRuntime Mbean
Connect me
By | 2017-12-23T01:33:52+00:00 December 23rd, 2017|Categories: WebLogic|Tags: , , , , |0 Comments
Like us on Facebook.
Connect!