Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-33445

Add signal handler to generate stack traces

    • Fully Compatible
    • Platforms 2018-06-18, Platforms 2018-07-02, Platforms 2018-07-16, Dev Tools 2019-09-09, Dev Tools 2019-10-21, Dev Tools 2019-11-18, Dev Tools 2019-12-02, Dev Tools 2019-12-16, Dev Tools 2019-12-30, Dev Tools 2020-01-13, Dev Tools 2020-01-27

      Occasionally we need to capture the state of all threads for performance analysis.
      Currently this requires installing `gdb` and running an external script.

      I propose implementing a signal handler calling printStackTrace().

      This would ease diagnostics as we can achieve the same result by issuing a kill signal.

        1. test.out.txt
          3 kB
          Billy Donahue

            Assignee:
            billy.donahue@mongodb.com Billy Donahue
            Reporter:
            kevin.arhelger@mongodb.com Kevin Arhelger
            Votes:
            9 Vote for this issue
            Watchers:
            22 Start watching this issue

              Created:
              Updated:
              Resolved: