WLSDM Product Issues and Oracle WebLogic Server... WLSDM Installation, Usage, Bug Reports, Oracle WebLogic Monitoring and Administration, Monitoring Oracle FMW Products (SOA Suite, OSB, ADF, IDM, B2B, OFR...) Post your monitoring requests or WLSDM issues for WebLogic!
Import Export the configuration for Datasource

Hi Team,

So exactly what import export feature currently WLSDM support

Regards,
Ramanpreet Singh

read more
How to delete the metric

Hi @Ramanpreet_Singh,

Currently, you cannot. But we will add this feature to next release.

read more
Server uptime notification customize

Hi @Ramanpreet_Singh,

Uptime value is a metric like others. So you can setup a monitoring on it.

Configuration > JMX MBean Metric Browser & Settings

image.png

read more
File Read/Write Events Not captured

@jeba said:

Hi,

On the Back End Reporting, by default EJB and JDBC events are captured and alerted. This is useful. But there are options like File Read, File Write and Web Service calls on the Back End Reports. We enabled these options for the Managed Server but none of these events are captured or displayed in those reports. But while restarting the Managed Server, if we include this JVM option,
"-XX:FlightRecorderOptions=defaultrecording=true"
Then I am able see all those File Read and File Write events are displayed and alerted. After removing the JFR default recording, then no events are captured. Is there any option or config we need? The downside of keeping the defaultrecording ON is that the Managed Server generates the JFR recording and the disk space grows exponentially which we don't want.

Thanks,
Jeba.

Hi Jeba,

We analyzed your WebLogic monitoring request again and here our solution offer.

Please remove "-XX:FlightRecorderOptions=defaultrecording=true", you do not need this option while using WLSDM. If you still want to see File/Socket events you should increase your WLDF Diagnostic volume on WebLogic.
Go to "Servers > $ManageServerName > General (tab)" page and set "Diagnostic Volume" high. Then you are able to see file read/write events.

Note: This option means additional overhead on your managedservers; just activate only one managedserver which file read/write monitoring is important.

image.png

Keep your file and socket read/write definitions on WLSDM.

Restart your managed server (it is needed after JVM parameter removing).

This is the best setup for monitoring your file/socket events. By this configuration you will not face any disk problem. Because; WLSDM will take care of JFR files.

Regards...

read more
CPU Load Alert Notification

Thank you so much. I will give it a try and let you know whether this works in our scenario or not. Thanks.

read more
Customize the email/alert subject

@Ramanpreet_Singh yes you can customize the subject.

read more
SMTP Configuration On WLSDM WebLogic Console's wizard ?

Problem is resolved by adding username and removing password. Then the WLSDM email SMTP configurations has been setup successfully for WebLogic.

read more
How to Configure LOG Monitoring Frequency ?

Log Monitoring cycle default value is 120 seconds. You can configure it from “Configuration > WLSDM System Settings” page's “system.monitoring” tab, property as below. It effects back-end, loginspector and response times frequency. No problem until 60 seconds but we suggest 120 seconds for high transaction traffic.

LOG.png

read more
Facing issue while configuring WLSDM

@Ramanpreet_Singh

Hi,
We analyzed the problem with futher investigation and logs; that realized it is because of getting below error on WebLogic:

Request-URI Too Long The requested URL's length exceeds the capacity limit for this server.

Cause:
Accesing to WebLogic WLSDM console through a webserver (OHS, Apache... etc.) can cause above error while at the last step on WLSDM wizard screen when clicking on save button.

Solution:
Accessing WebLogic WLSDM wizard console directly (bypassing webserver redirection) will solve the problem. We recommend not to use Webserver proxy while setting up WLSDM wizard at first. After the wizard completion you can use webserver proxy freely.

Webservers have limitations about posting data bacause of security issues. The limit can be increased on the configuration files.

Kind Regards...

read more
Field Display problem on OSB Service Performance Report Page

Hi maas,

Thank you for bug report. We noticed that problem and we will work on it to fix. Problem will be resolved at the next WLSDM release.

read more
Blog posts about WLSDM, WebLogic Monitoring and Administration...
Learn WebLogic MBean Objects: WebLogic JMX MBean Metric Monitoring Tutorial

If you want a master degree on WebLogic Administration, you need to know how WebLogic JMX MBean objects works.. New tutorial about monitoring WebLogic JMX MBean objects...

How to monitor WebLogic MBean Object Metric values?

