Skip to Content
avatar image
Former Member

Automatically dump stack trace

Hi all,

I'd like to address a challenging puzzle (for me at least) in my question: how to collect thread dumps automatically on certain conditions? Existing solutions, approaches, thoughts, custom coding/scripting etc. - any idea appreciated!

Thank you in advance for your reflections.



Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Sep 02, 2010 at 08:43 AM

    You should rather filter them on the conditions, not try to collect them on specific conditions. Log viewer does the filtering for you.



    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hello Anton,

      The engine generates a threaddump in event of a crash e.g. OOM automatically. Howver, there is no way through the engine you can automatically trigger the dumps in the event of hang/slow performance. This needs to be done explicitly - on all server nodes if you have more than one during the time of the issue.

      Best Regards,

      Snehal Bhaidasna

      SAP, Palo Alto(USA)

  • avatar image
    Former Member
    Sep 08, 2010 at 09:21 AM

    Hi Anton,

    You could try a scripts that trigger a Kill -3 command based on an OS level event . The trick will be linking in the state/condition you want to the the kill -3. If you're not on unix have a look at note 710154 for the events that can trigger a thread dump on the various OS's.

    Solution manager can also be used to trigger thread dumps at a pre defined time, see the following URL for details

    Hope this helps in some way,


    Add comment
    10|10000 characters needed characters exceeded