DX Application Performance Management

  • 1.  How to generate thread dumps

    Posted Aug 18, 2016 11:07 AM

    Can anyone show me how to generate threaddumps for EM every 2 seconds for up to 30 threaddumps?

     

     

    Thanks,

     

    Daniel Addo



  • 2.  Re: How to generate
    Best Answer

    Broadcom Employee
    Posted Aug 18, 2016 11:22 AM

    Here is a site that explains how to take a thread dump from when you run the EM in a dos window and also on Linux.

     

    Creating a Thread Dump



  • 3.  Re: How to generate

    Posted Aug 18, 2016 11:28 AM

    Hi,

            So the simple thing here is to ps –ef | grep wily, when I get the pid for wily use this command

    Kill -3 wily_PID ?

     

    Please confirm.

     

     

    Thanks,

     

    Daniel Addo



  • 4.  Re: How to generate

    Broadcom Employee
    Posted Aug 18, 2016 11:41 AM

    yes that is correct and the output will go to stdout

     

    thanks

    Mike



  • 5.  Re: How to generate

    Posted Aug 18, 2016 01:15 PM

    This is what I used a while ago to do the same thing. You control-C it when you are done.

     

    #!/bin/ksh

    pid=`ps -ef | grep -i introscope | grep -v grep | awk '{print $2}'`

    echo "java pid is $pid"

    while true

    do

      timestamp=`date +"%m/%d/%y %H:%M:%S"`

      echo "issuing thread dump at $timestamp"

      kill -3 $pid

      sleep 15

    done



  • 6.  Re: How to generate

    Broadcom Employee
    Posted Aug 18, 2016 03:28 PM

    Hi Daniel:

    Do you feel you have the necessary directions that you need to create an EM thread dump? Or there are some parts needing additional clarification?

     

    Thanks

    Hal German



  • 7.  Re: How to generate

    Broadcom Employee
    Posted Aug 19, 2016 08:02 AM

    Hi Daniel:

        All of the various questions that you had have been answered and you should be able to create a thread dump at this time based on the responses given. So I am marking as answered. You are welcome to ask follow-up questions as needed

     

    Thanks

    Hal German



  • 8.  Re: How to generate thread dumps

    Posted Aug 19, 2016 08:22 AM

    Hello Hallett,

                              I believe I have the information I need to proceed. One more question, does this impact resources on the server?

     

     

     

    Thanks,

     

    Daniel Addo



  • 9.  Re: How to generate thread dumps

    Broadcom Employee
    Posted Aug 19, 2016 08:30 AM

    Hi Daniel,

     

    Any extra thing you perform on the server will take up additional resources, however, taking the thread dumps will only be a slight bump up in resources taken up and will not break the bank so to speak.

     

    Thanks,
    Matt



  • 10.  Re: How to generate thread dumps

    Posted Aug 19, 2016 09:16 AM

    Very helpful

     

    Thanks,

     

    Daniel Addo