How to get Weblogic Thread Dump when hogger & stuck threads occur?

How to get Weblogic Heap Dump when OutOfMemory occurs?

How to get Weblogic Java Flight Recorder (JFR) Dump when performance problems occur?

How to get Weblogic Diagnostic Image when performance problems occur?

Get SMTP(email) or SNMP(trap) notifications instantly when something goes wrong on your WebLogic Domain.

http://community.wlsdm.com/
http://www.wlsdm.com/download

ActiveExecuteThreads,
HeapFreePercent,
HoggingThreadCount,
OpenSocketsCurrentCount,
PendingUserRequestCount,
ProcessCpuLoad,
StuckThreadCount,
TransactionRolledBackTotalCount

read more
New Video Tutorial: How to monitor WebLogic ManagedServer JVM Resources?

WLSDM: Native WebLogic Monitoring
JVM System Resources Dashboard Tutorial

How to monitor WebLogic managed servers JVM heap usage?
How to monitor WebLogic managed servers JVM CPU usage?

Get notifications instantly when something goes wrong on your WebLogic Domain.

http://www.wlsdm.com/download

read more
A quick review and brilliant blog post by Oracle ACE Dirk Nachbar

A quick review and brilliant blog post by Oracle ACE Dirk Nachbar

How about yours? Is there anyone who used "User Defined JMX Metric Actions" on WLSDM for WebLogic console?

A quick look on WLSDM for WebLogic Server

WLSDM (WL Smart Dashboard & Monitoring) was already mentioned by some people within the Oracle WebLogic Community. The WLSDM tool is a Console extension with which you can monitor your Oracle WebLogic Server environment. But its not only a pure monitoring tool, its more than this, it provides on top even Notifications and Alarms for metrics. Current release for WLSDM is 2.3.1 which also comes with Oracle SOA Support :-) The installation is really straight forward as described in the installation document from the WLSDM, but the given 1 minute deploy time is a bit optimistic :-) its more 5 minutes, but this is still impressive how quick you can setup WLSDM :-) Just follow the instructions for the installation, after you start the WLSDM Dashboard, the configuration assistant will guide you through the necessary configuration and your Monitoring and Notification/Alarm System is ready to use. WLSDM comes is real Dashboard Style with provides you several views on your WebLogic Server environment. General Health Overview Dashboard:

Image of Health Dashoard



Read the complete blog post by Oracle ACE Dirk Nachbar

http://dirknachbar.blogspot.com.tr/2016/06/a-quick-look-on-wlsdm-for-weblogic.html

read more
v2.3.1 released. Enjoy!

Download Latest WLSDM

What's new?

This version is very stable and contains SOA module. It's very enjoyable to monitor Oracle FMW SOA Suite domains by using WLSDM.

v2.3.1 Change Log:

FMW SOA Monitoring Module is released. (Supports 11g and 12c)

WLSDM SOA Monitoring, Diagnostics & Report Modules

SOA Smart Dashboards

Monitoring BPEL Engine (Only 11g) BPEL Engine Dashboard (Historical – Only 11g) Monitoring Composite Performance Monitoring Callback and Invoke Monitoring Composite Faults Monitoring Deployed Composites Trend Summarizing Composite List & Endpoint URIs SOA Notifications and Alarms BPEL Engine Notifications Composite Performance Notifications Callback and Invoke (DLV_MESSAGE) Notifications Composite Faults and Errors Notifications SOA Reports Reporting SOA BPEL Engine Reporting SOA Composite Performance Reporting SOA Callback and Invoke (DLV_MESSAGE) Reporting SOA Composite Faults and Errors SOA Daily Reports (EMAIL) Daily SOA Report for Composite Performance Daily SOA Report for Callback and Invoke (DLV_MESSAGE) Daily SOA Report for Composite Faults and Errors Daily SOA Report for Deployed Composites Trend

WLSDM Core:

Auto archive feature is added. Configurable and integrated archive module for all the stored data types

JVM System Resources dashboard is renewed and enriched

Monitor JVM CPU Load , Heap (Usage, Free, Size) Alarm / Notification feature is added to JVM Resources dashboard Grid and Chart feature is added

Health dashboard is renewed and enriched

Donut charts are added: Health States (WebLogic Servers, Deployments, Data Sources, JMS) Server state feature is enriched WebLogic server activation time and counter feature is added

Deletion feature is added to “Monitoring & Diagnostics > Profiling Dumps” page. (Asynchronous file deletion for JFR, WLDF Diagnostic Image, HPROF, LOG)

