WebLogic Performance Issues

WLSDM for WebLogic
Dec 14, 2019 · 3 min read

WebLogic Stuck Threads: Understanding Hogger and Stuck threads

Stuck Threads are threads that are blocked, and can’t return to the threadpool for a certain amout of time. By Default, the WLS comes with 600 secs. If some thread doesn’t return in 600 secs, It gets a flag ‘stuck thread’.

  • Stuck Threads are only flags, there to warn you that this thread is taking too long.
  • A thread declared as Stuck if it runs over 600 secs (default configuration which you can increase or decrease from admin console).
    There is an internal WebLogic polar which runs every 2 secs (by default 2 secs and can be alter)
    It checks for the number of requests completed in last two minutes
    Then it check how much times each took to complete
    Then it takes the average time of all completed request (completed in last 2 sec)
    Then multiply average time with 7, and the value came consider as “usual time to complete the request”
    Now weblogic check each current executed thread in last 2 secs and compare with above average time, if for any of the thread it’s above this value then that thread will declare as Hogged thread.

Stuck and Hogger Monitoring and How to Dealing Help with WLSDM

  1. WebLogic Server Performance issues monitoring stuck and hogger threads available in “Domain structure > Environment > Servers > ServerName > Monitoring > Threads” as below screencapture.
Image for post
Image for post

2. WLSDM notifications available to monitoring stuck & hogger threads and possible root cause for them.

Image for post
Image for post
Metric Notification

3. When you click “Stuck Threads” button, you will see a modal window about stuck thread count.

Image for post
Image for post
View Stack Trace

4. Click “View Stack Trace” button. There is modal window will open about stack treace log.

Stack Trace

5. You can Open it with WLSDM “Thread Dump Analyzer” then you can see thread state (RUNNABLE, BLOCKED, WAITING, TIMED_WAITING).

Image for post
Image for post

RUNNABLE: The thread is executing in the JVM.
BLOCKED: The thread is blocked waiting for a monitor lock.
WAITING: The thread is waiting indefinitely for another thread to perform a particular action.
TIMED_WAITING: The thread is waiting for another thread to perform an action for up to a specified waiting time.

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:

Image for post
Image for post
Download WLSDM

WLSDM for WebLogic

WLSDM is a WebLogic console extension which enables…

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

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