WebSphere Application Server & Liberty

WebSphere Application Server & Liberty

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  Email notifications for hung threds

    Posted Tue January 24, 2017 07:27 AM

    Hi All,
     

    is there any way to get email notification, when the server detects hung threads on WAS.

    Venkat



  • 2.  RE: Email notifications for hung threds

    Posted Tue January 24, 2017 09:44 AM

    Hi Venkat,

      You can use Health Mamangement of WAS 8.5.5 configuring custom condition based on PMI counter (DeclaredthreadHungCount) and custom action to send the mail (you need to create your custom script to send the mail)
     
      Or monitor your SystemOut.log to find message like next one and send and email

      WSVR0605W: Thread "WebContainer : XX" (XXXXXXX) has been active for YYYYYY milliseconds and may be hung.  There is/are 2 thread(s) in total in the server that may be hung.
     

     
      To take in mind based on Knowledge Center Thread pool counters about Hung Threads has max overhead.
     
      Take a look to next links:
     
      Health management
      http://www.ibm.com/support/knowledgecenter/SSAW57_8.5.5/com.ibm.websphere.nd.doc/ae/cwve_odhealth.html


      You can also define custom conditions for your health policy if the predefined health conditions do not fit your needs. You define custom conditions as a subexpression that is tested against metrics in your environment. When you define a custom condition, consider the cost of collecting the data, analyzing the data, and if needed, enforcing the health policy. This cost can increase depending on the amount of traffic and number of servers in your network. Analyze the performance of your custom health conditions before you use them in production.

      Example:

      PMIMetric_FromServerStart$systemModule$cpuUtilization  >  90L

      You can also define a custom action. With a custom action, you define an executable file to run when the health condition breaches. You must define custom actions before you create the health policy that contains the custom actions.
     

             Health management  
      https://mediacenter.ibm.com/media/Health+management/0_wau9rldd/33964822
      ftp://ftp.software.ibm.com/software/iea/content/com.ibm.iea.was_v8/was/8.5/Architecture/WASV85_Creating_Health_Policies.pdf

    Thread pool counters
      http://www.ibm.com/support/knowledgecenter/SSAW57_8.5.5/com.ibm.websphere.nd.doc/ae/rprf_datacounter9.html

      DeclaredthreadHungCount     threadPoolModule.declaredThreadHung     The number of threads declared hung     Per thread pool     CountStatistic     All     Max     6

      https://mediacenter.ibm.com/media/Health+management/0_wau9rldd/33964822

     


       Hope this helps. Tell us if you need more support
       
    Regards



  • 3.  RE: Email notifications for hung threds

    Posted Fri January 27, 2017 08:02 PM

    Actually if you configure notifications from the admin console (System Administration -> Task Management -> Notification), you don't need a custom task to send emails.  They will be sent every time intelligent management health policies perform an action.



  • 4.  RE: Email notifications for hung threds

    Posted Sat January 28, 2017 05:10 AM

    Hi John,

      Thank you for the information, I was not aware about this option!!

      I though it was an WAS 9 option

       Managing runtime tasks

       http://www.ibm.com/support/knowledgecenter/SSAW57_9.0.0/com.ibm.websphere.nd.multiplatform.doc/ae/twve_xadmtask.html

      but not :-)

      Managing runtime tasks

      http://www.ibm.com/support/knowledgecenter/SSAW57_8.5.5/com.ibm.websphere.nd.doc/ae/twve_xadmtask.html

    Regards



  • 5.  RE: Email notifications for hung threds

    Posted Tue January 24, 2017 09:48 AM

    I am not aware of one that is being built in WAS.  

    https://www.ibm.com/developerworks/community/blogs/aimsupport/entry/hung_thread_detection_in_websphere_application_server?lang=en