New “Operational Tools & Utils > MBean Search” page is added

Search any text in WebLogic MBean Instance Type Search any text in WebLogic MBean Attribute Type Search any text in WebLogic MBean Instance Name Search any text in WebLogic MBean Attribute Name See all the WebLogic MBean attribute values on search results Compare WebLogic MBean attribute values New “Domain Overview > Timeout Values” page is added.
WLSDM: Timeouts are the most important settings for keeping your WebLogic domain healthy, strong and responsive Important and Recommended WebLogic “Domain Timeouts” MBeans are listed with their values Important and Recommended WebLogic “JVM Timeouts” MBeans are listed with their values Important and Recommended WebLogic “Server Timeouts” MBeans are listed with their values Important and Recommended WebLogic “Data Source Timeouts” MBeans are listed with their values WebLogic Runtime JVM arguments and WebLogic console arguments values is added to “Domain Overview > Domain Summary” page WebLogic Domain Structure menu items are added as integrated and dynamic drop-down menu to all WLSDM pages WebLogic Admin Server monitoring plug&play application “monitorWLAdmin” is enriched. General performance and error handling improvements Several bug fixes

Read Complete List: http://www.wlsdm.com/download/#CL_V231

Start Native WebLogic monitoring now! http://wlsdm.com/download

read more
WLSDM for WebLogic v2.1.5 Released.. It's on WebLogic Community Portal!

read more
Advanced WebLogic Monitoring: Develop JMX MBeans and Automate with WLSDM Metric Actions

This tutorial is prepared for Advanced WebLogic Administration and Automation. Setting up internal JMX MBean objects are the "best and ultimate practice" for applications' monitoring infrastructure.

Outline:

How to develop and register JMX MBean to Oracle WebLogic Server? How to check SERVER disk space by using JMX MBean on WebLogic? How to define WLSDM User Defined Metric Actions? How to delete or move Application logs automatically when given threshold exceeds for disc usage on SERVER? Problem: The application which is deployed to Oracle WebLogic Server 12c (12.1.3) is increasing server disk space continuously and in peak times it makes the server disk usage 100%. Meanwhile, the service goes down and causes the service down-time.

Solution:

Develop JMX MBeans which check server disk usage (JMX StandardMBean) Create alarm and notify when the disk usage is over 95% (JMX MBean Monitoring - UsedDiskSpace) Create "User Defined Metric Action" on WLSDM which is targeted to "delete or move application logs" Couple "FreeDiskSpace or UsedDiskSpace WebLogic JMX MBean" and "ClearLogs Metric Action" When FreeDiskSpace percentage lower than given threshold, "ClearLogs" metric action would be triggered by WLSDM and all application logs would be deleted automatically. That means "NO Down-time" with advanced WebLogic monitoring and automation. Video Tutorial & Custom JMX Source Code (Java):

An 8 Minutes tutorial is prepared for this problem and for any other similar problems.

The tutorial is short and targeted to overcome SERVER disk problem.

Watch Tutorial: Download Source Code (Sample Project and WAR): ZIP file contains "WAR File" and "JAVA Eclipse Project"

Download: WLSDMMonitoringSamples.zip
How to develop your own JMX MBean and JMX Metric Action? (SUMMARY)

For advanced WebLogic Administrators, DevOps or Developers above video tutorial and sample project quite enough to setup an advanced WebLogic monitoring and automation infrastructure for his/her organization or mission critical WebLogic domains that they manage.

Login to WebLogic Console Go to WLSDM Console Metric Browser Page

[caption id="attachment_929" align="alignnone" width="255"]WebLogic Monitoring Dashboard: WLSDM Console WebLogic Monitoring Dashboard: WLSDM Console[/caption]
Play with WLSDM Metric Browser. It displays all WebLogic JMX MBeans dynamically.
"WLSDM Console > Configuration > Metric Browser"

[caption id="attachment_931" align="alignnone" width="288"]WLSDM Metric Browsers: JMX MBean Metric Browser WLSDM Metric Browser: JMX MBean Metric Browser[/caption]
a) Develop JMX StandartMBean
b) Register to WebLogic MBean Server

We have prepared a sample JMX Bean which check "Free Disk Space" and "Used Disk Space" on server.
Check Sample Java Source and develop your own JMX MBeans then deploy to your application or WebLogic domain.

WLSDMMonitoringSamples.zip:

