This content has been marked as final. Show 7 replies
You can use JMX code to Monitor the Heap Usages of your Application Server in the Runtime...as well as you can send some E-Mail alert codes also in it.
Here is a Sample for it: (This Simple code can monitor Every thing you want Like JMS/JDBC/ThreadPoolStatistics/*JVM runtime Statistics*)
Option 2). You can use WLDF feature provided as part of WebLogic for Automatic Watch and Notifications.
http://jaysensharma.wordpress.com (WebLogic Cool Stuff)
Edited by: Jay SenSharma on Jan 7, 2010 3:04 PM
You will have to use ur own logic to implement it in WLST.. like loopinng, getting server names.. and performing some task in heap size is beyond certain threshold...
you can get the heap size for one server in the followin way..
heapSize = cmo.getHeapSizeCurrent()
In addition to the above posts, I would like to add two more options:
1. You can use JConsole(which is free), which will come along with Sun JDK and you can find this inside the jdk/bin .
2. You can even try using the Administration console Monitoring tab for heap usage and threads usage information.
What platform are you on?
If the server is linux/unix then you will need to do some X or sit at the console on the server(asuming running a X manager) and just
<path to jconsole>jconsole &
If windows server you can do the same sit at console, RDP, or I use Xming....(unix server) windows Terminal server....Xming will allow
you to login to unix/linux box and run jconsole....(remember to set your DISPLAY)
It works real nice...
You can also do Jconsole and connect to a remote server using IIOP/rmi.....but I haven't had much success getting that to
go...MBEAN browsing produces marshalling errors for size of tree...can see very little of the advertised MBEAN directory
below are the simple steps to know the jvm usage of your managed server:
if your os is unix flavour ...
2) java weblogic.Admin -url hostip:port -username weblogic -password weblogic GET -pretty -type JVMRuntime
output should be something like below :
JavaVendor: Sun Microsystems Inc.
OSName: Windows XP