Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Francesco Marchioni
author
Ranch Hand
Posts: 194
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Marko Sibakov
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic