wood burning stoves 2.0*
The moose likes BEA/Weblogic and the fly likes How to know the free memory of single Nodes in a Cluster? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "How to know the free memory of single Nodes in a Cluster?" Watch "How to know the free memory of single Nodes in a Cluster?" New topic
Author

How to know the free memory of single Nodes in a Cluster?

Francesco Marchioni
author
Ranch Hand

Joined: Sep 22, 2003
Posts: 190
Hi all,
I'd like to know if it's possible to read the
free memory of all Nodes in a cluster at runtime ?
I need to build a custom routing policy in a cluster
which is based on how much memory is on the nodes
in a cluster.
Maybe with Weblogic MBeans ?
Thanks in advance
Francesco


WildFly 8 Administration Book - JBoss Tutorials
Marko Sibakov
Greenhorn

Joined: Feb 09, 2006
Posts: 4
Hi,

Get familiar with example code from http://edocs.bea.com/wls/docs70/jmx/runtime.html

it shows you how to use WLS JMX MBeans.

And then just...

Inside mbeanIterator create instance of JVMRuntimeMBean like jvmRuntime = serverRuntime.getJVMRuntime();

use it's getHeapFreeCurrent() or what ever you like to find out detail you like.

API reference of JVMRuntimeMBean => http://edocs.bea.com/wls/docs81/javadocs/index.html


I hope that this will help you...


Marko Sibakov<br />Chief Architect<br />Reaktor Innovations Oy
 
 
subject: How to know the free memory of single Nodes in a Cluster?
 
Similar Threads
live customer project involving entity beans
How to View content of imbedded JMS Server?
If the app is distributed, there's one ServletContext per JVM!
Port Numbers to be used in a JBOSS Cluster over TCP
Accessing a cluster