How to get a real time stack dump
From MercuryWiki
[edit]
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.
[edit]
Linux
- find the process id of Mercury
- type in a console kill -3 pid
this will print out the stack trace in the info log
[edit]
Mac OS X "Leopard"
- find the process id of Mercury (for example with top, ps wux or Activity Monitor.app)
- type jstack processid
this will print out the stack trace on screen in the terminal window you were working in
