File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to know the free memory of single Nodes in a Cluster?