Skip to content

Commit

Permalink
Merge pull request quarkusio#45467 from zakkak/2025-01-09-native-refe…
Browse files Browse the repository at this point in the history
…rence-faq-thread-dump

Add FAQ about thread dumps in native reference guide
  • Loading branch information
zakkak authored Jan 10, 2025
2 parents 5512931 + 81eb043 commit 6c2a4cd
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions docs/src/main/asciidoc/native-reference.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -2303,6 +2303,19 @@ com.oracle.svm.core.VM=Mandrel-23.1.5.0-Final

See <<gc-logging,Native Memory Management GC Logging section>> for details.

=== Can I get a thread dump of a native executable?

Yes, Quarkus sets up a signal handler for the `SIGQUIT` signal (or `SIGBREAK` on windows) that will result in a thread
dump being printed when receiving the `SIGQUIT/SIGBREAK` signal.
You may use `kill -SIGQUIT <pid>` to trigger a thread dump.

[NOTE]
====
Quarkus uses its own signal handler, to use GraalVM's default signal handler instead you will need to:
1. Add `-H:+DumpThreadStacksOnSignal` to `quarkus.native.additional-build-args` and rebuild the application.
2. Set the environment variable `DISABLE_SIGNAL_HANDLERS` before running the app.
====

[[heap-dumps]]
=== Can I get a heap dump of a native executable? e.g. if it runs out of memory

Expand Down

0 comments on commit 6c2a4cd

Please sign in to comment.