How to get a real time stack dump

From MercuryWiki

Jump to: navigation, search

Description

If Mercury is frozen, this can be caused by a thread deadlock, printing the stack trace will help me to fix it by showing which threads are causing it.

If Mercury is not frozen, printing the stack dump can be done easier : press F1 in the program, at the bottom in the actions panel, choose print thread stack dump to info log.

Linux

  1. find the process id of Mercury
  2. type in a console kill -3 pid

this will print out the stack trace in the info log

Mac OS X "Leopard"

  1. find the process id of Mercury (for example with top, ps wux or Activity Monitor.app)
  2. type jstack processid

this will print out the stack trace on screen in the terminal window you were working in

Personal tools