Contains Eclipse Project and Deploy-able WAR File (Supports WebLogic 11g and 12c)

Download: WLSDMMonitoringSamples.zip

MBean Interface: DiskSpaceWatcherMBean.java

package com.wlsdm.samples;

public interface DiskSpaceWatcherMBean {

public double getFreeDiskSpace(); public void setFreeDiskSpace(double fds); public double getUsedDiskSpace(); public void setUsedDiskSpace(double uds);

}

MBean Class: DiskSpaceWatcher.java

package com.wlsdm.samples;

import java.io.File;

import javax.management.StandardMBean;
import javax.swing.filechooser.FileSystemView;

public class DiskSpaceWatcher extends StandardMBean implements DiskSpaceWatcherMBean {

public double FreeDiskSpace = new Double(100.00); public double UsedDiskSpace = new Double(0.00); protected DiskSpaceWatcher() { super(DiskSpaceWatcherMBean.class, false); Thread t = new Thread(new CollectData()); t.start(); } @Override public double getFreeDiskSpace() { return FreeDiskSpace; } @Override public void setFreeDiskSpace(double fds) { FreeDiskSpace = fds; } @Override public double getUsedDiskSpace() { return UsedDiskSpace; } @Override public void setUsedDiskSpace(double uds) { UsedDiskSpace = uds; } private class CollectData implements Runnable { @Override public void run() { while (true) { File f = FileSystemView.getFileSystemView().getHomeDirectory(); double free = ((double)f.getUsableSpace() / f.getTotalSpace()) * 100.00d; setFreeDiskSpace(free); setUsedDiskSpace(100.00 - free); try { Thread.sleep(60 * 1000); } catch (InterruptedException e) { e.printStackTrace(); } } } }

}

Listener Class: DiskSpaceWatcherListener.java

package com.wlsdm.samples;

import java.io.IOException;
import java.util.Hashtable;

import javax.management.MBeanServer;
import javax.management.ObjectName;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.servlet.GenericServlet;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;

public class DiskSpaceWatcherListener extends GenericServlet {

private static final long serialVersionUID = 1L; public void destroy() { try { Hashtable<String, String> env = new Hashtable<String, String>(); env.put(Context.SECURITY_PRINCIPAL, "weblogic"); env.put(Context.SECURITY_CREDENTIALS, "welcome1"); InitialContext ctx = new InitialContext(env); MBeanServer mbs = (MBeanServer) ctx.lookup("java:comp/env/jmx/runtime"); ObjectName oname = new ObjectName("com.wlsdm.samples:type=DiskSpaceWatcherMBean,name=DiskSpaceWatcher"); if (mbs.isRegistered(oname)) { mbs.unregisterMBean(oname); } } catch (Exception e) { e.printStackTrace(); } } public void init() { try { Hashtable<String, String> env = new Hashtable<String, String>(); env.put(Context.SECURITY_PRINCIPAL, "weblogic"); env.put(Context.SECURITY_CREDENTIALS, "welcome1"); InitialContext ctx = new InitialContext(env); MBeanServer mbs = (MBeanServer) ctx.lookup("java:comp/env/jmx/runtime"); DiskSpaceWatcherMBean mbean = new DiskSpaceWatcher(); ObjectName oname = new ObjectName("com.wlsdm.samples:type=DiskSpaceWatcherMBean,name=DiskSpaceWatcher"); mbs.registerMBean(mbean, oname); } catch (Exception e) { e.printStackTrace(); } } @Override public void service(ServletRequest req, ServletResponse res) throws ServletException, IOException { }

}

Deploy WebApplication to WebLogic Note: WLSDMMonitoringSamples.war can be used for completing this tutorial.

Check new deployed JMX Custom MBeans on WLSDM Metric Browser page for DiskSpaceWatcher MBeans. Anymore FreeDiskSpace and UsedDiskSpace JMX MBeans are visible on WLSDM Metric Browser (Without WebLogic Server restart)

[caption id="attachment_945" align="alignnone" width="452"]Custom WebLogic JMX MBeans Custom WebLogic JMX MBeans[/caption]
Create new Dashboard and name it DiskSpaceWatch.

[caption id="attachment_933" align="alignnone" width="302"]WLSDM Dashboard: Create New WLSDM Dashboard: Create New[/caption]
Add FreeDiskSpace and UsedDiskSpace JMX Metrics to DiskSpaceWatch Dashboard and save all.

