cancel
Showing results for 
Search instead for 
Did you mean: 
Community Discussions
Connect with fellow community members to discuss general topics related to the Databricks platform, industry trends, and best practices. Share experiences, ask questions, and foster collaboration within the community.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to collect a thread dump from Databricks Spark UI.

NandiniN
Valued Contributor III
Valued Contributor III

If you observe a hung job, thread dumps are crucial to determine the root cause. Hence, it would be a good idea to collect the thread dumps before cancelling the hung job.

Here are the Instructions to collect the Spark driver/executor thread dump: 

  1. ​Go to the cluster where the SQL/Job/Query is running and click on spark UI.
  2. Now click on the "Executors" tab in the Spark UI. Click on "Thread dump" against the Spark Driver/executors
  3. On this screen, you will see the list of active threads running.
  4. Click on Expand All (In latest versions you should see a Download button next to Expand all, it is a new feature). Right-click on the web page and save the thread dumps that you see on the screen as HTML files, or click on Download.
  5. To confirm that a thread is stuck, a thread dump has to be taken once in 1-2 minutes for 5-6 iterations.
1 REPLY 1

jose_gonzalez
Moderator
Moderator

Thank you for sharing @NandiniN