Jump to content
PRIYATOSH Sinha

Weblogic | Stuck Thread and Identification

Recommended Posts

1.WebLogic.Admin utility:  javaWebLogic.Admin adminurl -username WebLogic -password WebLogic1 THRED_DUMP

2.Admin console: 
Step1: login to the weblogic admin console
Step2: Click on server (under domain)
Step3: Navigate to servers 
Step4: Click monitor tab
Step5: Click on thread
Step6: Click on the dumpthread stack.

Location of the Thread Dump:  
/DOMAIN_NAME/servers/logs/xyz_stdout.log

Share this post


Link to post
Share on other sites

When do we require to take Thread dump? 

  1: when server is hang Position, i.e. that time server will not respond to coming requests.

  2: While sever is taking more time to restart 

  3: When we are Getting exception like “java.lang.OutOfMemoryException”

  4: unable to process new requests or running out of File descriptors. Server cannot accept further requests because sockets cannot be created

  5: Performance Issue in the code (badly written code )

Edited by Giriraj Inja

Share this post


Link to post
Share on other sites

Hi Priyatosh 

A Weblogic stuck thread simply means a thread performing the same request for a very long time and more than the configurable

check the Stuck Thread MAX time from here :

weblogic1.PNG.f2f127dd5eef4f5e9601b567fefc161e.PNG

 

Now to know which application using how many threads?

a)    Login to your WebLogic admin console.

b)    Here for sample Admin Server -> Monitoring ->Threads shows two tables. The bottom table will give the details about each thread serving which application.

c)    To view you need to click on customize this table filter then in customized table added Application and Module.

 

weblogic2.PNG.6bd9bf02cde0d66d901cb7d585efd7d5.PNG 

 

d)    The application secret you will aware now as shown below:

weblogic3.PNG.ec0f4b7807dbf6c8e30a7c3ef2587173.PNG

 

This Stuck Thread and other threads like  Hogging Thread and how to take a heap dump, thread dump we have explained in detailed in our Oracle Weblogic Server Administration Training

Oracle Weblogic Server (12C/11g) Administration : Step By Step Activity Guide/ Hands on Lab Exercise

 

 

 

 

Share this post


Link to post
Share on other sites

It is possible that some of the web logic threads are doing legitimate (supposed to run longer)
work for over 10 min with no issues. If you have such threads then you 
should consider placing them in a another work manager with proper setting 
for the "StuckThreadMaxTime" parameter

(Example: Something similar concept to creating custom concurrent managers in EBS  where you define work shift rules ,etc specifically for those managers to pick up and run certain requests by those custom managers only )   

In such scenarios where you may want to set the time settings for those particular threads by creating separate work managers for them ,below is the link with screen shots how to create work managers in web logic ) 

 

http://jdeveloperfaq.blogspot.com/2011/05/faq-34-using-weblogic-work-managers-to.html

https://dzone.com/articles/dealing-stuck-threads-weblogic

 

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×