[caption id="attachment_946" align="alignnone" width="679"]Adding Custom JMX Metrics to WLSDM Dashboard Adding Custom JMX Metrics to WLSDM Dashboard[/caption]
Anymore Custom JMX MBeans that we developed and its values can be visualize on WLSDM Console Smart Dashboards. You would see two charts on DiskSpaceWatch dashboard as below.

[caption id="attachment_953" align="alignnone" width="409"]WLSDM JMX Metric Dashboard: Grid View WLSDM JMX Metric Dashboard: Grid View[/caption]

[caption id="attachment_947" align="alignnone" width="513"]Dynamic JMX MBean Charts-1: Free Disk Space Dynamic JMX MBean Charts-1: Free Disk Space[/caption]

[caption id="attachment_948" align="alignnone" width="508"]Dynamic JMX MBean Charts-2: Used Disk Space Dynamic JMX MBean Charts-2: Used Disk Space[/caption]
Set threshold values for FreeDiskSpace and UsedDiskSpace MBeans and see what will happen? Test it by setting low thresholds. For instance, set threshold value for UsedDiskSpace to "60" and get below notifications.

JMX MBean monitoring alarms would be generated by WLSDM as page and email Notification.

[caption id="attachment_975" align="alignnone" width="394"]WLSDM: JMX Metric Page Notification WLSDM: JMX Metric Page Notification[/caption]

[caption id="attachment_949" align="alignnone" width="398"]WLSDM: JMX Metric Email Alarm WLSDM: JMX Metric Email Alarm[/caption]
Now Define Custom Metric Actions for FreeDiskSpace:
Custom metric actions can be defined on WLSDM. Now going to create a custom action for FreeDiskSpace metric.


Go to "Configuration > User Defined Metric Actions" Page.

[caption id="attachment_934" align="alignnone" width="286"]WLSDM Actions: User Defined Metric Actions WLSDM Actions: User Defined Metric Actions[/caption]
Create new "User Defined Metric Action" as below.

[caption id="attachment_935" align="alignnone" width="464"]WLSDM: User Defined JMX Metric Actions WLSDM: User Defined JMX Metric Actions[/caption]

Note: "Executable Target Files" can be .SH or .BAT file. System Paremeters such as $METRIC_NAME, $METRIC_VALUE can be passed to "Executable Target File" as argument by WLSDM

Content of "clearlogs.bat" file:

cd C:\wlsdm\logs del /F /Q *.* Anymore "ClearLogs" Cusom Action can be listed on Actions Window. Select "ClearLogs".

[caption id="attachment_951" align="alignnone" width="570"]WLSDM Metric Actions: Select ClearLogs WLSDM Metric Actions: Select ClearLogs[/caption]
Reset UsedDiskSpace or FreeDiskSpace Metric threshold value and get METRIC CLEAR alarm from WLSDM. (For testing ClearLogs action)


Reassign threshold value for FreeDiskSpace metric and get METRIC WARNING alarm from WLSDM. (ie. set lower than 30)


Oops! FreeDiskSpace alarm generated! And ClearLogs action has been executed automatically. All logs under C:\wlsdm\logs has been deleted.

[caption id="attachment_955" align="alignnone" width="756"]WLSDM JMX HTML Email Alert: User Defined Metric Action WLSDM JMX HTML Email Alert: User Defined Metric Action[/caption]

End of tutorial. Monitoring is meaningful and powerful with automation.
Advanced WebLogic Monitoring: Best & Ultimate Practice

Think about your chronic runtime problems and develop your own JMX MBeans then overcome all manual processes. This method is the best and ultimate monitoring infrastructure for the mission critical applications. High level DevOps engineers, developers or architects should deliver their WebLogic IT projects with monitoring infrastructure. Should think about potential LIVE/PRODUCTION issues and should implement before going live. It is only possible with WebLogic and Metric Actions.

read more
WLSDM Version 2 Released! Things are really different anymore...

WLSDM Version is really mature and assertive anymore..


No server, No Database... No additional resources. Don't waste your money and time.

banner_640px.png

WLSDM does not need any additional resources (Server, Database, Memory, CPU... etc.). This means you don't need to spend operational costs for your WebLogic monitoring tool. Only keep your WebLogic Admin Server UP and HEALTHY.

If you are a senior WebLogic Administrator then show your skills by using WLSDM. WLST Web Console, User Defined Custom MBean Actions... Administrators and Developers going to love it! Do you? Designed and Developed for WebLogic Administrators & Developers

banner_1920px.png

