WLDF Smart Rules in WebLogic by Nicolas Fonnegra

Posted: July 24, 2016 in WebLogic
Tags: , , , , , , , ,

 

clip_image002WLDF is a diagnostic framework inside Weblogic, which provides several functionalities to measure, track and monitor a domain at runtime. With WLDF, administrators can set alarms on specific incidents and automatically execute some tasks when certain events are triggered.

One good starting point to learn about WLDF is Radu Dobrinescu’s blog. It provides a compressive tutorial on how to monitor common events in Weblogic. The newest version of Weblogic (12.2.1) has made some changes and improvements to the WLDF Framework with the inclusion of the new smart rules.

Smart rules provide a set of predefined rules that represent the most common monitored events in Weblogic domains. This blog is going to show how to monitor stuck threads and overloaded datasources and send an email if one of these events occurs.

1. Creating a mail session

The first task required is to create a mail session in order to reference it in the WLDF watches. The following steps explain how to define a mail session.

  • In the domain structure go to Services -> Mail Sessions -> New
  • Enter a name, a JNDI name and your user account in Weblogic. In the JavaMail properties enter at least the host and port of the SMTP server and the sending email account, like this:

mail.smtp.port=2525

mail.smtp.from=“soa_admin@example.com“

mail.smtp.host=localhost

  • Press “Next”.
  • Select the server where you want to target this mail session and press “Finish”.

2. Create a Diagnostic Module

A diagnostic module is and administrative unit that contains collected metrics, instrumentations, policies and actions. The following steps show how to define a diagnostic module. Read the complete article here.

WebLogic Partner Community

For regular information become a member in the WebLogic Partner Community please visit: http://www.oracle.com/partners/goto/wls-emea ( OPN account required). If you need support with your account please contact the Oracle Partner Business Center.

Blog Twitter LinkedIn Forum Wiki

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s