Pages

Thursday, December 19, 2013

Weblogic - WLDF

As a Application Server admin, it is always complex to me to monitor various servers , cluster and even resources deployed to servers in a weblogic. There is a need for some technology which will do the monitoring for me and send me the alerts when a resource is down.
The Weblogic Diagnostic Framework (WLDF ) which is a part of the weblogic Server allows to send notifications when certain contains are detected. This allows us to configure rules which match runtime conditions and when met send notifications.
The major components are
  • Diag­nos­tic Image Cap­ture: This created a Diagnostic Snapshot from the serer that can be used for analysis
  • Archive: cap­tures and per­sists data events, log records and met­rics from server instances and applications.
  • Har­vester: cap­tures met­rics from run-time MBeans, includ­ing WebLogic Server MBeans and cus­tom MBeans, which can be archived and later accessed for view­ing his­tor­i­cal data.
  • Watches and Noti­fi­ca­tions: pro­vides the means for mon­i­tor­ing server and appli­ca­tion states and send­ing noti­fi­ca­tions based on cri­te­ria set in the watches.
  • Log­ging ser­vices: man­age logs for mon­i­tor­ing server, sub­sys­tem, and appli­ca­tion events.

Ora­cle Weblogic Diag­nos­tic Module
As said earlier, a diagnostic module allows creating a diagnostic snapshot from the server that can be used as a post-failure analysis. In this post we will see how we can create a diagnostic module.

1. Click on the Diagnostic Modules in the Weblogic Console
2. In the next Screen, enter the name for the Diagnostic Module. Save

Even though the Diagnostic module was created, it did not have any metrics enabled. Click on the newly Created Diag­nos­tic mod­ule and select the Con­fig­u­ra­tion tab and Col­lected Met­rics sub tab.

3. Click New in the Configuration tab.
4. In the next screen we can choose between “Server run­time” and “Domain run­time” met­rics. (The for­mer means that met­rics will be col­lected at server level; the other option, Domain Run­time, pro­vides access to the Domain Wide met­rics and is avail­able only for the Admin Server)
5. In the next screen, select the MBean type “weblogic.management.runtime.JVMRuntimeMBean”
6. In the next screen, select the attribute of the Mbean you want to collect.
7. Select ‘Heap­Size­Max’ and click “Fin­ish”.

Finally select the tar­get instance which you want to mon­i­tor and click Finish.

More to Come , Happy Learning