Centralize WLST scripts by using WLST Web Console. Automate WebLogic domains by using User Defined MBean Actions.


See what's new on Version-2: New WLSDM Features


Free Developer Edition (Fully Featured) - WLSDM can be used by developers for free!

WLSDM Quick installation Wizard is more robust anymore. Monitoring & Diagnostics step is added

Suggest Button for Metric Thresholds on Wizard pages

Get manual profiling dumps for JFR, Thread Dump, WLDF Diagnostic Image and Heap Dump

Self-Tuning Thread Pool Threads detail is added for HoggingThreadCount and * StuckThreadCount EMAIL notifications

Back-end system monitoring

JDBC Executement Statement Webservices JAXWS Endpoint EJB Business Method Invoke

Back-end Reports page is added

Operational Tools section is added

WLST Web Console Page

Storing and Executing WLST Scripts

Thread Dump Analyzer Page

Decrypt-Encrypt Page

Notifications are enriched

Metric Notifications

Log Inspector Notifications

Response Times Notifications

Back-end Systems Notifications

Enable/Disable Global Notifications for EMAIL and SNMP By One By

Enable/Disable All EMAIL-SNMP Notifications feature is added

SNMP Notification feature is added. Easy SNMP trap configuration:

SNMP Trap for WebLogic State and Health (Servers, Deployments, Data Sources and JMS)

SNMP Trap MBean Metric Values

SNMP Trap for WebLogic Server Logs

Test SMTP and SNMP settings operations are added to Configuration > System page

Log Inspector WLDF snippets are added

Dead Lock Heap Space Stuck Thread Unchecked Exception General Severity Error

WebLogic Domain Summary Page is added

Data source passwords are listed on domain summary page (Decrypted and Encrypted) - All users are forbidden except administrators.

View WLSDM Log Page is added

Response Times Chart is added to Monitoring & Diagnostics > Response Times page

User Defined Metric Actions feature is added. WebLogic domains can be automated according to MBean values

Anymore all users and user groups able to login WLSDM console. Page authorization is enriched.


Installation and Introduction Video Tutorial


read more
WLSDM Review by Radu Dobrinescu

Another review on oraclemiddlewareblog.com by Radu Dobrinescu

The WebLogic application server can host business critical J2EE applications or can serve as a platform for just as important middleware systems such as Identity Management, Business Intelligence, Service Oriented Architecture and others. Either way, it is very important that WebLogic administrators have quick access to the most significant metrics that show how the system is behaving. And although there are very useful and versatile built-in monitoring tools included in the Fusion Middleware stack, such as the WebLogic administration console or the Enterprise Manager applications, these can still be further improved with features that can prove to be very helpful, especially for real time monitoring. One such extension to the already existing tools is the WebLogic Smart Dashboard and Monitoring application.

The tool integrates natively with the administration console and the links to its monitoring features conveniently show up as a portlet in the administration console portal.

wlsdm_portlet[1].png

The product itself is very easy to install and basically consists of copying the application war file in the console-ext directory of the domain followed by a restart the Admin Server. The WLSDM portlet that allows access to the main WLSDM pages is also reachable by a direct URL....

Please read the complete review on oraclemiddlewareblog.com: http://oraclemiddlewareblog.com/2015/08/31/weblogic-smart-dashboard-and-monitoring-a-valuable-help-for-weblogic-administrators/

read more
WLSDM and WebLogic Community July Newsletter on Oracle.COM

Follow Native WebLogic monitoring tool WLSDM and other WebLogic articles on oracle.com and blogs.oracle.com

Native WebLogic Monitoring WLSDM on oracle.com

Read WLSDM article: oracle.com

oracle_com_native_weblogic_monitoring_wlsdm_weblogic_partner_community.png

Read other articles on blogs.oracle.com:
WebLogic July Newsletter

read more
How to retrieve the current stack information from a WebLogic server continuously?

Question:
User Mick O'Donnell posted this question 30776122 on stackoverflow portal, which is about getting stack dump or thread dump from WebLogic server.

Thanks to Brett Walker that he addressed WLSDM. Absolutely, he redirected to the right place.

Now, we're going to explain how it's easy to do this by using WLSDM which is aimed to monitor WebLogic domains naturally :)

Introduction:
Normally, it's easy to do by shell and WLST scripting; but getting thread dump continuously can be challenge and risky. It can create an overhead on your WebLogic domain.

weblogic-wlsdm-portlet.png

