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

WLSDM for WebLogic
Dec 11, 2020 · 3 min read

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.

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.

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:

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.
  • Thread dump files attached to emails.
  • Also the thread dumps are listed on “Profiling Dumps” page on WLSDM console.
  • See details of thread dump on WLSDM console.
  • 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

Installation is really easy and you can setup a complete monitoring infrastructure in less than 5 minutes. If you want to try then go to download page below URL:

WLSDM for WebLogic

WLSDM is a WebLogic console extension which enables…

WLSDM for WebLogic

Native Oracle WebLogic Monitoring WLSDM is developed by the best WebLogic developers for the best WebLogic administrators to support mission critical HA domains. Supports all plain WebLogic and Fusion Middleware (FMW) WebLogic domains. Download now! https://wlsdm.com/download

WLSDM for WebLogic

Written by

WLSDM for WebLogic

Native Oracle WebLogic Monitoring WLSDM is developed by the best WebLogic developers for the best WebLogic administrators to support mission critical HA domains. Supports all plain WebLogic and Fusion Middleware (FMW) WebLogic domains. Download now! https://wlsdm.com/download

Medium is an open platform where 170 million readers come to find insightful and dynamic thinking. Here, expert and undiscovered voices alike dive into the heart of any topic and bring new ideas to the surface. Learn more

Follow the writers, publications, and topics that matter to you, and you’ll see them on your homepage and in your inbox. Explore

If you have a story to tell, knowledge to share, or a perspective to offer — welcome home. It’s easy and free to post your thinking on any topic. Write on Medium

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store