Solution:
Let's say you're familiar with WLSDM. It's really easy to install WLSDM and use it. If you're not introduced with WLSDM for WebLogic just follow this blog post on WLSDM community portal. WLSDM Intorduction

Step-1: Go to "Configuration / System" Page and focus on "system.metric" tab. There are two important properties on WLSDM configuartion/system page. Metric harvest frequency and number of alarm count till alarm situation is valid. Screenshot is below and values are default.

1_wlsdm_weblogic_harvest_frequency_weblogic_alarm.png

The harvest frequency and number of alarm count can be changed. For the continues thread dump, just set it more than 1. Let's set the value to 10. Which means 10 alarms would be generated if the situation is still valid.

Step-2: Go to "System / Metrics" page. For instance, find ActiveExecuteThread MBean record, then click on "Edit" button. There is Actions button for each servers on WebLogic domain (Screenshot Number-1). Click on actions button and select "Thread Dump" action (Screenshot Number-2) and save. Check below screenshot:

2_wlsdm_actions_weblogic_jfr_diagnostic_image_heap_thread_dump.png

Step-3: The alarm must be enable by setting a threshold value which is less than current ActiveExecuteThread MBean value in ThreadPoolRuntime.

After all, WLSDM would start notifying you via email by attaching "WebLogic Server Thread Dump" or "Dump Stack" files continuously. Check below screen shot.

WLSDM created ALERT notifications every 30 seconds by attaching thread dump files. See pointer.
3_wlsdm_alert_notification_thread_stack_dump_mail_attachment.png

Thread dump files attached to emails.
4_wlsdm_weblogic_server_continous_thread_dump.png

Also the thread dumps are listed on "Profiling Dumps" page on WLSDM console.
5_wlsdm_weblogic_profiling_dump_pages.png

See details of thread dump on WLSDM console.
6_wlsdm_view_weblogic_server_thread_dump_on_wlsdm_console.png

It's possible to analyze thread dumps by using WLSDM's thread dump viewer and analyzer module.

Besides thread dump action, there are even more actions available on WLSDM. These are:

Java Flight Recorder (JFR) Heap Dump (.HPROF) WebLogic Diagnostic Framework (WLDF) Image (.ZIP)

If you want to learn much about WLSDM actions, there is a good tutorial on Youtube. Here is link: https://www.youtube.com/watch?v=ec-MccMPCqY (WLSDM Actions)

Hope, you enjoy this detailed answer on WLSDM community portal.

WLSDM Support Team

Source Links:

1- http://stackoverflow.com/questions/30776122/retrieve-the-current-stack-information-from-a-weblogic-server

2- www.wlsdm.com/download

3- Other YouTube tutorials available.
https://www.youtube.com/channel/UC_xrMkl9iGYk3WslxO1G0dw/videos

read more
WLSDM is ready to monitor WebLogic...

Hi Everybody,

WLSDM v1.2.0 released and ready to monitor mission critical WebLogic production domains.

Check these basic insallation steps;

1- Download WLSDM product:

WLSDM Download Page

2- Install WLSDM by following installation guide:

WLSDM Installation Guide Document WLSDM Installation Tutorial on Youtube

** Or never mind just copy wlsdm.war to $DOMAIN_HOME/console-ext folder. That's all :)

3- Complete WLSDM wizard for the first installation by watching wizard tutorial:

Wizard Completion Tutorial on Youtube

4- Watch other tutorials on Youtube for getting familiar with WLSDM. You'll see it's really easy to adopt :)

Dashboard Usage Tutorial on Youtube Learn How to get Thread Dump, JFR (Java Fligh Recorder), JVM Heap Dump, WLDF Diagnostic Image Learn WLSDM Metric Usage and email configurations for ALERT and CLEAR notofications

Hope, WebLogic administators enjoy using WLSDM. We designed and implemented this product according to WebLogic administrators' requests.

If you have any problem, do not hesitate to post it on WLSDM community portal.

Keep smiling because you're using WebLogic and WLSDM :)

read more
WLSDM Generic DevOps MBean Script Sharing Category
Monitor Oracle Database ACTIVE/INACTIVE Sessions on WebLogic WLSDM Console + Plus JSL (Java Server Loader)

Case: Monitoring ACTIVE/INACTIVE Oracle Database Sessions on WebLogic?

I have prepared a short screencast tutorial about monitoring DB sessions on WebLogic. It can be extended by adding machine, inst_id fields from gv$session and gv$sqlarea.

Basic SQL Statement on Generic DevOps MBean:

select status, count(*) from gv$session group by status order by 1

You can use below SQL on Oracle Database for your reference to understand what is going on at your Oracle database then reflect and visualize it on WLSDM dashboards.

select s.inst_id,'alter system kill session'||''''||sid||','||serial#||''''||',@'||s.inst_id||''''||';',q.SQL_ID,q.HASH_VALUE,lower(s.username) ora_user,s.machine,s.sid, s.serial#,q.sql_text, s.event#, s.event, q.executions, q.cluster_wait_time, q.plsql_exec_time, q.java_exec_time, q.rows_processed, q.cpu_time, q.elapsed_time,s.osuser from gv$session s, gv$sqlarea q where s.status='ACTIVE' and q.hash_value = s.sql_hash_value and q.address = s.sql_address and s.type!='BACKGROUND'

Sreencast GIF File URL: Simply download and share with your team members.
Contains useful and educational knowledge about how WebLogic works with Oracle DB and how WebLogic behaves on database operations.
http://blog.wlsdm.com/content/images/2017/06/oracle_database_session_monitoring_weblogic_wlsdm_devops_mbean.gif



JSL (Java Server Loader) Screen-Capture (Available in screencast tutorial):
2084.png

read more
Monitor WebService Response Times with curl (-alldetails) on WebLogic

Case: How to monitor back-end Webservice response times as a consumer with curl on WebLogic?
Solution: If you have a very critical webservice for your application and it's response time affects your WebLogic runtime performance directly; here is a recipe to monitor every detail of monitoring relevant webservice with curl on WLSDM console.

Main shell script to monitor all response times: curlSoapWS.sh

curl -o /Users/admineer/u01/scripts.imac/curl.ws/response.xml -H "Content-Type: text/xml; charset=utf-8" \ -H "SOAPAction:http://www.webserviceX.NET/GetCitiesByCountry" \ -d@/Users/admineer/u01/scripts.imac/curl.ws/soap-request.xml \ http://www.webservicex.net/globalweather.asmx \ -w "@/Users/admineer/u01/scripts.imac/curl.ws/curl-format.txt" -o /dev/null

soap-request.xml :

<?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <GetCitiesByCountry xmlns="http://www.webserviceX.NET"> <CountryName>Turkey</CountryName> </GetCitiesByCountry> </soap:Body> </soap:Envelope>

curl-format.txt :

Fevzis-iMac:curl.ws admineer$ more curl-format.txt time_namelookup=%{time_namelookup}\n time_connect=%{time_connect}\n time_appconnect=%{time_appconnect}\n time_pretransfer=%{time_pretransfer}\n time_redirect=%{time_redirect}\n time_starttransfer=%{time_starttransfer}\n response_time_total=%{time_total}\n


Generic DevOps MBean Definition on WLSDM Console:

image.png


Output on WLSDM Smart Dashboard:

image.png


Alarm/Notification Email:

image.png


Requests Over Threshold:

image.png



DownLoad DevOps Script:

WeatherWebserviceMonitoring_response_time_total.config.zip

Install it on Generic DevOps MBean page. Use import button on modal window.



read more
Monitor Database and Calculate DB Response Time on WebLogic

Hi,
I am going to share WLSDM DevOps MBean scripts to monitor WebLogic environments and trigger auto actions. Hope other users will use this topic and share their scripts and let us see what can be done for WebLogic automation.

Here is the first: (alsoa available on http://www.wlsdm.com/docs/README )

#Author: M.Fevzi Korkutata | 2017

#Variables
_dbStatus=0
#0:DB_DOWN,1:DB_UP

#start DB Ping
_startTime=$(($(date +%s%N)/1000000))
_pingResult=java -cp weblogic.jar utils.dbping ORACLE_THIN $YOUR_USER_NAME $YOUR_PASSWORD $YOUR_IP:$YOUR_PORT/$YOUR_SERVICE_NAME
_endTime=$(($(date +%s%N)/1000000))
_dbResponseTime=expr $_endTime - $_startTime

if [[ "$_pingResult" == "Success!!!" ]]; then
_dbStatus=1
#echo "Database connection SUCCESS!!!"
#DB_UP
echo DatabaseStatus=$_dbStatus
else
_dbStatus=0
#echo "Database connection FAILURE!!!"
#DB_DOWN
echo DatabaseStatus=$_dbStatus
fi
echo DatabaseResponseTime=$_dbResponseTime

read more